Skip to content

when exit irq, qemu pop wrong addr to PC #19

@wentongwu

Description

@wentongwu

I'm using arc QEMU to run Zephyr, and sometimes QEMU will not execute Zephyr code, so I enable the irq log of QEMU, finding QEMU pops wrong addr(x0000a000) to PC, so the TCG can't run any more.

[[IRQ] level = 0, clear = 1, irq = 24, priority = 1, pending = 00000000, pc = 8040a9f0 [IRQ] level = 0, clear = 1, irq = 24, priority = 1, pending = 00000000, pc = 8040a9f0 [IRQ] level = 0, clear = 1, irq = 24, priority = 1, pending = 00000000, pc = 8040a9f0 [IRQ] level = 0, clear = 1, irq = 24, priority = 1, pending = 00000000, pc = 8040a9f0 [IRQ] level = 0, clear = 1, irq = 24, priority = 1, pending = 00000000, pc = 8040a9f0 [IRQ] level = 0, clear = 1, irq = 24, priority = 1, pending = 00000000, pc = 8040a9f0 [IRQ] set aux_reg: aux_irq_act, with 0x00004000 [IRQ] exit irq:0 IRQ_ACT:0x00004000 PRIO:14 [IRQ] exit irq:0 U:0 AE:0 IE:0 E:14 IRQ_ACT:0x00000000 [IRQ] Pop [SP:0x80480a18] => 0x804328c8 (r0) [IRQ] Pop [SP:0x80480a1c] => 0x0000001e (r1) [IRQ] Pop [SP:0x80480a20] => 0x0000003e (r2) [IRQ] Pop [SP:0x80480a24] => 0x00000000 (r3) [IRQ] Pop [SP:0x80480a28] => 0xffffffff (r4) [IRQ] Pop [SP:0x80480a2c] => 0x00000000 (r5) [IRQ] Pop [SP:0x80480a30] => 0x00000000 (r6) [IRQ] Pop [SP:0x80480a34] => 0x804017f8 (r7) [IRQ] Pop [SP:0x80480a38] => 0x00000000 (r8) [IRQ] Pop [SP:0x80480a3c] => 0x00000000 (r9) [IRQ] Pop [SP:0x80480a40] => 0x00000000 (r10) [IRQ] Pop [SP:0x80480a44] => 0x00000008 (r11) [IRQ] Pop [SP:0x80480a48] => 0x80408d9a (r12) [IRQ] Pop [SP:0x80480a4c] => 0x8043282c (r13) [IRQ] Pop [SP:0x80480a50] => 0x0000f000 (blink) [IRQ] Pop [SP:0x80480a54] => 0xfffec001 (LP_END) [IRQ] Pop [SP:0x80480a58] => 0x00000001 (LP_START) [IRQ] Pop [SP:0x80480a5c] => 0x00000004 (lp) [IRQ] Pop [SP:0x80480a60] => 0x0000a000 (PC) [IRQ] Pop [SP:0x80480a64] => 0x00000316 (STATUS32) [IRQ] RTIE @0x0000a000 STATUS32:0x00000316 [IRQ] level = 1, clear = 0, irq = 21, priority = 0, pending = 00000001, pc = 0000a000 [TMR0] Rising IRQ [IRQ] level = 1, clear = 0, irq = 16, priority = 0, pending = 00000001, pc = 0000a000 [IRQ] level = 1, clear = 0, irq = 20, priority = 0, pending = 00000001, pc = 0000a000 [IRQ] level = 0, clear = 1, irq = 24, priority = 1, pending = 00000001, pc = 0000a000 [IRQ] level = 1, clear = 0, irq = 24, priority = 1, pending = 00000003, pc = 0000a000 [IRQ] level = 1, clear = 0, irq = 24, priority = 1, pending = 00000003, pc = 0000a000 [IRQ] level = 1, clear = 0, irq = 24, priority = 1, pending = 00000003, pc = 0000a000 [IRQ] level = 1, clear = 0, irq = 24, priority = 1, pending = 00000003, pc = 0000a000 [IRQ] level = 1, clear = 0, irq = 24, priority = 1, pending = 00000003, pc = 0000a000 [IRQ] level = 1, clear = 0, irq = 24, priority = 1, pending = 00000003, pc = 0000a000 [IRQ] level = 1, clear = 0, irq = 24, priority = 1, pending = 00000003, pc = 0000a000 

I don't know why there is exit irq 0, and I attach the whole log here, hope we can have some discussion about this. Thanks

log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions