|
From: John R. <jr...@bi...> - 2018-04-10 15:12:36
|
> Introduce RegWord type
> On mips n32 size of long is 32 bits and register width is 64 bits.
> Valgrind is written with assumption that long size matches register
> width. This is the reason why both UWord for Valgrind and HWord for VEX
> match size of long. Long size differs from register size on mips n32 ABI.
>
> Introducing RegWord type that will match size of registers.
Why are there not separate RegWord for Host (HRegWord) and User (URegWord),
particularly in the system call wrapper functions? Why are there no problems
when a 32-bit host valgrinds execution for a 64-bit target?
+ PRINT("sys_getcwd ( %#" FMT_REGWORD "x, %llu )", ARG1,(ULong)ARG2);
Why is there not a FMT_ULong? On its face "llu" says "long long unsigned"
with two 'long', but "ULong" says only one 'long'.
|