Fix builds with "--enable-commitlog"
authorPalmer Dabbelt <palmer@dabbelt.com>
Wed, 19 Apr 2017 22:48:42 +0000 (15:48 -0700)
committerPalmer Dabbelt <palmer@dabbelt.com>
Wed, 19 Apr 2017 22:48:42 +0000 (15:48 -0700)
riscv/decode.h

index a76a6e4e108ea473698aac9cae6642807c6f85c3..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