From f253d86d7f3da50f46117b753ae763dc393a13c9 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 3 Sep 2012 10:13:11 +0000 Subject: [PATCH] PR sim/14540 * armsupp.c (ARMul_MRC): Return 0 if access to the MRC instruction is denied. --- sim/arm/ChangeLog | 6 ++++++ sim/arm/armsupp.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + PR sim/14540 + * armsupp.c (ARMul_MRC): Return 0 if access to the MRC instruction + is denied. + 2012-08-01 Kevin Buettner * 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); -- 2.30.2