|
From: <sv...@va...> - 2008-11-06 09:22:20
|
Author: sewardj
Date: 2008-11-06 09:22:05 +0000 (Thu, 06 Nov 2008)
New Revision: 1871
Log:
Tighten up decoding of isel instruction.
Modified:
trunk/priv/guest-ppc/toIR.c
Modified: trunk/priv/guest-ppc/toIR.c
===================================================================
--- trunk/priv/guest-ppc/toIR.c 2008-11-06 09:02:34 UTC (rev 1870)
+++ trunk/priv/guest-ppc/toIR.c 2008-11-06 09:22:05 UTC (rev 1871)
@@ -9479,7 +9479,9 @@
/* Deal with some other cases that we would otherwise have
punted on. */
/* --- ISEL (PowerISA_V2.05.pdf, p74) --- */
- if (IFIELD(theInstr, 1, 5) == 15) {
+ /* only decode this insn when reserved bit 0 (31 in IBM's
+ notation) is zero */
+ if (IFIELD(theInstr, 0, 6) == (15<<1)) {
UInt rT = ifieldRegDS( theInstr );
UInt rA = ifieldRegA( theInstr );
UInt rB = ifieldRegB( theInstr );
|