From 0172240f7e1404c4dd4e6d05731c2c91bfec016a Mon Sep 17 00:00:00 2001 From: Ming-Yi Lai Date: Wed, 3 Jan 2024 11:00:03 +0800 Subject: Zicfilp: Add Zicfilp codes to riscv/encoding.h Regenerates riscv/encoding.h and declares the new lpad insn as an overlapping insn --- riscv/encoding.h | 8 +++++++- riscv/overlap_list.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) 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) -- cgit v1.1