From e59cf7ebfe869056b39fa82313bc8378b5c11e88 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 5 Nov 2010 16:46:36 -0700 Subject: [PATCH] [pk] various PK cleanups/speedups --- riscv/insns/mfcr.h | 1 + riscv/insns/mtcr.h | 1 + 2 files changed, 2 insertions(+) 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; } -- 2.30.2