On 10/9/25 01:19, Philippe Mathieu-Daudé wrote:
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
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_temp_new -> tcg_temp_new_i32
tcg_global_mem_new -> tcg_global_mem_new_i32
VMSTATE_UINTTL -> VMSTATE_UINT32
There is no functional change (the migration stream is not modified).
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
Reviewed-by: Anton Johansson<[email protected]>
---
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 | 382 +++++++++++++++++------------------
6 files changed, 220 insertions(+), 221 deletions(-)
Reviewed-by: Richard Henderson <[email protected]>
r~