diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-12-21 14:16:15 +1100 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-12-29 11:17:30 +1100 |
| commit | 45b1f81d9088d102c4b6739281d93bbed88666d4 (patch) | |
| tree | 14ea807aa4696c2cee57f979e4083cfdcbd59e0d /hw/intc/i8259_common.c | |
| parent | af0f07dfc7ce56a944c38d872b7d4502178e6948 (diff) | |
| download | focaccia-qemu-45b1f81d9088d102c4b6739281d93bbed88666d4.tar.gz focaccia-qemu-45b1f81d9088d102c4b6739281d93bbed88666d4.zip | |
hw/intc: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-35-richard.henderson@linaro.org>
Diffstat (limited to 'hw/intc/i8259_common.c')
| -rw-r--r-- | hw/intc/i8259_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/intc/i8259_common.c b/hw/intc/i8259_common.c index c931dc2d07..ee0041115c 100644 --- a/hw/intc/i8259_common.c +++ b/hw/intc/i8259_common.c @@ -156,7 +156,7 @@ static const VMStateDescription vmstate_pic_ltim = { .version_id = 1, .minimum_version_id = 1, .needed = ltim_state_needed, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT8(ltim, PICCommonState), VMSTATE_END_OF_LIST() } @@ -168,7 +168,7 @@ static const VMStateDescription vmstate_pic_common = { .minimum_version_id = 1, .pre_save = pic_dispatch_pre_save, .post_load = pic_dispatch_post_load, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT8(last_irr, PICCommonState), VMSTATE_UINT8(irr, PICCommonState), VMSTATE_UINT8(imr, PICCommonState), @@ -187,7 +187,7 @@ static const VMStateDescription vmstate_pic_common = { VMSTATE_UINT8(elcr, PICCommonState), VMSTATE_END_OF_LIST() }, - .subsections = (const VMStateDescription*[]) { + .subsections = (const VMStateDescription * const []) { &vmstate_pic_ltim, NULL } |