From 91a5b718dae62895e13363138725e35a1f1177f6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 28 Jun 2019 10:58:41 +0100 Subject: [PATCH] remove set CSR_SV_STATE for now --- riscv/insns/mret.h | 2 +- riscv/insns/sret.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2