PR sim/14540

* armsupp.c (ARMul_MRC): Return 0 if access to the MRC instruction
	is denied.
This commit is contained in:
Nick Clifton
2012-09-03 10:13:11 +00:00
parent a1846e5efd
commit f253d86d7f
2 changed files with 7 additions and 1 deletions

View File

@@ -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.

View File

@@ -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);