mirror of https://github.com/YosysHQ/picorv32.git
Fixed bug in test firmware IRQ handling
This commit is contained in:
parent
90070736d6
commit
517f5ab28b
|
@ -14,7 +14,7 @@ uint32_t *irq(uint32_t *regs, uint32_t irqs)
|
||||||
static unsigned int timer_irq_count = 0;
|
static unsigned int timer_irq_count = 0;
|
||||||
|
|
||||||
// checking compressed isa q0 reg handling
|
// checking compressed isa q0 reg handling
|
||||||
{
|
if ((irqs & 6) != 0) {
|
||||||
uint32_t pc = (regs[0] & 1) ? regs[0] - 3 : regs[0] - 4;
|
uint32_t pc = (regs[0] & 1) ? regs[0] - 3 : regs[0] - 4;
|
||||||
uint32_t instr = *(uint16_t*)pc;
|
uint32_t instr = *(uint16_t*)pc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue