Skip to content

Commit 36c24d2

Browse files
authored
Merge pull request syntacore#3 from syntacore/en-sc/revert-encoding
Revert "[quick fix] remove deprecated registers"
2 parents 4f87f15 + 72b7cd9 commit 36c24d2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/target/riscv/encoding.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,6 +2831,8 @@
28312831
#define CSR_VTYPE 0xc21
28322832
#define CSR_VLENB 0xc22
28332833
#define CSR_SSTATUS 0x100
2834+
#define CSR_SEDELEG 0x102
2835+
#define CSR_SIDELEG 0x103
28342836
#define CSR_SIE 0x104
28352837
#define CSR_STVEC 0x105
28362838
#define CSR_SCOUNTEREN 0x106
@@ -2892,6 +2894,8 @@
28922894
#define CSR_UTVT 0x7
28932895
#define CSR_UNXTI 0x45
28942896
#define CSR_UINTSTATUS 0x46
2897+
#define CSR_USCRATCHCSW 0x48
2898+
#define CSR_USCRATCHCSWL 0x49
28952899
#define CSR_STVT 0x107
28962900
#define CSR_SNXTI 0x145
28972901
#define CSR_SINTSTATUS 0x146
@@ -4584,6 +4588,8 @@ DECLARE_CSR(vl, CSR_VL)
45844588
DECLARE_CSR(vtype, CSR_VTYPE)
45854589
DECLARE_CSR(vlenb, CSR_VLENB)
45864590
DECLARE_CSR(sstatus, CSR_SSTATUS)
4591+
DECLARE_CSR(sedeleg, CSR_SEDELEG)
4592+
DECLARE_CSR(sideleg, CSR_SIDELEG)
45874593
DECLARE_CSR(sie, CSR_SIE)
45884594
DECLARE_CSR(stvec, CSR_STVEC)
45894595
DECLARE_CSR(scounteren, CSR_SCOUNTEREN)
@@ -4645,6 +4651,8 @@ DECLARE_CSR(stopi, CSR_STOPI)
46454651
DECLARE_CSR(utvt, CSR_UTVT)
46464652
DECLARE_CSR(unxti, CSR_UNXTI)
46474653
DECLARE_CSR(uintstatus, CSR_UINTSTATUS)
4654+
DECLARE_CSR(uscratchcsw, CSR_USCRATCHCSW)
4655+
DECLARE_CSR(uscratchcswl, CSR_USCRATCHCSWL)
46484656
DECLARE_CSR(stvt, CSR_STVT)
46494657
DECLARE_CSR(snxti, CSR_SNXTI)
46504658
DECLARE_CSR(sintstatus, CSR_SINTSTATUS)

tools/syntacore/ide_cloak.tcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ proc generateIdeCloak { } {
105105
vtype \
106106
vxrm \
107107
vxsat \
108+
sedeleg \
109+
sideleg \
110+
uscratchcsw \
111+
uscratchcswl \
108112
]
109113

110114
set CSRS_TO_HIDE [generateListOfCloakedAddresses $IDE_CSRS]

0 commit comments

Comments
 (0)