Fixed bug in test firmware IRQ handling

This commit is contained in:
Clifford Wolf 2016-08-29 23:37:17 +02:00
parent 90070736d6
commit 517f5ab28b
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ uint32_t *irq(uint32_t *regs, uint32_t irqs)
static unsigned int timer_irq_count = 0;
// checking compressed isa q0 reg handling
{
if ((irqs & 6) != 0) {
uint32_t pc = (regs[0] & 1) ? regs[0] - 3 : regs[0] - 4;
uint32_t instr = *(uint16_t*)pc;