mirror of https://github.com/xqemu/xqemu.git
i386: Add cache information in X86CPUDefinition
Add cache information in X86CPUDefinition and CPUX86State. Signed-off-by: Babu Moger <babu.moger@amd.com> Tested-by: Geoffrey McRae <geoff@hostfission.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20180510204148.11687-3-babu.moger@amd.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
7e3482f824
commit
6aaeb05492
|
@ -1106,6 +1106,7 @@ struct X86CPUDefinition {
|
||||||
int stepping;
|
int stepping;
|
||||||
FeatureWordArray features;
|
FeatureWordArray features;
|
||||||
const char *model_id;
|
const char *model_id;
|
||||||
|
CPUCaches *cache_info;
|
||||||
};
|
};
|
||||||
|
|
||||||
static X86CPUDefinition builtin_x86_defs[] = {
|
static X86CPUDefinition builtin_x86_defs[] = {
|
||||||
|
|
|
@ -1097,6 +1097,12 @@ typedef struct CPUCacheInfo {
|
||||||
} CPUCacheInfo;
|
} CPUCacheInfo;
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct CPUCaches {
|
||||||
|
CPUCacheInfo l1d_cache;
|
||||||
|
CPUCacheInfo l1i_cache;
|
||||||
|
CPUCacheInfo l2_cache;
|
||||||
|
CPUCacheInfo l3_cache;
|
||||||
|
} CPUCaches;
|
||||||
|
|
||||||
typedef struct CPUX86State {
|
typedef struct CPUX86State {
|
||||||
/* standard registers */
|
/* standard registers */
|
||||||
|
@ -1286,6 +1292,7 @@ typedef struct CPUX86State {
|
||||||
/* Features that were explicitly enabled/disabled */
|
/* Features that were explicitly enabled/disabled */
|
||||||
FeatureWordArray user_features;
|
FeatureWordArray user_features;
|
||||||
uint32_t cpuid_model[12];
|
uint32_t cpuid_model[12];
|
||||||
|
CPUCaches *cache_info;
|
||||||
|
|
||||||
/* MTRRs */
|
/* MTRRs */
|
||||||
uint64_t mtrr_fixed[11];
|
uint64_t mtrr_fixed[11];
|
||||||
|
|
Loading…
Reference in New Issue