diff options
author | Nick Clifton <nickc@redhat.com> | 2012-09-03 10:13:11 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-09-03 10:13:11 +0000 |
commit | f253d86d7f3da50f46117b753ae763dc393a13c9 (patch) | |
tree | 171966a3728549075c5de0ce421b51dd29f7542c /sim | |
parent | a1846e5efd0f968e9dd1ee686c20006ad1bfb3d4 (diff) | |
download | gdb-f253d86d7f3da50f46117b753ae763dc393a13c9.zip gdb-f253d86d7f3da50f46117b753ae763dc393a13c9.tar.gz gdb-f253d86d7f3da50f46117b753ae763dc393a13c9.tar.bz2 |
PR sim/14540
* armsupp.c (ARMul_MRC): Return 0 if access to the MRC instruction
is denied.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/arm/ChangeLog | 6 | ||||
-rw-r--r-- | sim/arm/armsupp.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog index 9df17bd..f2a0408 100644 --- a/sim/arm/ChangeLog +++ b/sim/arm/ChangeLog @@ -1,3 +1,9 @@ +2012-09-03 Nick Clifton <nickc@redhat.com> + + PR sim/14540 + * armsupp.c (ARMul_MRC): Return 0 if access to the MRC instruction + is denied. + 2012-08-01 Kevin Buettner <kevinb@redhat.com> * wrapper.c (libiberty.h): Include. diff --git a/sim/arm/armsupp.c b/sim/arm/armsupp.c index b8e1d38..2e49af8 100644 --- a/sim/arm/armsupp.c +++ b/sim/arm/armsupp.c @@ -636,7 +636,7 @@ ARMul_MRC (ARMul_State * state, ARMword instr) if (! CP_ACCESS_ALLOWED (state, CPNum)) { ARMul_UndefInstr (state, instr); - return; + return result; } cpab = (state->MRC[CPNum]) (state, ARMul_FIRST, instr, &result); |