aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/amoswap_h.h
blob: 0c1a8ff20c4c0855cda54683fd0134f0d932407d (plain)
1
2
require_extension(EXT_ZABHA);
WRITE_RD(sreg_t(MMU.amo<int16_t>(RS1, [&](int16_t UNUSED lhs) { return RS2; })));