I am trying to enable interrupt vectoring in HiFive1 board. I do:
csrwi mtvec, 1
csrwi mtvec, some_address
csrwi mstatus, 8
csrwi mie, 8
li t0, 1
li t1, 0x02000000
sw t0, 0(t1)
And I thought that the software interrupt should be generated but it is not generated.
So I have no ability to check whether vectoring works.
What am I doing wrong? or how can I generate a software interrupt?