1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test timer interrupts.
10 #include "riscv_test.h"
11 #include "test_macros.h"
18 li s8, 0 # number of taken timer interrupts
19 li s9, 10 # how many interrupts to run for
27 csrs mstatus, MSTATUS_IE
29 # advance an LFSR until the timer has fired enough times
42 # make sure the LFSR was computed correctly
62 addi t0, t0, -2*IRQ_TIMER