From 899d85beadd08b604d95d700c80f8270964dd449 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 14 Aug 2008 13:56:00 +0000 Subject: [PATCH] PR 6825 * ppc-opc.c (powerpc_opcodes): Enable rfci, mfpmr, mtpmr for e300. --- opcodes/ChangeLog | 5 +++++ opcodes/ppc-opc.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index b7936ac..eb26e1f 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2008-08-14 Sebastian Huber + + PR 6825 + * ppc-opc.c (powerpc_opcodes): Enable rfci, mfpmr, mtpmr for e300. + 2008-08-12 H.J. Lu * i386-opc.tbl: Add syscall and sysret for Cpu64. diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index e0d833c..0faf528 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -3081,7 +3081,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"rfdi", XL(19,39), 0xffffffff, E500MC, {0}}, {"rfi", XL(19,50), 0xffffffff, COM, {0}}, -{"rfci", XL(19,51), 0xffffffff, PPC403|BOOKE, {0}}, +{"rfci", XL(19,51), 0xffffffff, PPC403|BOOKE|PPCE300, {0}}, {"rfsvc", XL(19,82), 0xffffffff, POWER, {0}}, @@ -3790,7 +3790,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"div", XO(31,331,0,0), XO_MASK, M601, {RT, RA, RB}}, {"div.", XO(31,331,0,1), XO_MASK, M601, {RT, RA, RB}}, -{"mfpmr", X(31,334), X_MASK, PPCPMR, {RT, PMR}}, +{"mfpmr", X(31,334), X_MASK, PPCPMR|PPCE300, {RT, PMR}}, {"mfmq", XSPR(31,339, 0), XSPR_MASK, M601, {RT}}, {"mfxer", XSPR(31,339, 1), XSPR_MASK, COM, {RT}}, @@ -4094,7 +4094,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"divwu", XO(31,459,0,0), XO_MASK, PPC, {RT, RA, RB}}, {"divwu.", XO(31,459,0,1), XO_MASK, PPC, {RT, RA, RB}}, -{"mtpmr", X(31,462), X_MASK, PPCPMR, {PMR, RS}}, +{"mtpmr", X(31,462), X_MASK, PPCPMR|PPCE300, {PMR, RS}}, {"mtmq", XSPR(31,467, 0), XSPR_MASK, M601, {RS}}, {"mtxer", XSPR(31,467, 1), XSPR_MASK, COM, {RS}}, -- 2.7.4