summaryrefslogtreecommitdiff
path: root/sim/iq2000
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-12-06 02:16:02 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-06 01:17:38 -0500
commit1e1e987aed7d7454d42a1ea77c60a24f3d718ef0 (patch)
tree554671f99923cc89a23cb5b444a07800ded44b6c /sim/iq2000
parentc50b7c1b743b241902f58d10f0c7ec9e20b55013 (diff)
downloadbinutils-gdb-1e1e987aed7d7454d42a1ea77c60a24f3d718ef0.tar.gz
sim: iq2000: 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/iq2000')
-rw-r--r--sim/iq2000/iq2000.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/iq2000/iq2000.c b/sim/iq2000/iq2000.c
index 6d210f41111..b685a31b07a 100644
--- a/sim/iq2000/iq2000.c
+++ b/sim/iq2000/iq2000.c
@@ -211,14 +211,14 @@ iq2000bf_fetch_register (SIM_CPU *cpu, int nr, unsigned char *buf, int len)
&& nr < (GPR0_REGNUM + NR_GPR)
&& len == 4)
{
- *((unsigned32*)buf) =
+ *((uint32_t*)buf) =
H2T_4 (iq2000bf_h_gr_get (cpu, nr - GPR0_REGNUM));
return 4;
}
else if (nr == PC_REGNUM
&& len == 4)
{
- *((unsigned32*)buf) = H2T_4 (get_h_pc (cpu));
+ *((uint32_t*)buf) = H2T_4 (get_h_pc (cpu));
return 4;
}
else
@@ -232,13 +232,13 @@ iq2000bf_store_register (SIM_CPU *cpu, int nr, unsigned char *buf, int len)
&& nr < (GPR0_REGNUM + NR_GPR)
&& len == 4)
{
- iq2000bf_h_gr_set (cpu, nr - GPR0_REGNUM, T2H_4 (*((unsigned32*)buf)));
+ iq2000bf_h_gr_set (cpu, nr - GPR0_REGNUM, T2H_4 (*((uint32_t*)buf)));
return 4;
}
else if (nr == PC_REGNUM
&& len == 4)
{
- set_h_pc (cpu, T2H_4 (*((unsigned32*)buf)));
+ set_h_pc (cpu, T2H_4 (*((uint32_t*)buf)));
return 4;
}
else