aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/amomin_w.h
blob: 529ad50c1d286d3738f6348b46b78be8b4ec8c83 (plain)
1
2
3
int32_t v = mmu.load_int32(RS1);
mmu.store_uint32(RS1, std::min(int32_t(RS2),v));
RD = v;