diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-06 02:17:02 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-06 01:17:38 -0500 |
commit | b331e677d748b322003d4f59eb0bd2ce3feada4b (patch) | |
tree | 503b5ffee9d67e7d258d15a3c30ac6c367f313bd /sim/mips/sim-main.c | |
parent | 2875d098a59a72d3dd942d89901318aed6331cf6 (diff) | |
download | gdb-b331e677d748b322003d4f59eb0bd2ce3feada4b.zip gdb-b331e677d748b322003d4f59eb0bd2ce3feada4b.tar.gz gdb-b331e677d748b322003d4f59eb0bd2ce3feada4b.tar.bz2 |
sim: mips: migrate to standard uintXX_t types
Move off the sim-specific unsignedXX types and to the standard uintXX_t
types that C11 provides.
Diffstat (limited to 'sim/mips/sim-main.c')
-rw-r--r-- | sim/mips/sim-main.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sim/mips/sim-main.c b/sim/mips/sim-main.c index 876593b..250310e 100644 --- a/sim/mips/sim-main.c +++ b/sim/mips/sim-main.c @@ -254,7 +254,7 @@ store_memory (SIM_DESC SD, } -INLINE_SIM_MAIN (unsigned32) +INLINE_SIM_MAIN (uint32_t) ifetch32 (SIM_DESC SD, sim_cpu *CPU, address_word cia, @@ -267,7 +267,7 @@ ifetch32 (SIM_DESC SD, address_word bigendiancpu = (BigEndianCPU ? (mask ^ access) : 0); unsigned int byte; address_word paddr = vaddr; - unsigned64 memval; + uint64_t memval; if ((vaddr & access) != 0) SignalExceptionInstructionFetch (); @@ -278,7 +278,7 @@ ifetch32 (SIM_DESC SD, } -INLINE_SIM_MAIN (unsigned16) +INLINE_SIM_MAIN (uint16_t) ifetch16 (SIM_DESC SD, sim_cpu *CPU, address_word cia, @@ -291,7 +291,7 @@ ifetch16 (SIM_DESC SD, address_word bigendiancpu = (BigEndianCPU ? (mask ^ access) : 0); unsigned int byte; address_word paddr = vaddr; - unsigned64 memval; + uint64_t memval; if ((vaddr & access) != 0) SignalExceptionInstructionFetch (); @@ -433,18 +433,18 @@ pending_tick (SIM_DESC SD, { case 4: if (PENDING_SLOT_VALUE[index]) - *(unsigned32*)PENDING_SLOT_DEST[index] |= + *(uint32_t*)PENDING_SLOT_DEST[index] |= BIT32 (PENDING_SLOT_BIT[index]); else - *(unsigned32*)PENDING_SLOT_DEST[index] &= + *(uint32_t*)PENDING_SLOT_DEST[index] &= BIT32 (PENDING_SLOT_BIT[index]); break; case 8: if (PENDING_SLOT_VALUE[index]) - *(unsigned64*)PENDING_SLOT_DEST[index] |= + *(uint64_t*)PENDING_SLOT_DEST[index] |= BIT64 (PENDING_SLOT_BIT[index]); else - *(unsigned64*)PENDING_SLOT_DEST[index] &= + *(uint64_t*)PENDING_SLOT_DEST[index] &= BIT64 (PENDING_SLOT_BIT[index]); break; } @@ -452,11 +452,11 @@ pending_tick (SIM_DESC SD, switch (PENDING_SLOT_SIZE[index]) { case 4: - *(unsigned32*)PENDING_SLOT_DEST[index] = + *(uint32_t*)PENDING_SLOT_DEST[index] = PENDING_SLOT_VALUE[index]; break; case 8: - *(unsigned64*)PENDING_SLOT_DEST[index] = + *(uint64_t*)PENDING_SLOT_DEST[index] = PENDING_SLOT_VALUE[index]; break; } |