Make the m5 pseudo instructions only work in FS. Also, make sure any undefined opcode...
authorGabe Black <gblack@eecs.umich.edu>
Thu, 22 Feb 2007 13:17:51 +0000 (13:17 +0000)
committerGabe Black <gblack@eecs.umich.edu>
Thu, 22 Feb 2007 13:17:51 +0000 (13:17 +0000)
--HG--
extra : convert_revision : dd7848d0685e4cc6f5fd5e3b846a3f70b62ee30a

src/arch/sparc/isa/decoder.isa

index e2d1707dd12a92ca52fd5d5c790c478be6caa0f7..2ce700ef119970bd3c576c95cdf0ad90748a1f2f 100644 (file)
@@ -1011,13 +1011,15 @@ decode OP default Unknown::unknown()
             }
             // M5 special opcodes use the reserved IMPDEP2A opcode space
             0x37: decode M5FUNC {
+#if FULL_SYSTEM
                 // we have 7 bits of space here to play with...
                 0x21: m5exit({{PseudoInst::m5exit(xc->tcBase(), O0);
                               }}, No_OpClass, IsNonSpeculative);
                 0x54: m5panic({{
                               panic("M5 panic instruction called at pc=%#x.", xc->readPC());
                               }}, No_OpClass, IsNonSpeculative);
-
+#endif
+                default: Trap::impdep2({{fault = new IllegalInstruction;}});
             }
             0x38: Branch::jmpl({{
                 Addr target = Rs1 + Rs2_or_imm13;