diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-12-21 14:16:21 +1100 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-12-30 07:38:06 +1100 |
| commit | e4ea952fb0180e85655e9a93d39a1ad9442f76f2 (patch) | |
| tree | c9262dcb8b876dac5d561369f40d2170d6ca332e /hw/misc/mos6522.c | |
| parent | 2a031ec751a858e9b0dba754b502c0bc47876ef2 (diff) | |
| download | focaccia-qemu-e4ea952fb0180e85655e9a93d39a1ad9442f76f2.tar.gz focaccia-qemu-e4ea952fb0180e85655e9a93d39a1ad9442f76f2.zip | |
hw/misc: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-41-richard.henderson@linaro.org>
Diffstat (limited to 'hw/misc/mos6522.c')
| -rw-r--r-- | hw/misc/mos6522.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/misc/mos6522.c b/hw/misc/mos6522.c index d6ba47bde9..e3fe87c20c 100644 --- a/hw/misc/mos6522.c +++ b/hw/misc/mos6522.c @@ -611,7 +611,7 @@ static const VMStateDescription vmstate_mos6522_timer = { .name = "mos6522_timer", .version_id = 0, .minimum_version_id = 0, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT16(latch, MOS6522Timer), VMSTATE_UINT16(counter_value, MOS6522Timer), VMSTATE_INT64(load_time, MOS6522Timer), @@ -625,7 +625,7 @@ const VMStateDescription vmstate_mos6522 = { .name = "mos6522", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT8(a, MOS6522State), VMSTATE_UINT8(b, MOS6522State), VMSTATE_UINT8(dira, MOS6522State), |