projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Support setting ISA/subsets with --isa flag
[riscv-isa-sim.git]
/
riscv
/
insns
/
amomaxu_w.h
diff --git
a/riscv/insns/amomaxu_w.h
b/riscv/insns/amomaxu_w.h
index 448814bb3b8f084bf12cbde8a1147ddfacda9a58..fc83dc32858ad0923cb6b4f036d386321270b098 100644
(file)
--- a/
riscv/insns/amomaxu_w.h
+++ b/
riscv/insns/amomaxu_w.h
@@
-1,3
+1,4
@@
+require_extension('A');
uint32_t v = MMU.load_int32(RS1);
MMU.store_uint32(RS1, std::max(uint32_t(RS2),v));
WRITE_RD((int32_t)v);