aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/wrapper.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-05-27 14:12:00 +0000
committerNick Clifton <nickc@redhat.com>2002-05-27 14:12:00 +0000
commit10b57fcbd720b5fab5b54901e7c80a2b39898cc4 (patch)
tree24dd8123d4584f1b4d3de8d09e2b47b0cb85fa7b /sim/arm/wrapper.c
parentf08caad151ffb2884eeb58c956f931ea8d30e0bf (diff)
downloadgdb-10b57fcbd720b5fab5b54901e7c80a2b39898cc4.zip
gdb-10b57fcbd720b5fab5b54901e7c80a2b39898cc4.tar.gz
gdb-10b57fcbd720b5fab5b54901e7c80a2b39898cc4.tar.bz2
Only perform access checks if 'check' is set.
Report unknown machine numbers. Formatting tidy ups.
Diffstat (limited to 'sim/arm/wrapper.c')
-rw-r--r--sim/arm/wrapper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c
index 7493e8c..0ff2cd9 100644
--- a/sim/arm/wrapper.c
+++ b/sim/arm/wrapper.c
@@ -223,7 +223,8 @@ sim_create_inferior (sd, abfd, argv, env)
default:
(*sim_callback->printf_filtered)
(sim_callback,
- "Unknown machine type; please update sim_create_inferior.\n");
+ "Unknown machine type '%d'; please update sim_create_inferior.\n",
+ mach);
/* fall through */
case 0:
@@ -388,7 +389,7 @@ sim_store_register (sd, rn, memory, length)
if (rn == 25)
{
state->Cpsr = frommem (state, memory);
- ARMul_CPSRAltered (state);
+ ARMul_CPSRAltered (state);
}
else
ARMul_SetReg (state, state->Mode, rn, frommem (state, memory));