stop a compiler warning
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 29 Sep 2018 03:05:27 +0000 (04:05 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 29 Sep 2018 03:05:27 +0000 (04:05 +0100)
riscv/insns/csrrw.h

index 3d83b09ab4a49004601ded2b18c192beb01ce8e8..6bc1df8c4c7a763676fa4290b0a1b5346409e92c 100644 (file)
@@ -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);