[PATCH 0/3] target/ppc: Replace target_ulong -> uint64_t for TARGET_PPC64

Philippe Mathieu-Daudé posted 3 patches 3 weeks, 1 day ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260315170832.40331-1-philmd@linaro.org
Maintainers: Nicholas Piggin <npiggin@gmail.com>, Chinmay Rath <rathc@linux.ibm.com>, Glenn Miles <milesg@linux.ibm.com>
target/ppc/cpu.h       | 14 ++++++-------
target/ppc/machine.c   |  4 ++--
target/ppc/translate.c | 47 +++++++++++++++++++++---------------------
3 files changed, 33 insertions(+), 32 deletions(-)
[PATCH 0/3] target/ppc: Replace target_ulong -> uint64_t for TARGET_PPC64
Posted by Philippe Mathieu-Daudé 3 weeks, 1 day ago
The 'target_ulong' should only be used for fields when have
different size on 32 / 64-bit builds. For fields whicn are
only available on 64-bit builds, directly use the 'uint64_t'
type.

Philippe Mathieu-Daudé (3):
  target/ppc: Explicitly declare CFAR register as 64-bit
  target/ppc: Explicitly declare 'cpu_reserve_val2' register as 64-bit
  target/ppc: Explicitly declare BHRB related register as 64-bit

 target/ppc/cpu.h       | 14 ++++++-------
 target/ppc/machine.c   |  4 ++--
 target/ppc/translate.c | 47 +++++++++++++++++++++---------------------
 3 files changed, 33 insertions(+), 32 deletions(-)

-- 
2.53.0


Re: [PATCH 0/3] target/ppc: Replace target_ulong -> uint64_t for TARGET_PPC64
Posted by Anton Johansson via qemu development 3 weeks ago
On 15/03/26, Philippe Mathieu-Daudé wrote:
> The 'target_ulong' should only be used for fields when have
> different size on 32 / 64-bit builds. For fields whicn are

                                                   ^- spelling:)


> only available on 64-bit builds, directly use the 'uint64_t'
> type.
> 
> Philippe Mathieu-Daudé (3):
>   target/ppc: Explicitly declare CFAR register as 64-bit
>   target/ppc: Explicitly declare 'cpu_reserve_val2' register as 64-bit
>   target/ppc: Explicitly declare BHRB related register as 64-bit
> 
>  target/ppc/cpu.h       | 14 ++++++-------
>  target/ppc/machine.c   |  4 ++--
>  target/ppc/translate.c | 47 +++++++++++++++++++++---------------------
>  3 files changed, 33 insertions(+), 32 deletions(-)
> 
> -- 
> 2.53.0
> 
>