diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-06 02:39:42 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-01 13:31:34 -0500 |
commit | 03b46de59084f558140b632f0868a7e37b7749d3 (patch) | |
tree | 1360452b55c0ede4411c4e4b0aa3a427e1e457cd /sim/ppc/emul_netbsd.c | |
parent | d3eb0aa2872de6257df7a21ba2cf798f1005001d (diff) | |
download | binutils-03b46de59084f558140b632f0868a7e37b7749d3.zip binutils-03b46de59084f558140b632f0868a7e37b7749d3.tar.gz binutils-03b46de59084f558140b632f0868a7e37b7749d3.tar.bz2 |
sim: ppc: drop natural types
These are almost entirely unused. For the very few places using them,
replace with explicit signed types. This matches what was done in the
common sim code.
Diffstat (limited to 'sim/ppc/emul_netbsd.c')
-rw-r--r-- | sim/ppc/emul_netbsd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sim/ppc/emul_netbsd.c b/sim/ppc/emul_netbsd.c index d1595c5..322b584 100644 --- a/sim/ppc/emul_netbsd.c +++ b/sim/ppc/emul_netbsd.c @@ -631,7 +631,7 @@ do_sigprocmask(os_emul_data *emul, cpu *processor, unsigned_word cia) { - natural_word how = cpu_registers(processor)->gpr[arg0]; + signed_word how = cpu_registers(processor)->gpr[arg0]; unsigned_word set = cpu_registers(processor)->gpr[arg0+1]; unsigned_word oset = cpu_registers(processor)->gpr[arg0+2]; #ifdef SYS_sigprocmask @@ -1010,12 +1010,12 @@ do___sysctl(os_emul_data *emul, { /* call the arguments by their real name */ unsigned_word name = cpu_registers(processor)->gpr[arg0]; - natural_word namelen = cpu_registers(processor)->gpr[arg0+1]; + signed_word namelen = cpu_registers(processor)->gpr[arg0+1]; unsigned_word oldp = cpu_registers(processor)->gpr[arg0+2]; unsigned_word oldlenp = cpu_registers(processor)->gpr[arg0+3]; - natural_word oldlen; - natural_word mib; - natural_word int_val; + signed_word oldlen; + signed_word mib; + signed_word int_val; SYS(__sysctl); /* pluck out the management information base id */ @@ -1049,7 +1049,7 @@ do___sysctl(os_emul_data *emul, oldlenp, processor, cia); - if (sizeof(natural_word) > oldlen) + if (sizeof(signed_word) > oldlen) error("system_call()sysctl - CTL_HW.HW_PAGESIZE - to small\n"); int_val = 8192; oldlen = sizeof(int_val); |