Skip to content

Commit

Permalink
target/i386/cpu: Constify CPUCaches
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd authored and ehabkost committed May 31, 2021
1 parent fd1fd38 commit e845de3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions target/i386/cpu.c
Expand Up @@ -1576,7 +1576,7 @@ typedef struct X86CPUDefinition {
int stepping;
FeatureWordArray features;
const char *model_id;
CPUCaches *cache_info;
const CPUCaches *const cache_info;
/*
* Definitions for alternative versions of CPU model.
* List is terminated by item with version == 0.
Expand Down Expand Up @@ -1619,7 +1619,7 @@ static const X86CPUVersionDefinition *x86_cpu_def_get_versions(X86CPUDefinition
return def->versions ?: default_version_list;
}

static CPUCaches epyc_cache_info = {
static const CPUCaches epyc_cache_info = {
.l1d_cache = &(CPUCacheInfo) {
.type = DATA_CACHE,
.level = 1,
Expand Down Expand Up @@ -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) {
.type = DATA_CACHE,
.level = 1,
Expand Down Expand Up @@ -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) {
.type = DATA_CACHE,
.level = 1,
Expand Down

0 comments on commit e845de3

Please sign in to comment.