diff options
author | Ming-Yi Lai <ming-yi.lai@mediatek.com> | 2024-01-03 11:00:03 +0800 |
---|---|---|
committer | Ming-Yi Lai <ming-yi.lai@mediatek.com> | 2024-03-06 17:21:00 +0800 |
commit | 0172240f7e1404c4dd4e6d05731c2c91bfec016a (patch) | |
tree | 0db1529761c51d597988b0657d7e0419ae2caa40 /riscv | |
parent | 8e56ced020c6923206f441332170c7a98e5d7e05 (diff) | |
download | riscv-isa-sim-0172240f7e1404c4dd4e6d05731c2c91bfec016a.zip riscv-isa-sim-0172240f7e1404c4dd4e6d05731c2c91bfec016a.tar.gz riscv-isa-sim-0172240f7e1404c4dd4e6d05731c2c91bfec016a.tar.bz2 |
Zicfilp: Add Zicfilp codes to riscv/encoding.h
Regenerates riscv/encoding.h and declares the new lpad insn as an overlapping
insn
Diffstat (limited to 'riscv')
-rw-r--r-- | riscv/encoding.h | 8 | ||||
-rw-r--r-- | riscv/overlap_list.h | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/riscv/encoding.h b/riscv/encoding.h index 249b3fa..ff3f743 100644 --- a/riscv/encoding.h +++ b/riscv/encoding.h @@ -4,7 +4,7 @@ /* * This file is auto-generated by running 'make' in - * https://github.com/riscv/riscv-opcodes (a014979) + * https://github.com/riscv/riscv-opcodes (4ad822d) */ #ifndef RISCV_CSR_ENCODING_H @@ -346,6 +346,9 @@ #define SRMCFG_RCID 0x00000FFF #define SRMCFG_MCID 0x0FFF0000 +/* software check exception xtval codes */ +#define LANDING_PAD_FAULT 2 + #ifdef __riscv #if __riscv_xlen == 64 @@ -1464,6 +1467,8 @@ #define MASK_LH_AQ 0xfdf0707f #define MATCH_LHU 0x5003 #define MASK_LHU 0x707f +#define MATCH_LPAD 0x17 +#define MASK_LPAD 0xfff #define MATCH_LQ 0x300f #define MASK_LQ 0x707f #define MATCH_LR_D 0x1000302f @@ -4245,6 +4250,7 @@ DECLARE_INSN(ldu, MATCH_LDU, MASK_LDU) DECLARE_INSN(lh, MATCH_LH, MASK_LH) DECLARE_INSN(lh_aq, MATCH_LH_AQ, MASK_LH_AQ) DECLARE_INSN(lhu, MATCH_LHU, MASK_LHU) +DECLARE_INSN(lpad, MATCH_LPAD, MASK_LPAD) DECLARE_INSN(lq, MATCH_LQ, MASK_LQ) DECLARE_INSN(lr_d, MATCH_LR_D, MASK_LR_D) DECLARE_INSN(lr_w, MATCH_LR_W, MASK_LR_W) diff --git a/riscv/overlap_list.h b/riscv/overlap_list.h index 2214be4..3084c36 100644 --- a/riscv/overlap_list.h +++ b/riscv/overlap_list.h @@ -21,3 +21,4 @@ DECLARE_OVERLAP_INSN(rstsa16, EXT_ZPN) DECLARE_OVERLAP_INSN(rstsa32, EXT_ZPN) DECLARE_OVERLAP_INSN(srli32_u, EXT_ZPN) DECLARE_OVERLAP_INSN(umax32, EXT_ZPN) +DECLARE_OVERLAP_INSN(lpad, EXT_ZICFILP) |