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
/
amoor_w.h
diff --git
a/riscv/insns/amoor_w.h
b/riscv/insns/amoor_w.h
index 741fbefd9629f94a95d8fb04b87b873acc142173..f5b96b96b2833981db0a0a8dfbe169f96f6a01ac 100644
(file)
--- a/
riscv/insns/amoor_w.h
+++ b/
riscv/insns/amoor_w.h
@@
-1,3
+1,4
@@
-reg_t v = mmu.load_int32(RS1);
-mmu.store_uint32(RS1, RS2 | v);
-RD = v;
+require_extension('A');
+reg_t v = MMU.load_int32(RS1);
+MMU.store_uint32(RS1, RS2 | v);
+WRITE_RD(v);