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 | a44518e348ff53b72bb0411387ce19d7cad1e075 (patch) | |
tree | 2c5de525ef40d9e3fbd5f3a4a959ca163167245d /sim | |
parent | 3806871900a3242c3e778b9d9a520efc2d51aba9 (diff) | |
download | gdb-a44518e348ff53b72bb0411387ce19d7cad1e075.tar.gz |
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 9df17bd74a2..f2a04082b50 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 b8e1d385ccd..2e49af8f0e1 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); |