From: Palmer Dabbelt Date: Wed, 19 Apr 2017 22:48:42 +0000 (-0700) Subject: Fix builds with "--enable-commitlog" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61bb377be35a37bf8d4cafad57d4c078aff8a9e3;p=riscv-isa-sim.git Fix builds with "--enable-commitlog" --- diff --git a/riscv/decode.h b/riscv/decode.h index a76a6e4..9dcd809 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -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