diff options
Diffstat (limited to 'riscv/insns/amo_swap.h')
-rw-r--r-- | riscv/insns/amo_swap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/riscv/insns/amo_swap.h b/riscv/insns/amo_swap.h index 1995f83..0ee4ea2 100644 --- a/riscv/insns/amo_swap.h +++ b/riscv/insns/amo_swap.h @@ -1,4 +1,4 @@ require64; -reg_t v = mmu.load_uint64(RB); -mmu.store_uint64(RB, RA); -RC = v; +reg_t v = mmu.load_uint64(RS1); +mmu.store_uint64(RS1, RS2); +RDR = v; |