Use WRITE_RD/WRITE_FRD macros to write registers
[riscv-isa-sim.git] / riscv / insns / amominu_w.h
index a3a537a94f98844993daad8fea39aebcdfe498b3..459b20161ccb5f47c915a7bad5f669b37751b7f7 100644 (file)
@@ -1,3 +1,3 @@
 uint32_t v = MMU.load_int32(RS1);
 MMU.store_uint32(RS1, std::min(uint32_t(RS2),v));
-RD = (int32_t)v;
+WRITE_RD((int32_t)v);