From d0ccb7f96f74013785c4a1c08b82b53f0434980e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 29 Sep 2018 04:05:27 +0100 Subject: [PATCH] stop a compiler warning --- riscv/insns/csrrw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/insns/csrrw.h b/riscv/insns/csrrw.h index 3d83b09..6bc1df8 100644 --- 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); -- 2.30.2