]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/openrisc: Replace target_ulong -> uint32_t
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 9 Oct 2025 07:59:05 +0000 (09:59 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 16 Oct 2025 15:07:28 +0000 (17:07 +0200)
commit5b67dbf1dc3caa6992576725a0783fa68fe6990c
tree07668a54e767fd58146a9b9d2017e9815a37bc9d
parent500708331e3f0c856270c14d836c79fcc65bdfde
target/openrisc: Replace target_ulong -> uint32_t

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é <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20251010070702.51484-14-philmd@linaro.org>
target/openrisc/cpu.h
target/openrisc/fpu_helper.c
target/openrisc/helper.h
target/openrisc/machine.c
target/openrisc/sys_helper.c
target/openrisc/translate.c