[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 19/71] hw/core: Constify VMState
From: |
Richard Henderson |
Subject: |
[PULL 19/71] hw/core: Constify VMState |
Date: |
Sat, 30 Dec 2023 08:22:54 +1100 |
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>
---
hw/core/clock-vmstate.c | 6 +++---
hw/core/or-irq.c | 6 +++---
hw/core/ptimer.c | 2 +-
3 files changed, 7 insertions(+), 7 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
},
diff --git a/hw/core/or-irq.c b/hw/core/or-irq.c
index 1df4bc05a7..13907df026 100644
--- a/hw/core/or-irq.c
+++ b/hw/core/or-irq.c
@@ -94,7 +94,7 @@ static const VMStateDescription vmstate_or_irq_extras = {
.version_id = 1,
.minimum_version_id = 1,
.needed = vmstate_extras_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_VARRAY_UINT16_UNSAFE(levels, OrIRQState, num_lines, 0,
vmstate_info_bool, bool),
VMSTATE_END_OF_LIST(),
@@ -105,11 +105,11 @@ static const VMStateDescription vmstate_or_irq = {
.name = TYPE_OR_IRQ,
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_BOOL_SUB_ARRAY(levels, OrIRQState, 0, OLD_MAX_OR_LINES),
VMSTATE_END_OF_LIST(),
},
- .subsections = (const VMStateDescription*[]) {
+ .subsections = (const VMStateDescription * const []) {
&vmstate_or_irq_extras,
NULL
},
diff --git a/hw/core/ptimer.c b/hw/core/ptimer.c
index e03165febf..b1517592c6 100644
--- a/hw/core/ptimer.c
+++ b/hw/core/ptimer.c
@@ -441,7 +441,7 @@ const VMStateDescription vmstate_ptimer = {
.name = "ptimer",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT8(enabled, ptimer_state),
VMSTATE_UINT64(limit, ptimer_state),
VMSTATE_UINT64(delta, ptimer_state),
--
2.34.1
- [PULL 08/71] target/i386: Constify VMState in machine.c, (continued)
- [PULL 08/71] target/i386: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 11/71] target/microblaze: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 10/71] target/m68k: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 13/71] target/openrisc: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 12/71] target/mips: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 14/71] target/ppc: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 15/71] target/riscv: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 16/71] target/s390x: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 17/71] target/sparc: Constify VMState in machine.c, Richard Henderson, 2023/12/29
- [PULL 18/71] hw/arm: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 19/71] hw/core: Constify VMState,
Richard Henderson <=
- [PULL 20/71] hw/9pfs: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 21/71] hw/acpi: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 22/71] hw/adc: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 26/71] hw/display: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 27/71] hw/dma: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 24/71] hw/block: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 23/71] hw/audio: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 28/71] hw/gpio: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 25/71] hw/char: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 29/71] hw/hyperv: Constify VMState, Richard Henderson, 2023/12/29