Skip to contentSkip to conversation

target/openrisc: Replace VMSTATE_UINTTL() -> VMSTATE_UINT32()

PATCH In review Philippe Mathieu-Daudé 2 participants 4 messages Sep 25, 2025 – Oct 7, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/openrisc: Replace VMSTATE_UINTTL() -> VMSTATE_UINT32()

Both OpenRISCTLBEntry fields are of uint32_t type. Use the appropriate VMSTATE_UINT32() macro.

There is no functional change (the migration stream is not modified), because the OpenRISC targets are only built as 32-bit:

  $ git grep TARGET_LONG_BITS configs/targets/or1k-*
  configs/targets/or1k-linux-user.mak:5:TARGET_LONG_BITS=32
  configs/targets/or1k-softmmu.mak:5:TARGET_LONG_BITS=32
---
 target/openrisc/machine.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
target/openrisc/machine.c +2 -2
index 081c706d02c..fa054e528bd 100644
@@ -26,8 +26,8 @@ static const VMStateDescription vmstate_tlb_entry = {
     .version_id = 1,
     .minimum_version_id = 1,
     .fields = (const VMStateField[]) {
-        VMSTATE_UINTTL(mr, OpenRISCTLBEntry),
-        VMSTATE_UINTTL(tr, OpenRISCTLBEntry),
+        VMSTATE_UINT32(mr, OpenRISCTLBEntry),
+        VMSTATE_UINT32(tr, OpenRISCTLBEntry),
         VMSTATE_END_OF_LIST()
     }
 };
Signature · 1 line
2.51.0
#1 lore raw

ping

Quoted 30 lines · Philippe Mathieu-Daudé

Both OpenRISCTLBEntry fields are of uint32_t type. Use the appropriate VMSTATE_UINT32() macro.

There is no functional change (the migration stream is not modified), because the OpenRISC targets are only built as 32-bit:

   $ git grep TARGET_LONG_BITS configs/targets/or1k-*
   configs/targets/or1k-linux-user.mak:5:TARGET_LONG_BITS=32
   configs/targets/or1k-softmmu.mak:5:TARGET_LONG_BITS=32
---
  target/openrisc/machine.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
target/openrisc/machine.c +2 -2
index 081c706d02c..fa054e528bd 100644
@@ -26,8 +26,8 @@ static const VMStateDescription vmstate_tlb_entry = {
      .version_id = 1,
      .minimum_version_id = 1,
      .fields = (const VMStateField[]) {
-        VMSTATE_UINTTL(mr, OpenRISCTLBEntry),
-        VMSTATE_UINTTL(tr, OpenRISCTLBEntry),
+        VMSTATE_UINT32(mr, OpenRISCTLBEntry),
+        VMSTATE_UINT32(tr, OpenRISCTLBEntry),
          VMSTATE_END_OF_LIST()
      }
  };
Reviewed-by Anton Johansson on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 33 lines · Philippe Mathieu-Daudé

Both OpenRISCTLBEntry fields are of uint32_t type. Use the appropriate VMSTATE_UINT32() macro.

There is no functional change (the migration stream is not modified), because the OpenRISC targets are only built as 32-bit:

  $ git grep TARGET_LONG_BITS configs/targets/or1k-*
  configs/targets/or1k-linux-user.mak:5:TARGET_LONG_BITS=32
  configs/targets/or1k-softmmu.mak:5:TARGET_LONG_BITS=32
---
 target/openrisc/machine.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
target/openrisc/machine.c +2 -2
index 081c706d02c..fa054e528bd 100644
@@ -26,8 +26,8 @@ static const VMStateDescription vmstate_tlb_entry = {
     .version_id = 1,
     .minimum_version_id = 1,
     .fields = (const VMStateField[]) {
-        VMSTATE_UINTTL(mr, OpenRISCTLBEntry),
-        VMSTATE_UINTTL(tr, OpenRISCTLBEntry),
+        VMSTATE_UINT32(mr, OpenRISCTLBEntry),
+        VMSTATE_UINT32(tr, OpenRISCTLBEntry),
         VMSTATE_END_OF_LIST()
     }
 };
Signature · 1 line
2.51.0
#3 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 6 lines · Philippe Mathieu-Daudé

Both OpenRISCTLBEntry fields are of uint32_t type. Use the appropriate VMSTATE_UINT32() macro.

There is no functional change (the migration stream is not modified), because the OpenRISC targets are only built as 32-bit:

Quoted 8 lines
   $ git grep TARGET_LONG_BITS configs/targets/or1k-*
   configs/targets/or1k-linux-user.mak:5:TARGET_LONG_BITS=32
   configs/targets/or1k-softmmu.mak:5:TARGET_LONG_BITS=32
---
  target/openrisc/machine.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Patch queued, thanks.