On Mon, 31 Oct 2022 at 00:29, Richard Henderson <richard.hender...@linaro.org> wrote: > > On 10/31/22 04:21, Philippe Mathieu-Daudé wrote: > > On 30/10/22 16:45, Peter Maydell wrote: > >>> -#define TCG_TARGET_REG_BITS 64 > >> > >> Why do we delete this? > > > > We get the default definition from include/tcg/tcg.h: > > > > 58 /* Default target word size to pointer size. */ > > 59 #ifndef TCG_TARGET_REG_BITS > > 60 # if UINTPTR_MAX == UINT32_MAX > > 61 # define TCG_TARGET_REG_BITS 32 > > 62 # elif UINTPTR_MAX == UINT64_MAX > > 63 # define TCG_TARGET_REG_BITS 64 > > Exactly.
Ah, I see. I was confused because a lot of the other tcg targets seem to by-hand define it, even when they don't AFAIK have 32-bit-API-on-64-bit-CPU support to consider. -- PMM