target/i386/cpu: Constify CPUCaches
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210503173524.833052-2-philmd@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
fd1fd38b86
commit
e845de3851
|
@ -1576,7 +1576,7 @@ typedef struct X86CPUDefinition {
|
||||||
int stepping;
|
int stepping;
|
||||||
FeatureWordArray features;
|
FeatureWordArray features;
|
||||||
const char *model_id;
|
const char *model_id;
|
||||||
CPUCaches *cache_info;
|
const CPUCaches *const cache_info;
|
||||||
/*
|
/*
|
||||||
* Definitions for alternative versions of CPU model.
|
* Definitions for alternative versions of CPU model.
|
||||||
* List is terminated by item with version == 0.
|
* List is terminated by item with version == 0.
|
||||||
|
@ -1619,7 +1619,7 @@ static const X86CPUVersionDefinition *x86_cpu_def_get_versions(X86CPUDefinition
|
||||||
return def->versions ?: default_version_list;
|
return def->versions ?: default_version_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
static CPUCaches epyc_cache_info = {
|
static const CPUCaches epyc_cache_info = {
|
||||||
.l1d_cache = &(CPUCacheInfo) {
|
.l1d_cache = &(CPUCacheInfo) {
|
||||||
.type = DATA_CACHE,
|
.type = DATA_CACHE,
|
||||||
.level = 1,
|
.level = 1,
|
||||||
|
@ -1669,7 +1669,7 @@ static CPUCaches epyc_cache_info = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static CPUCaches epyc_rome_cache_info = {
|
static const CPUCaches epyc_rome_cache_info = {
|
||||||
.l1d_cache = &(CPUCacheInfo) {
|
.l1d_cache = &(CPUCacheInfo) {
|
||||||
.type = DATA_CACHE,
|
.type = DATA_CACHE,
|
||||||
.level = 1,
|
.level = 1,
|
||||||
|
@ -1719,7 +1719,7 @@ static CPUCaches epyc_rome_cache_info = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static CPUCaches epyc_milan_cache_info = {
|
static const CPUCaches epyc_milan_cache_info = {
|
||||||
.l1d_cache = &(CPUCacheInfo) {
|
.l1d_cache = &(CPUCacheInfo) {
|
||||||
.type = DATA_CACHE,
|
.type = DATA_CACHE,
|
||||||
.level = 1,
|
.level = 1,
|
||||||
|
|
Loading…
Reference in a new issue