mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/pci: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-45-richard.henderson@linaro.org>
This commit is contained in:
parent
be555ec413
commit
8e5e0890b7
6 changed files with 11 additions and 11 deletions
|
@ -797,7 +797,7 @@ static const VMStateDescription vmstate_pcie_aer_err = {
|
|||
.name = "PCIE_AER_ERROR",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(status, PCIEAERErr),
|
||||
VMSTATE_UINT16(source_id, PCIEAERErr),
|
||||
VMSTATE_UINT16(flags, PCIEAERErr),
|
||||
|
@ -818,7 +818,7 @@ const VMStateDescription vmstate_pcie_aer_log = {
|
|||
.name = "PCIE_AER_ERROR_LOG",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT16(log_num, PCIEAERLog),
|
||||
VMSTATE_UINT16_EQUAL(log_max, PCIEAERLog, NULL),
|
||||
VMSTATE_VALIDATE("log_num <= log_max", pcie_aer_state_log_num_valid),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue