aboutsummaryrefslogtreecommitdiff
path: root/hwacha
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2013-12-17 10:18:47 -0800
committerAndrew Waterman <waterman@eecs.berkeley.edu>2013-12-17 10:18:47 -0800
commit7f457c47b339cc7c79f56bb277ed8ed989e88ae1 (patch)
tree4a3cc949c4a5631699c69443b1a24049ca01fbb4 /hwacha
parente85cb99c5e042ebce78f64213677a48ee7ba0491 (diff)
downloadriscv-isa-sim-7f457c47b339cc7c79f56bb277ed8ed989e88ae1.zip
riscv-isa-sim-7f457c47b339cc7c79f56bb277ed8ed989e88ae1.tar.gz
riscv-isa-sim-7f457c47b339cc7c79f56bb277ed8ed989e88ae1.tar.bz2
Speed things up quite a bit
Diffstat (limited to 'hwacha')
-rw-r--r--hwacha/decode_hwacha.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwacha/decode_hwacha.h b/hwacha/decode_hwacha.h
index b7069fa..fa94b72 100644
--- a/hwacha/decode_hwacha.h
+++ b/hwacha/decode_hwacha.h
@@ -25,7 +25,7 @@
#define INSN_RS2 (insn.rs2())
#define INSN_RS3 (insn.rs3())
#define INSN_RD (insn.rd())
-#define INSN_SEG ((insn.i_imm() >> 9)+1)
+#define INSN_SEG (((reg_t)insn.i_imm() >> 9)+1)
static inline reg_t read_xpr(hwacha_t* h, insn_t insn, uint32_t idx, size_t src)
{