Skip to content

Shouldn't clean vector pending before CPU really handle it #3

@rasoft

Description

@rasoft

I see you clean pending status of edge vector in
riscv_clic_next_interrupt(void *opaque, int hartid)

it is not correctly! since before the edge vector is really handled, latter IRQ may come and override it, and the edge vector (such as tspend, systick) will not be handled forever.

I think you could clean them when cpu really handle it, for example in
if (enable) branch of bool riscv_cpu_exec_interrupt(CPUState *cs, int interrupt_request)

thx
alan

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