Skip to content

Commit 927a086

Browse files
committed
Importing new encoding.h with additional vector crypto instructions
1 parent 7d9f333 commit 927a086

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

riscv/encoding.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/*
66
* This file is auto-generated by running 'make' in
7-
* https://github.com/riscv/riscv-opcodes (c55d30f)
7+
* https://github.com/riscv/riscv-opcodes (f1d708d)
88
*/
99

1010
#ifndef RISCV_CSR_ENCODING_H
@@ -110,14 +110,17 @@
110110
#define DCSR_CAUSE_STEP 4
111111
#define DCSR_CAUSE_HALT 5
112112
#define DCSR_CAUSE_GROUP 6
113+
#define DCSR_CAUSE_EXTCAUSE 7
114+
115+
#define DCSR_EXTCAUSE_CRITERR 0
113116

114117
#define MCONTROL_TYPE(xlen) (0xfULL<<((xlen)-4))
115118
#define MCONTROL_DMODE(xlen) (1ULL<<((xlen)-5))
116119
#define MCONTROL_MASKMAX(xlen) (0x3fULL<<((xlen)-11))
117120

118121
#define MCONTROL_SELECT (1<<19)
119122
#define MCONTROL_TIMING (1<<18)
120-
#define MCONTROL_ACTION (0x3f<<12)
123+
#define MCONTROL_ACTION (0xf<<12)
121124
#define MCONTROL_CHAIN (1<<11)
122125
#define MCONTROL_MATCH (0xf<<7)
123126
#define MCONTROL_M (1<<6)
@@ -1840,8 +1843,12 @@
18401843
#define MASK_VFWSUB_WF 0xfc00707f
18411844
#define MATCH_VFWSUB_WV 0xd8001057
18421845
#define MASK_VFWSUB_WV 0xfc00707f
1846+
#define MATCH_VGHSH_VS 0x8e002077
1847+
#define MASK_VGHSH_VS 0xfe00707f
18431848
#define MATCH_VGHSH_VV 0xb2002077
18441849
#define MASK_VGHSH_VV 0xfe00707f
1850+
#define MATCH_VGMUL_VS 0xa608a077
1851+
#define MASK_VGMUL_VS 0xfe0ff07f
18451852
#define MATCH_VGMUL_VV 0xa208a077
18461853
#define MASK_VGMUL_VV 0xfe0ff07f
18471854
#define MATCH_VID_V 0x5008a057
@@ -3672,7 +3679,9 @@ DECLARE_INSN(vfwsub_vf, MATCH_VFWSUB_VF, MASK_VFWSUB_VF)
36723679
DECLARE_INSN(vfwsub_vv, MATCH_VFWSUB_VV, MASK_VFWSUB_VV)
36733680
DECLARE_INSN(vfwsub_wf, MATCH_VFWSUB_WF, MASK_VFWSUB_WF)
36743681
DECLARE_INSN(vfwsub_wv, MATCH_VFWSUB_WV, MASK_VFWSUB_WV)
3682+
DECLARE_INSN(vghsh_vs, MATCH_VGHSH_VS, MASK_VGHSH_VS)
36753683
DECLARE_INSN(vghsh_vv, MATCH_VGHSH_VV, MASK_VGHSH_VV)
3684+
DECLARE_INSN(vgmul_vs, MATCH_VGMUL_VS, MASK_VGMUL_VS)
36763685
DECLARE_INSN(vgmul_vv, MATCH_VGMUL_VV, MASK_VGMUL_VV)
36773686
DECLARE_INSN(vid_v, MATCH_VID_V, MASK_VID_V)
36783687
DECLARE_INSN(viota_m, MATCH_VIOTA_M, MASK_VIOTA_M)

0 commit comments

Comments
 (0)