aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/amo_swap.h
blob: 0ee4ea21f36146920e1b4662ee013a06175cf5e8 (plain)
1
2
3
4
require64;
reg_t v = mmu.load_uint64(RS1);
mmu.store_uint64(RS1, RS2);
RDR = v;