Skip to content

Commit a974baa

Browse files
authored
ext: add field mask for svukte (#374)
1. new HSTATUS_HUKTE and SENVCFG_UKTE 2. reorder fields by ascending order reference: https://github.com/riscv/riscv-isa-manual/pull/1564/files https://lists.riscv.org/g/tech-privileged/message/2668 Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
1 parent 44e1a9b commit a974baa

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

encoding.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,17 @@
5656
#define SSTATUS_UXL 0x0000000300000000
5757
#define SSTATUS64_SD 0x8000000000000000
5858

59-
#define HSTATUS_VSXL 0x300000000
60-
#define HSTATUS_VTSR 0x00400000
61-
#define HSTATUS_VTW 0x00200000
62-
#define HSTATUS_VTVM 0x00100000
63-
#define HSTATUS_VGEIN 0x0003f000
64-
#define HSTATUS_HU 0x00000200
65-
#define HSTATUS_SPVP 0x00000100
66-
#define HSTATUS_SPV 0x00000080
67-
#define HSTATUS_GVA 0x00000040
6859
#define HSTATUS_VSBE 0x00000020
60+
#define HSTATUS_GVA 0x00000040
61+
#define HSTATUS_SPV 0x00000080
62+
#define HSTATUS_SPVP 0x00000100
63+
#define HSTATUS_HU 0x00000200
64+
#define HSTATUS_VGEIN 0x0003f000
65+
#define HSTATUS_VTVM 0x00100000
66+
#define HSTATUS_VTW 0x00200000
67+
#define HSTATUS_VTSR 0x00400000
68+
#define HSTATUS_HUKTE 0x01000000
69+
#define HSTATUS_VSXL 0x0000000300000000
6970
#define HSTATUS_HUPMM 0x0003000000000000
7071

7172
#define USTATUS_UIE 0x00000001
@@ -299,6 +300,7 @@
299300
#define SENVCFG_CBIE 0x00000030
300301
#define SENVCFG_CBCFE 0x00000040
301302
#define SENVCFG_CBZE 0x00000080
303+
#define SENVCFG_UKTE 0x00000100
302304
#define SENVCFG_PMM 0x0000000300000000
303305

304306
#define SSTATEEN0_CS 0x00000001

0 commit comments

Comments
 (0)