PseudoInst: Remove the now unnecessary #if FULL_SYSTEMs around pseudoinsts.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 19 Sep 2011 09:40:19 +0000 (02:40 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 19 Sep 2011 09:40:19 +0000 (02:40 -0700)
src/arch/alpha/isa/decoder.isa
src/arch/arm/isa/templates/pred.isa
src/arch/sparc/isa/decoder.isa
src/arch/sparc/isa/includes.isa
src/arch/x86/isa/decoder/two_byte_opcodes.isa
src/arch/x86/isa/includes.isa

index 359c6b3b2320dc08a60f537e7e4a5252042f4864..d0aa13d38604f20e84b46c29cb2bdf3436ae0025 100644 (file)
@@ -944,7 +944,6 @@ decode OPCODE default Unknown::unknown() {
     format BasicOperate {
         // M5 special opcodes use the reserved 0x01 opcode space
         0x01: decode M5FUNC {
-#if FULL_SYSTEM
             0x00: arm({{
                 PseudoInst::arm(xc->tcBase());
             }}, IsNonSpeculative);
@@ -960,7 +959,6 @@ decode OPCODE default Unknown::unknown() {
             0x04: quiesceTime({{
                 R0 = PseudoInst::quiesceTime(xc->tcBase());
             }}, IsNonSpeculative, IsUnverifiable);
-#endif
             0x07: rpns({{
                 R0 = PseudoInst::rpns(xc->tcBase());
             }}, IsNonSpeculative, IsUnverifiable);
@@ -980,14 +978,12 @@ decode OPCODE default Unknown::unknown() {
             0x21: m5exit({{
                 PseudoInst::m5exit(xc->tcBase(), R16);
             }}, No_OpClass, IsNonSpeculative);
-#if FULL_SYSTEM
             0x31: loadsymbol({{
                 PseudoInst::loadsymbol(xc->tcBase());
             }}, No_OpClass, IsNonSpeculative);
             0x30: initparam({{
                 Ra = PseudoInst::initParam(xc->tcBase());
             }});
-#endif
             0x40: resetstats({{
                 PseudoInst::resetstats(xc->tcBase(), R16, R17);
             }}, IsNonSpeculative);
@@ -1000,22 +996,18 @@ decode OPCODE default Unknown::unknown() {
             0x43: m5checkpoint({{
                 PseudoInst::m5checkpoint(xc->tcBase(), R16, R17);
             }}, IsNonSpeculative);
-#if FULL_SYSTEM
             0x50: m5readfile({{
                 R0 = PseudoInst::readfile(xc->tcBase(), R16, R17, R18);
             }}, IsNonSpeculative);
-#endif
             0x51: m5break({{
                 PseudoInst::debugbreak(xc->tcBase());
             }}, IsNonSpeculative);
             0x52: m5switchcpu({{
                 PseudoInst::switchcpu(xc->tcBase());
             }}, IsNonSpeculative);
-#if FULL_SYSTEM
             0x53: m5addsymbol({{
                 PseudoInst::addsymbol(xc->tcBase(), R16, R17);
             }}, IsNonSpeculative);
-#endif
             0x54: m5panic({{
                 panic("M5 panic instruction called at pc = %#x.", PC);
             }}, IsNonSpeculative);
index 8b7ff69e735b836e731c6eca72c90db5cbcd78d0..8d9d16492878b1f25fc150c61416abfa7ea864d7 100644 (file)
@@ -196,9 +196,7 @@ def template QuiescePredOpExecute {{
             }
         } else {
             xc->setPredicate(false);
-#if FULL_SYSTEM
             PseudoInst::quiesceSkip(xc->tcBase());
-#endif
         }
 
         return fault;
@@ -224,9 +222,7 @@ def template QuiescePredOpExecuteWithFixup {{
         } else {
             xc->setPredicate(false);
             %(pred_fixup)s;
-#if FULL_SYSTEM
             PseudoInst::quiesceSkip(xc->tcBase());
-#endif
         }
 
         return fault;
index 82c712eb02dd9e0a361af07f9aacd8be7fdda60c..0e515ea2bad3492d915fbdf6f278ae5909854874 100644 (file)
@@ -975,7 +975,6 @@ decode OP default Unknown::unknown()
             }
             // M5 special opcodes use the reserved IMPDEP2A opcode space
             0x37: decode M5FUNC {
-#if FULL_SYSTEM
                 format BasicOperate {
                     // we have 7 bits of space here to play with...
                     0x21: m5exit({{
@@ -991,7 +990,6 @@ decode OP default Unknown::unknown()
                         panic("M5 panic instruction called at pc = %#x.", PC);
                     }}, No_OpClass, IsNonSpeculative);
                 }
-#endif
                 default: Trap::impdep2({{fault = new IllegalInstruction;}});
             }
             0x38: Branch::jmpl({{
index db36777527d8320e2317900f390c9aa5682bd430..0c49cee1695d7f226ad0613462b212f5e2987724 100644 (file)
@@ -63,10 +63,6 @@ using namespace SparcISA;
 output exec {{
 #include "base/fenv.hh"
 
-#if FULL_SYSTEM
-#include "sim/pseudo_inst.hh"
-#endif
-
 #include <cmath>
 #include <limits>
 
@@ -78,6 +74,7 @@ output exec {{
 #include "debug/Sparc.hh"
 #include "mem/packet.hh"
 #include "mem/packet_access.hh"
+#include "sim/pseudo_inst.hh"
 #include "sim/sim_exit.hh"
 
 using namespace SparcISA;
index f856f2d371d21939f946648e25f2c169b05dfc64..e4df4ac661dacd8e02c740aaac09e2a558963898 100644 (file)
                 //0x04: loadall_or_reset_or_hang();
                 0x4: decode IMMEDIATE {
                     format BasicOperate {
-#if FULL_SYSTEM
                         0x00: m5arm({{
                             PseudoInst::arm(xc->tcBase());
                         }}, IsNonSpeculative);
                         0x04: m5quiesceTime({{
                             Rax = PseudoInst::quiesceTime(xc->tcBase());
                         }}, IsNonSpeculative);
-#endif
                         0x07: m5rpns({{
                             Rax = PseudoInst::rpns(xc->tcBase());
                         }}, IsNonSpeculative);
                         0x21: m5exit({{
                             PseudoInst::m5exit(xc->tcBase(), Rdi);
                         }}, IsNonSpeculative);
-#if FULL_SYSTEM
                         0x30: m5initparam({{
                             Rax = PseudoInst::initParam(xc->tcBase());
                         }}, IsNonSpeculative);
                         0x31: m5loadsymbol({{
                             PseudoInst::loadsymbol(xc->tcBase());
                         }}, IsNonSpeculative);
-#endif
                         0x40: m5resetstats({{
                             PseudoInst::resetstats(xc->tcBase(), Rdi, Rsi);
                         }}, IsNonSpeculative);
                         0x43: m5checkpoint({{
                             PseudoInst::m5checkpoint(xc->tcBase(), Rdi, Rsi);
                         }}, IsNonSpeculative);
-#if FULL_SYSTEM
                         0x50: m5readfile({{
                             Rax = PseudoInst::readfile(
                                 xc->tcBase(), Rdi, Rsi, Rdx);
                         }}, IsNonSpeculative);
-#endif
                         0x51: m5debugbreak({{
                             PseudoInst::debugbreak(xc->tcBase());
                         }}, IsNonSpeculative);
                         0x52: m5switchcpu({{
                             PseudoInst::switchcpu(xc->tcBase());
                         }}, IsNonSpeculative);
-#if FULL_SYSTEM
                         0x53: m5addsymbol({{
                             PseudoInst::addsymbol(xc->tcBase(), Rdi, Rsi);
                         }}, IsNonSpeculative);
-#endif
                         0x54: m5panic({{
                             panic("M5 panic instruction called at pc = %#x.\n",
                                   RIP);
index dc8abbc6631ba2fd574b5a918e58a83bab1bb07e..237b29877dba72efa0a666564cbc13aa21652a58 100644 (file)
@@ -102,10 +102,6 @@ output exec {{
 #include <ieeefp.h>
 #endif
 
-#if FULL_SYSTEM
-#include "sim/pseudo_inst.hh"
-#endif
-
 #include <cmath>
 #include <limits>