Fix debug reset.
[riscv-isa-sim.git] / riscv / decode.h
index 45d1c58fc82777a7ed298ca848c2a6dde7b5db66..9dcd809eb70261e448f0deac980f1f74472b81c6 100644 (file)
@@ -144,7 +144,7 @@ private:
   })
 # define WRITE_FREG(reg, value) ({ \
     freg_t wdata = freg(value); /* value may have side effects */ \
-    STATE.log_reg_write = (commit_log_reg_t){((reg) << 1) | 1, wdata}; \
+    STATE.log_reg_write = (commit_log_reg_t){((reg) << 1) | 1, wdata.v}; \
     DO_WRITE_FREG(reg, wdata); \
   })
 #endif
@@ -248,19 +248,6 @@ inline freg_t freg(freg_t f) { return f; }
 
 // Seems that 0x0 doesn't work.
 #define DEBUG_START             0x100
-
-#define DEBUG_DATA_START          0x380
-#define DEBUG_DATA_SIZE           0x20
-#define DEBUG_DATA_END            DEBUG_DATA_START + DEBUG_DATA_SIZE
-
-#define DEBUG_PROGBUF_SIZE        32
-#define DEBUG_PROGBUF_START       DEBUG_DATA_START - DEBUG_PROGBUF_SIZE
-#define DEBUG_PROGBUF_END         DEBUG_PROGBUF_START + DEBUG_PROGBUF_SIZE
-
-#define DEBUG_ABSTRACT_SIZE 2*4
-#define DEBUG_ABSTRACT_START (DEBUG_PROGBUF_START - DEBUG_ABSTRACT_SIZE)
-#define DEBUG_ABSTRACT_END   (DEBUG_ABSTRACT_START + DEBUG_ABSTRACT_SIZE)
-
 #define DEBUG_END                 (0x1000 - 1)
 
 #endif