diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-05 12:28:57 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-06 01:17:37 -0500 |
commit | 74ccc978200bc96b48ef52385cadf5ddb131dc21 (patch) | |
tree | f41ed8ba853d1f4594916169b00ba8f34e8a967c /sim/mn10300/interp.c | |
parent | 436c3d9d7b20b522d9bc9d737c491ac4e6c719be (diff) | |
download | gdb-74ccc978200bc96b48ef52385cadf5ddb131dc21.zip gdb-74ccc978200bc96b48ef52385cadf5ddb131dc21.tar.gz gdb-74ccc978200bc96b48ef52385cadf5ddb131dc21.tar.bz2 |
sim: mn10300: migrate to standard uintXX_t types
This old port setup its own uintXX types, but since we require C11
now, we can assume the standard uintXX_t types exist and use them.
Diffstat (limited to 'sim/mn10300/interp.c')
-rw-r--r-- | sim/mn10300/interp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/mn10300/interp.c b/sim/mn10300/interp.c index 551d176..2e7fd16 100644 --- a/sim/mn10300/interp.c +++ b/sim/mn10300/interp.c @@ -320,7 +320,7 @@ sim_create_inferior (SIM_DESC sd, } else { PC = 0; } - CPU_PC_SET (STATE_CPU (sd, 0), (unsigned64) PC); + CPU_PC_SET (STATE_CPU (sd, 0), (uint64_t) PC); if (STATE_ARCHITECTURE (sd)->mach == bfd_mach_am33_2) PSW |= PSW_FE; @@ -335,7 +335,7 @@ static int mn10300_reg_fetch (SIM_CPU *cpu, int rn, unsigned char *memory, int length) { reg_t reg = State.regs[rn]; - uint8 *a = memory; + uint8_t *a = memory; a[0] = reg; a[1] = reg >> 8; a[2] = reg >> 16; @@ -346,7 +346,7 @@ mn10300_reg_fetch (SIM_CPU *cpu, int rn, unsigned char *memory, int length) static int mn10300_reg_store (SIM_CPU *cpu, int rn, unsigned char *memory, int length) { - uint8 *a = memory; + uint8_t *a = memory; State.regs[rn] = (a[3] << 24) + (a[2] << 16) + (a[1] << 8) + a[0]; return length; } |