diff options
Diffstat (limited to 'sim/ppc/e500_registers.h')
-rw-r--r-- | sim/ppc/e500_registers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/ppc/e500_registers.h b/sim/ppc/e500_registers.h index cc3342f..d02bcc9 100644 --- a/sim/ppc/e500_registers.h +++ b/sim/ppc/e500_registers.h @@ -22,7 +22,7 @@ /* e500 accumulator. */ -typedef unsigned64 accreg; +typedef uint64_t accreg; enum { msr_e500_spu_enable = BIT(38) @@ -81,4 +81,4 @@ struct e500_regs { We need to cast the gpr value to an unsigned type so that it doesn't get sign-extended when it's or-ed with a 64-bit value; that would wipe out the upper 32 bits of the register's value. */ -#define EVR(N) ((((unsigned64)GPRH(N)) << 32) | (unsigned32) GPR(N)) +#define EVR(N) ((((uint64_t)GPRH(N)) << 32) | (uint32_t) GPR(N)) |