mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/pci-host: 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-47-richard.henderson@linaro.org>
This commit is contained in:
parent
f026c578eb
commit
e2bd53a38c
11 changed files with 18 additions and 18 deletions
|
@ -379,7 +379,7 @@ static const VMStateDescription vmstate_pci_outbound = {
|
|||
.name = "pci_outbound",
|
||||
.version_id = 0,
|
||||
.minimum_version_id = 0,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(potar, struct pci_outbound),
|
||||
VMSTATE_UINT32(potear, struct pci_outbound),
|
||||
VMSTATE_UINT32(powbar, struct pci_outbound),
|
||||
|
@ -392,7 +392,7 @@ static const VMStateDescription vmstate_pci_inbound = {
|
|||
.name = "pci_inbound",
|
||||
.version_id = 0,
|
||||
.minimum_version_id = 0,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(pitar, struct pci_inbound),
|
||||
VMSTATE_UINT32(piwbar, struct pci_inbound),
|
||||
VMSTATE_UINT32(piwbear, struct pci_inbound),
|
||||
|
@ -405,7 +405,7 @@ static const VMStateDescription vmstate_ppce500_pci = {
|
|||
.name = "ppce500_pci",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_STRUCT_ARRAY(pob, PPCE500PCIState, PPCE500_PCI_NR_POBS, 1,
|
||||
vmstate_pci_outbound, struct pci_outbound),
|
||||
VMSTATE_STRUCT_ARRAY(pib, PPCE500PCIState, PPCE500_PCI_NR_PIBS, 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue