1f68a8bf78c7615b61c300027ff98d99a2fe96ef
[riscv-isa-sim.git] / riscv / insns / amomax_w.h
1 int32_t v = MMU.load_int32(RS1);
2 MMU.store_uint32(RS1, std::max(int32_t(RS2),v));
3 RD = v;