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:
d43c3bb
)
stop a compiler warning
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 29 Sep 2018 03:05:27 +0000
(
04:05
+0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 29 Sep 2018 03:05:27 +0000
(
04:05
+0100)
riscv/insns/csrrw.h
patch
|
blob
|
history
diff --git
a/riscv/insns/csrrw.h
b/riscv/insns/csrrw.h
index 3d83b09ab4a49004601ded2b18c192beb01ce8e8..6bc1df8c4c7a763676fa4290b0a1b5346409e92c 100644
(file)
--- a/
riscv/insns/csrrw.h
+++ b/
riscv/insns/csrrw.h
@@
-1,6
+1,6
@@
int csr = validate_csr(insn.csr(), true);
#ifdef SPIKE_SIMPLEV
-reg_t old
;
+reg_t old
= 0; // stop compiler bitchin
if (csr != CSR_SVVL)
{
old = p->get_csr(csr);