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
/
amoand_w.h
diff --git
a/riscv/insns/amoand_w.h
b/riscv/insns/amoand_w.h
index 18a92494856d83f4f846b514d6338fb74b936db7..7db2160a4538a11b425c33441ea1a43254ecdd81 100644
(file)
--- a/
riscv/insns/amoand_w.h
+++ b/
riscv/insns/amoand_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);