projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d15d7a7
)
relax rv32si timer test a bit
author
Yunsup Lee
<yunsup@cs.berkeley.edu>
Sat, 22 Nov 2014 18:29:30 +0000
(10:29 -0800)
committer
Yunsup Lee
<yunsup@cs.berkeley.edu>
Sat, 22 Nov 2014 18:29:30 +0000
(10:29 -0800)
isa/rv32si/timer.S
patch
|
blob
|
history
diff --git
a/isa/rv32si/timer.S
b/isa/rv32si/timer.S
index d46c2fd5914fba502ddd2fead2a45c6be9c30a86..40488753112878913b81f6ff7899d94a9833ebd0 100644
(file)
--- a/
isa/rv32si/timer.S
+++ b/
isa/rv32si/timer.S
@@
-23,7
+23,7
@@
RVTEST_CODE_BEGIN
csrsi status, 4 # enable interrupts
li TESTNUM, 2
- li a0,1000
+ li a0,1000
0
loop:
div x0, x0, x0
addi a0, a0, -1
@@
-33,6
+33,7
@@
loop:
TEST_PASSFAIL
evec:
+ li TESTNUM, 3
li t1, 0x80000000|IRQ_TIMER
csrr t0, cause
bne t0, t1, fail