diff options
Diffstat (limited to 'riscv/insns/amoswap_d.h')
-rw-r--r-- | riscv/insns/amoswap_d.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/insns/amoswap_d.h b/riscv/insns/amoswap_d.h new file mode 100644 index 0000000..43e3538 --- /dev/null +++ b/riscv/insns/amoswap_d.h @@ -0,0 +1,4 @@ +require_xpr64; +reg_t v = mmu.load_uint64(RS1); +mmu.store_uint64(RS1, RS2); +RD = v; |