diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-12-21 14:16:00 +1100 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-12-29 11:17:30 +1100 |
| commit | f55f1a4928a554f56ce906f410b3bc23819f075d (patch) | |
| tree | 1afcbca678993ef56fc7ec140caf29c45f141398 /hw/core/clock-vmstate.c | |
| parent | 607ef5706c3d1c593849c63968b55a97df190d91 (diff) | |
| download | focaccia-qemu-f55f1a4928a554f56ce906f410b3bc23819f075d.tar.gz focaccia-qemu-f55f1a4928a554f56ce906f410b3bc23819f075d.zip | |
hw/core: Constify VMState
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-20-richard.henderson@linaro.org>
Diffstat (limited to 'hw/core/clock-vmstate.c')
| -rw-r--r-- | hw/core/clock-vmstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/core/clock-vmstate.c b/hw/core/clock-vmstate.c index 7eccb6d4ea..e831fc596f 100644 --- a/hw/core/clock-vmstate.c +++ b/hw/core/clock-vmstate.c @@ -41,7 +41,7 @@ const VMStateDescription vmstate_muldiv = { .version_id = 1, .minimum_version_id = 1, .needed = muldiv_needed, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT32(multiplier, Clock), VMSTATE_UINT32(divider, Clock), VMSTATE_END_OF_LIST() @@ -53,11 +53,11 @@ const VMStateDescription vmstate_clock = { .version_id = 0, .minimum_version_id = 0, .pre_load = clock_pre_load, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT64(period, Clock), VMSTATE_END_OF_LIST() }, - .subsections = (const VMStateDescription*[]) { + .subsections = (const VMStateDescription * const []) { &vmstate_muldiv, NULL }, |