diff options
author | Ved Shanbhogue <ved@rivosinc.com> | 2023-10-30 17:21:54 -0500 |
---|---|---|
committer | Ved Shanbhogue <ved@rivosinc.com> | 2023-11-02 14:19:13 -0500 |
commit | 8dda7a208d290fd8e035aabd5ae6d42ff0e39a8f (patch) | |
tree | f093e1d1efc1fa684a73dd45e76f848085470fe9 /riscv/insns/amocas_h.h | |
parent | 08bad17b04320631f2e60af8ea07e04e2af613ac (diff) | |
download | spike-8dda7a208d290fd8e035aabd5ae6d42ff0e39a8f.zip spike-8dda7a208d290fd8e035aabd5ae6d42ff0e39a8f.tar.gz spike-8dda7a208d290fd8e035aabd5ae6d42ff0e39a8f.tar.bz2 |
add halfword width amo instructions
Diffstat (limited to 'riscv/insns/amocas_h.h')
-rw-r--r-- | riscv/insns/amocas_h.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/insns/amocas_h.h b/riscv/insns/amocas_h.h new file mode 100644 index 0000000..064d041 --- /dev/null +++ b/riscv/insns/amocas_h.h @@ -0,0 +1,3 @@ +require_extension(EXT_ZACAS); +require_extension(EXT_ZABHA); +WRITE_RD(sreg_t(MMU.amo_compare_and_swap<int16_t>(RS1, RD, RS2))); |