projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51a8a43
)
Fix builds with "--enable-commitlog"
author
Palmer Dabbelt
<palmer@dabbelt.com>
Wed, 19 Apr 2017 22:48:42 +0000
(15:48 -0700)
committer
Palmer Dabbelt
<palmer@dabbelt.com>
Wed, 19 Apr 2017 22:48:42 +0000
(15:48 -0700)
riscv/decode.h
patch
|
blob
|
history
diff --git
a/riscv/decode.h
b/riscv/decode.h
index a76a6e4e108ea473698aac9cae6642807c6f85c3..9dcd809eb70261e448f0deac980f1f74472b81c6 100644
(file)
--- 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