mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
hw/net: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-42-richard.henderson@linaro.org>
This commit is contained in:
parent
e4ea952fb0
commit
1de81b426c
41 changed files with 80 additions and 80 deletions
|
@ -88,7 +88,7 @@ static const VMStateDescription vmstate_rx_frame = {
|
|||
.name = "stellaris_enet/rx_frame",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT8_ARRAY(data, StellarisEnetRxFrame, 2048),
|
||||
VMSTATE_UINT32(len, StellarisEnetRxFrame),
|
||||
VMSTATE_END_OF_LIST()
|
||||
|
@ -133,7 +133,7 @@ static const VMStateDescription vmstate_stellaris_enet = {
|
|||
.version_id = 2,
|
||||
.minimum_version_id = 2,
|
||||
.post_load = stellaris_enet_post_load,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(ris, stellaris_enet_state),
|
||||
VMSTATE_UINT32(im, stellaris_enet_state),
|
||||
VMSTATE_UINT32(rctl, stellaris_enet_state),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue