From f51aa42dac51c071c516a96648344a50339fa70d Mon Sep 17 00:00:00 2001 From: mylai-mtk Date: Sat, 3 Feb 2024 22:16:31 +0800 Subject: Add Zicfilp codes (#225) --- constants.py | 1 + encoding.h | 3 +++ unratified/rv_zicfilp | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 unratified/rv_zicfilp diff --git a/constants.py b/constants.py index 8e88658..3451ade 100644 --- a/constants.py +++ b/constants.py @@ -220,6 +220,7 @@ emitted_pseudo_ops = [ 'mop_rr_7', 'sspush_x1', 'sspush_x5', + 'lpad', 'bclri.rv32', 'bexti.rv32', 'binvi.rv32', diff --git a/encoding.h b/encoding.h index b1859a6..c958745 100644 --- a/encoding.h +++ b/encoding.h @@ -337,6 +337,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 diff --git a/unratified/rv_zicfilp b/unratified/rv_zicfilp new file mode 100644 index 0000000..1ef4844 --- /dev/null +++ b/unratified/rv_zicfilp @@ -0,0 +1,2 @@ +# auipc x0 imm20 -> lpad imm20 +$pseudo_op rv_i::auipc lpad imm20 11..7=0 6..2=0x05 1..0=3 -- cgit v1.1