From: Andrew Waterman Date: Fri, 5 Nov 2010 23:46:36 +0000 (-0700) Subject: [pk] various PK cleanups/speedups X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e59cf7ebfe869056b39fa82313bc8378b5c11e88;p=riscv-isa-sim.git [pk] various PK cleanups/speedups --- diff --git a/riscv/insns/mfcr.h b/riscv/insns/mfcr.h index 78b71d0..6209e6f 100644 --- a/riscv/insns/mfcr.h +++ b/riscv/insns/mfcr.h @@ -3,6 +3,7 @@ reg_t val; switch(insn.rtype.rs2) { case 0: + require_fp; val = fsr; break; diff --git a/riscv/insns/mtcr.h b/riscv/insns/mtcr.h index 859f3e4..22cd4d5 100644 --- a/riscv/insns/mtcr.h +++ b/riscv/insns/mtcr.h @@ -1,6 +1,7 @@ switch(insn.rtype.rs2) { case 0: + require_fp; set_fsr(RS1); break; }