Skip to content

Commit de49d0f

Browse files
committed
test: adapt CLIC vectored interrupt tests
1 parent 34584e8 commit de49d0f

2 files changed

Lines changed: 89 additions & 93 deletions

File tree

test/sw/tests/clic_multiple.S

Lines changed: 45 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -157,52 +157,6 @@ thirtyone:
157157
li a0, 0
158158
j pass_restore
159159

160-
.align 8
161-
.global mtvt_handler
162-
mtvt_handler:
163-
j fail_restore
164-
j fail_restore
165-
j fail_restore
166-
j fail_restore
167-
j fail_restore
168-
j fail_restore
169-
j fail_restore
170-
j fail_restore
171-
j fail_restore
172-
j fail_restore
173-
j fail_restore
174-
j fail_restore
175-
j fail_restore
176-
j fail_restore
177-
j fail_restore
178-
j fail_restore
179-
j fail_restore
180-
j fail_restore
181-
j fail_restore
182-
j fail_restore
183-
j fail_restore
184-
j fail_restore
185-
j fail_restore
186-
j fail_restore
187-
j fail_restore
188-
j fail_restore
189-
j fail_restore
190-
j fail_restore
191-
j fail_restore
192-
j fail_restore
193-
j thirty
194-
j thirtyone
195-
j fail_restore
196-
j fail_restore
197-
j fail_restore
198-
j fail_restore
199-
j fail_restore
200-
j fail_restore
201-
j fail_restore
202-
j fail_restore
203-
j fail_restore
204-
205-
206160
.align 8
207161
.global mtvec_handler_fail
208162
mtvec_handler_fail:
@@ -211,4 +165,48 @@ mtvec_handler_fail:
211165
li a0, 1
212166
ret
213167

214-
.data
168+
.data
169+
.align 9
170+
.global mtvt_handler
171+
mtvt_handler:
172+
.dword fail_restore
173+
.dword fail_restore
174+
.dword fail_restore
175+
.dword fail_restore
176+
.dword fail_restore
177+
.dword fail_restore
178+
.dword fail_restore
179+
.dword fail_restore
180+
.dword fail_restore
181+
.dword fail_restore
182+
.dword fail_restore
183+
.dword fail_restore
184+
.dword fail_restore
185+
.dword fail_restore
186+
.dword fail_restore
187+
.dword fail_restore
188+
.dword fail_restore
189+
.dword fail_restore
190+
.dword fail_restore
191+
.dword fail_restore
192+
.dword fail_restore
193+
.dword fail_restore
194+
.dword fail_restore
195+
.dword fail_restore
196+
.dword fail_restore
197+
.dword fail_restore
198+
.dword fail_restore
199+
.dword fail_restore
200+
.dword fail_restore
201+
.dword fail_restore
202+
.dword fail_restore
203+
.dword thirtyone
204+
.dword fail_restore
205+
.dword fail_restore
206+
.dword fail_restore
207+
.dword fail_restore
208+
.dword fail_restore
209+
.dword fail_restore
210+
.dword fail_restore
211+
.dword fail_restore
212+
.dword fail_restore

test/sw/tests/clic_simple.S

Lines changed: 44 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -115,52 +115,6 @@ thirtyone:
115115
beqz a0, pass_restore
116116
j fail_restore
117117

118-
.align 8
119-
.global mtvt_handler
120-
mtvt_handler:
121-
j fail_restore
122-
j fail_restore
123-
j fail_restore
124-
j fail_restore
125-
j fail_restore
126-
j fail_restore
127-
j fail_restore
128-
j fail_restore
129-
j fail_restore
130-
j fail_restore
131-
j fail_restore
132-
j fail_restore
133-
j fail_restore
134-
j fail_restore
135-
j fail_restore
136-
j fail_restore
137-
j fail_restore
138-
j fail_restore
139-
j fail_restore
140-
j fail_restore
141-
j fail_restore
142-
j fail_restore
143-
j fail_restore
144-
j fail_restore
145-
j fail_restore
146-
j fail_restore
147-
j fail_restore
148-
j fail_restore
149-
j fail_restore
150-
j fail_restore
151-
j fail_restore
152-
j thirtyone
153-
j fail_restore
154-
j fail_restore
155-
j fail_restore
156-
j fail_restore
157-
j fail_restore
158-
j fail_restore
159-
j fail_restore
160-
j fail_restore
161-
j fail_restore
162-
163-
164118
.align 8
165119
.global mtvec_handler_fail
166120
mtvec_handler_fail:
@@ -170,3 +124,47 @@ mtvec_handler_fail:
170124
ret
171125

172126
.data
127+
.align 9
128+
.global mtvt_handler
129+
mtvt_handler:
130+
.dword fail_restore
131+
.dword fail_restore
132+
.dword fail_restore
133+
.dword fail_restore
134+
.dword fail_restore
135+
.dword fail_restore
136+
.dword fail_restore
137+
.dword fail_restore
138+
.dword fail_restore
139+
.dword fail_restore
140+
.dword fail_restore
141+
.dword fail_restore
142+
.dword fail_restore
143+
.dword fail_restore
144+
.dword fail_restore
145+
.dword fail_restore
146+
.dword fail_restore
147+
.dword fail_restore
148+
.dword fail_restore
149+
.dword fail_restore
150+
.dword fail_restore
151+
.dword fail_restore
152+
.dword fail_restore
153+
.dword fail_restore
154+
.dword fail_restore
155+
.dword fail_restore
156+
.dword fail_restore
157+
.dword fail_restore
158+
.dword fail_restore
159+
.dword fail_restore
160+
.dword fail_restore
161+
.dword thirtyone
162+
.dword fail_restore
163+
.dword fail_restore
164+
.dword fail_restore
165+
.dword fail_restore
166+
.dword fail_restore
167+
.dword fail_restore
168+
.dword fail_restore
169+
.dword fail_restore
170+
.dword fail_restore

0 commit comments

Comments
 (0)