aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/mips3264r2.igen
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-12-06 02:17:02 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-06 01:17:38 -0500
commitb331e677d748b322003d4f59eb0bd2ce3feada4b (patch)
tree503b5ffee9d67e7d258d15a3c30ac6c367f313bd /sim/mips/mips3264r2.igen
parent2875d098a59a72d3dd942d89901318aed6331cf6 (diff)
downloadgdb-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/mips3264r2.igen')
-rw-r--r--sim/mips/mips3264r2.igen6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/mips/mips3264r2.igen b/sim/mips/mips3264r2.igen
index be0772b..e0b838c 100644
--- a/sim/mips/mips3264r2.igen
+++ b/sim/mips/mips3264r2.igen
@@ -21,7 +21,7 @@
:function:::void:do_dsbh:int rd, int rt
{
- union { unsigned64 d; unsigned16 h[4]; } u;
+ union { uint64_t d; uint16_t h[4]; } u;
TRACE_ALU_INPUT1 (GPR[rt]);
u.d = GPR[rt];
u.h[0] = SWAP_2 (u.h[0]);
@@ -34,7 +34,7 @@
:function:::void:do_dshd:int rd, int rt
{
- unsigned64 d;
+ uint64_t d;
TRACE_ALU_INPUT1 (GPR[rt]);
d = GPR[rt];
GPR[rd] = ((d >> 48)
@@ -181,7 +181,7 @@
:function:::void:do_wsbh:int rd, int rt
{
- union { unsigned32 w; unsigned16 h[2]; } u;
+ union { uint32_t w; uint16_t h[2]; } u;
TRACE_ALU_INPUT1 (GPR[rt]);
u.w = GPR[rt];
u.h[0] = SWAP_2 (u.h[0]);