diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-06 02:42:00 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-06 01:17:39 -0500 |
commit | 95e40d770e95c0d5317c2566a7976bd3421f380a (patch) | |
tree | ee409c8b3279492f88f1b3b5e675e86d254b899d /sim/ppc/emul_generic.c | |
parent | e4c803f5bb08e946f0550260b39f71eff0192262 (diff) | |
download | gdb-95e40d770e95c0d5317c2566a7976bd3421f380a.zip gdb-95e40d770e95c0d5317c2566a7976bd3421f380a.tar.gz gdb-95e40d770e95c0d5317c2566a7976bd3421f380a.tar.bz2 |
sim: ppc: migrate to standard uintXX_t types
Drop the sim-specific unsignedXX types and move to the standard uintXX_t
types that C11 provides.
Diffstat (limited to 'sim/ppc/emul_generic.c')
-rw-r--r-- | sim/ppc/emul_generic.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sim/ppc/emul_generic.c b/sim/ppc/emul_generic.c index 9d57bc6..0319730 100644 --- a/sim/ppc/emul_generic.c +++ b/sim/ppc/emul_generic.c @@ -58,12 +58,12 @@ emul_syscall_exit(emul_syscall *emul, } -INLINE_EMUL_GENERIC unsigned64 +INLINE_EMUL_GENERIC uint64_t emul_read_gpr64(cpu *processor, int g) { - unsigned32 hi; - unsigned32 lo; + uint32_t hi; + uint32_t lo; if (CURRENT_TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) { hi = cpu_registers(processor)->gpr[g]; lo = cpu_registers(processor)->gpr[g+1]; @@ -79,10 +79,10 @@ emul_read_gpr64(cpu *processor, INLINE_EMUL_GENERIC void emul_write_gpr64(cpu *processor, int g, - unsigned64 val) + uint64_t val) { - unsigned32 hi = EXTRACTED64(val, 0, 31); - unsigned32 lo = EXTRACTED64(val, 32, 63); + uint32_t hi = EXTRACTED64(val, 0, 31); + uint32_t lo = EXTRACTED64(val, 32, 63); if (CURRENT_TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) { cpu_registers(processor)->gpr[g] = hi; cpu_registers(processor)->gpr[g+1] = lo; |