Skip to content

Commit

Permalink
target/microblaze: Constify VMState in machine.c
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-12-richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Dec 29, 2023
1 parent f3fb948 commit 61d5442
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions target/microblaze/machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "migration/cpu.h"


static VMStateField vmstate_mmu_fields[] = {
static const VMStateField vmstate_mmu_fields[] = {
VMSTATE_UINT64_2DARRAY(rams, MicroBlazeMMU, 2, TLB_ENTRIES),
VMSTATE_UINT8_ARRAY(tids, MicroBlazeMMU, TLB_ENTRIES),
VMSTATE_UINT32_ARRAY(regs, MicroBlazeMMU, 3),
Expand Down Expand Up @@ -60,7 +60,7 @@ static const VMStateInfo vmstate_msr = {
.put = put_msr,
};

static VMStateField vmstate_env_fields[] = {
static const VMStateField vmstate_env_fields[] = {
VMSTATE_UINT32_ARRAY(regs, CPUMBState, 32),

VMSTATE_UINT32(pc, CPUMBState),
Expand Down Expand Up @@ -92,7 +92,7 @@ static const VMStateDescription vmstate_env = {
.fields = vmstate_env_fields,
};

static VMStateField vmstate_cpu_fields[] = {
static const VMStateField vmstate_cpu_fields[] = {
VMSTATE_CPU(),
VMSTATE_STRUCT(env, MicroBlazeCPU, 1, vmstate_env, CPUMBState),
VMSTATE_END_OF_LIST()
Expand Down

0 comments on commit 61d5442

Please sign in to comment.