On 8/10/25 09:56, Philippe Mathieu-Daudé wrote:
The OpenRISC targets are only built as 32-bit, therefore
target_ulong always expands to uint32_t. Replace and adapt
the API uses mechanically:

   target_ulong -> uint32_t
   target_long -> int32_t
   tl -> i32
   TCGv -> TCGv_i32
   tcg_global_mem_new -> tcg_global_mem_new_i32

I forgot:

     VMSTATE_UINTTL -> VMSTATE_UINT32


Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
RFC: not sure how to split to ease review :|

~200 lines, not that bad.

---
  target/openrisc/cpu.h        |  22 +--
  target/openrisc/helper.h     |   8 +-
  target/openrisc/fpu_helper.c |   8 +-
  target/openrisc/machine.c    |  16 +-
  target/openrisc/sys_helper.c |   5 +-
  target/openrisc/translate.c  | 374 +++++++++++++++++------------------
  6 files changed, 216 insertions(+), 217 deletions(-)


Reply via email to