Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spr_eear to save appropriate value for each exception #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix spr_eear to save appropriate value for each exception #108

wants to merge 1 commit into from

Conversation

JaewonHur
Copy link
Contributor

This will resolve #99

@stffrdhrn
Copy link
Member

Thanks @JaewonHur , I can't verify this did right now but I'm working on it.

Sorry for delaying. I hope we can get all these fixes in.

spr_eear <= pc_ctrl_i;
else
else if (except_dbus_i | except_dtlb_miss_i | except_dpagefault_i | except_align_i)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed?
either this list is covering all the cases that are not covered in the previous if and then it is superfluous,
or it does not contain all the cases that are not covered in the previous if and then it is wrong

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, with verilog we should always have an else case otherwise the logic is incomplete. Also, the reason I am looking at this is because I noticed during linux debugging with mor1kx the trap instructions are appearing to have incorrect EEAR set. The trap case doesn't seem to be handler here, maybe its somewhere else?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, my comment is wrong here l.trap doesn't set eear as per spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] spr_eear not saving instruction address when illegal instruction exception
3 participants