Support setting ISA/subsets with --isa flag
[riscv-isa-sim.git] / riscv / insns / amoand_w.h
index 91866dcfef7d3f46ba994c5265063c8bd279f369..7db2160a4538a11b425c33441ea1a43254ecdd81 100644 (file)
@@ -1,3 +1,4 @@
+require_extension('A');
 reg_t v = MMU.load_int32(RS1);
 MMU.store_uint32(RS1, RS2 & v);
-RD = v;
+WRITE_RD(v);