aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/mulhsu.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-04-03 21:53:22 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-04-03 21:53:22 -0700
commitc4350ef6ef6259e48509e125fd2d051969dc6efa (patch)
tree7f6b0900717eea640d687fc677d2cd39c97a9dd2 /riscv/insns/mulhsu.h
parentd9d73d80c1b738b3b30eb40d192f61cbdb0e201f (diff)
downloadriscv-isa-sim-c4350ef6ef6259e48509e125fd2d051969dc6efa.zip
riscv-isa-sim-c4350ef6ef6259e48509e125fd2d051969dc6efa.tar.gz
riscv-isa-sim-c4350ef6ef6259e48509e125fd2d051969dc6efa.tar.bz2
Support setting ISA/subsets with --isa flag
Default is RV64IMAFDC. Can do things like --isa=RV32 (which implies IMAFDC) --isa=IM (which implies RV64) --isa=RV64IMAFDXhwacha
Diffstat (limited to 'riscv/insns/mulhsu.h')
-rw-r--r--riscv/insns/mulhsu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/insns/mulhsu.h b/riscv/insns/mulhsu.h
index 5eeb89c..c53f90b 100644
--- a/riscv/insns/mulhsu.h
+++ b/riscv/insns/mulhsu.h
@@ -1,3 +1,4 @@
+require_extension('M');
if (xlen == 64)
WRITE_RD(mulhsu(RS1, RS2));
else