diff options
author | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2010-11-05 16:46:36 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2010-11-21 16:54:33 -0800 |
commit | e59cf7ebfe869056b39fa82313bc8378b5c11e88 (patch) | |
tree | 2c63591a0e760a99f55edeaa9df42f895b1e405f /riscv | |
parent | 7471eee0ba7d80c83048cbbf47d7837f586b9264 (diff) | |
download | spike-e59cf7ebfe869056b39fa82313bc8378b5c11e88.zip spike-e59cf7ebfe869056b39fa82313bc8378b5c11e88.tar.gz spike-e59cf7ebfe869056b39fa82313bc8378b5c11e88.tar.bz2 |
[pk] various PK cleanups/speedups
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/insns/mfcr.h | 1 | ||||
-rw-r--r-- | riscv/insns/mtcr.h | 1 |
2 files changed, 2 insertions, 0 deletions
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; } |