Don't store if there's a fault.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 29 Aug 2006 20:06:27 +0000 (16:06 -0400)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 29 Aug 2006 20:06:27 +0000 (16:06 -0400)
--HG--
extra : convert_revision : fc852bee572b36daab7a34ee1820f856ccd71ca5

src/arch/sparc/isa/formats/mem.isa

index 12dae57e556755de021a449e0943ce6e8d19da6c..9011c1fc6a0f80631df1bf4c57caca37b34723e9 100644 (file)
@@ -111,10 +111,10 @@ def template MemExecute {{
             DPRINTF(Sparc, "The address is 0x%x\n", EA);
             %(load)s;
             %(code)s;
-            %(store)s;
 
             if(fault == NoFault)
             {
+                %(store)s;
                 //Write the resulting state to the execution context
                 %(op_wb)s;
             }