From ec86b3a76a65c3f90d1ac6b737bdc74b8ffc28e0 Mon Sep 17 00:00:00 2001 From: Donald Sebastian Leung Date: Tue, 11 Aug 2020 14:51:34 +0800 Subject: [PATCH] Add SH instruction --- insns/InsnSh.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 insns/InsnSh.py diff --git a/insns/InsnSh.py b/insns/InsnSh.py new file mode 100644 index 0000000..b02608d --- /dev/null +++ b/insns/InsnSh.py @@ -0,0 +1,9 @@ +from InsnRV32ISType import * + +""" +SH instruction +""" + +class InsnSh(InsnRV32ISType): + def __init__(self, RISCV_FORMAL_ILEN, RISCV_FORMAL_XLEN, RISCV_FORMAL_CSR_MISA, RISCV_FORMAL_COMPRESSED, RISCV_FORMAL_ALIGNED_MEM): + super().__init__(RISCV_FORMAL_ILEN, RISCV_FORMAL_XLEN, RISCV_FORMAL_CSR_MISA, RISCV_FORMAL_COMPRESSED, RISCV_FORMAL_ALIGNED_MEM, 0b001, 2)