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 32ea7f70fa9a643c598e663898b655c8269011cd..7db2160a4538a11b425c33441ea1a43254ecdd81 100644
(file)
--- a/
riscv/insns/amoand_w.h
+++ b/
riscv/insns/amoand_w.h
@@
-1,3
+1,4
@@
+require_extension('A');
reg_t v = MMU.load_int32(RS1);
MMU.store_uint32(RS1, RS2 & v);
WRITE_RD(v);
reg_t v = MMU.load_int32(RS1);
MMU.store_uint32(RS1, RS2 & v);
WRITE_RD(v);