From: Luke Kenneth Casson Leighton Date: Fri, 28 Jun 2019 09:58:41 +0000 (+0100) Subject: remove set CSR_SV_STATE for now X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=91a5b718dae62895e13363138725e35a1f1177f6;p=riscv-isa-sim.git remove set CSR_SV_STATE for now --- diff --git a/riscv/insns/mret.h b/riscv/insns/mret.h index 521ede1..0ddf556 100644 --- a/riscv/insns/mret.h +++ b/riscv/insns/mret.h @@ -8,5 +8,5 @@ s = set_field(s, MSTATUS_MPIE, 1); s = set_field(s, MSTATUS_MPP, PRV_U); p->set_privilege(prev_prv); p->set_csr(CSR_MSTATUS, s); -fprintf(stderr, "CSR SVSTATE: %x\n", svstate); +fprintf(stderr, "CSR SVSTATE: %lx\n", svstate); //p->set_csr(CSR_SV_STATE, svstate); diff --git a/riscv/insns/sret.h b/riscv/insns/sret.h index 0437bf9..d398f78 100644 --- a/riscv/insns/sret.h +++ b/riscv/insns/sret.h @@ -8,4 +8,4 @@ s = set_field(s, MSTATUS_SPIE, 1); s = set_field(s, MSTATUS_SPP, PRV_U); p->set_privilege(prev_prv); p->set_csr(CSR_MSTATUS, s); -p->set_csr(CSR_SV_STATE, svstate); +//p->set_csr(CSR_SV_STATE, svstate);