aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-09-03 10:13:11 +0000
committerNick Clifton <nickc@redhat.com>2012-09-03 10:13:11 +0000
commitf253d86d7f3da50f46117b753ae763dc393a13c9 (patch)
tree171966a3728549075c5de0ce421b51dd29f7542c /sim
parenta1846e5efd0f968e9dd1ee686c20006ad1bfb3d4 (diff)
downloadgdb-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/ChangeLog6
-rw-r--r--sim/arm/armsupp.c2
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);