Skip to content

Interrupt handle problem when debug #146

@HaroldZ32

Description

@HaroldZ32

Hi,

There's a problem when I try to debug with nax.

If an interrupt occurs while cpu is halted, it should be holded.

Image

And if there's an EXECUTE request from Debug Module, the pipeline will run for one step, but it will trigger the isFireing signal of decoded stage of Frontend pipeline. And the interrupt will be handled by mistake.

Image Image

In risc-v debug spec, all the interrupt should be masked.

1.0 Version
Image

0.13 Version
Image

The result is the MIE register will be pulled down, if there's no program to write it for this problem. And the interrupt will not be handled forever.

I think it's a bug that should be fixed. I'll make a PR if you think it's definitely a problem.
Thank for you help!

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