SPARC: Remove #if FULL_SYSTEMs from the ISA description.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 19 Sep 2011 13:17:19 +0000 (06:17 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 19 Sep 2011 13:17:19 +0000 (06:17 -0700)
src/arch/sparc/isa/base.isa
src/arch/sparc/isa/formats/unimp.isa

index b95ffd69ad89c929715085d20646a2c5bb5e8d04..9d10e7cc75850f1894ddebb25a590bb0f88771ce 100644 (file)
@@ -560,28 +560,23 @@ output decoder {{
 
 output exec {{
     /// Check "FP enabled" machine status bit.  Called when executing any FP
-    /// instruction in full-system mode.
+    /// instruction.
     /// @retval Full-system mode: NoFault if FP is enabled, FpDisabled
     /// if not.  Non-full-system mode: always returns NoFault.
-#if FULL_SYSTEM
-    inline Fault
+    static inline Fault
     checkFpEnableFault(%(CPU_exec_context)s *xc)
     {
-        Fault fault = NoFault;  // dummy... this ipr access should not fault
-        if (xc->readMiscReg(MISCREG_PSTATE) & PSTATE::pef &&
-            xc->readMiscReg(MISCREG_FPRS) & 0x4) {
-            return NoFault;
+        if (FULL_SYSTEM) {
+            if (xc->readMiscReg(MISCREG_PSTATE) & PSTATE::pef &&
+                xc->readMiscReg(MISCREG_FPRS) & 0x4) {
+                return NoFault;
+            } else {
+                return new FpDisabled;
+            }
         } else {
-            return new FpDisabled;
+            return NoFault;
         }
     }
-#else
-    inline Fault
-    checkFpEnableFault(%(CPU_exec_context)s *xc)
-    {
-        return NoFault;
-    }
-#endif
 }};
 
 
index a623507a16d52d7fe36672559b573061f9c871b5..927bf9e64366ffc08723f7f40139e356ac09f7dd 100644 (file)
@@ -103,11 +103,7 @@ output decoder {{
     WarnUnimplemented::generateDisassembly(Addr pc,
                                            const SymbolTable *symtab) const
     {
-#ifdef SS_COMPATIBLE_DISASSEMBLY
-        return csprintf("%-10s", mnemonic);
-#else
         return csprintf("%-10s (unimplemented)", mnemonic);
-#endif
     }
 }};