From: Luke Kenneth Casson Leighton Date: Sat, 29 Sep 2018 03:05:27 +0000 (+0100) Subject: stop a compiler warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0ccb7f96f74013785c4a1c08b82b53f0434980e;p=riscv-isa-sim.git stop a compiler warning --- 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);