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>
This commit is contained in:
Chih-Min Chao
2025-10-01 12:32:57 +08:00
committed by GitHub
parent 44e1a9b7d0
commit a974baa723

View File

@@ -56,16 +56,17 @@
#define SSTATUS_UXL 0x0000000300000000
#define SSTATUS64_SD 0x8000000000000000
#define HSTATUS_VSXL 0x300000000
#define HSTATUS_VTSR 0x00400000
#define HSTATUS_VTW 0x00200000
#define HSTATUS_VTVM 0x00100000
#define HSTATUS_VGEIN 0x0003f000
#define HSTATUS_HU 0x00000200
#define HSTATUS_SPVP 0x00000100
#define HSTATUS_SPV 0x00000080
#define HSTATUS_GVA 0x00000040
#define HSTATUS_VSBE 0x00000020
#define HSTATUS_GVA 0x00000040
#define HSTATUS_SPV 0x00000080
#define HSTATUS_SPVP 0x00000100
#define HSTATUS_HU 0x00000200
#define HSTATUS_VGEIN 0x0003f000
#define HSTATUS_VTVM 0x00100000
#define HSTATUS_VTW 0x00200000
#define HSTATUS_VTSR 0x00400000
#define HSTATUS_HUKTE 0x01000000
#define HSTATUS_VSXL 0x0000000300000000
#define HSTATUS_HUPMM 0x0003000000000000
#define USTATUS_UIE 0x00000001
@@ -299,6 +300,7 @@
#define SENVCFG_CBIE 0x00000030
#define SENVCFG_CBCFE 0x00000040
#define SENVCFG_CBZE 0x00000080
#define SENVCFG_UKTE 0x00000100
#define SENVCFG_PMM 0x0000000300000000
#define SSTATEEN0_CS 0x00000001