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

Machine Interrupt Enable (mie) Register Handling Issue: Bits That Must Remain Zero Are Incorrectly Set #210

Open
fly-1011 opened this issue Sep 19, 2024 · 0 comments

Comments

@fly-1011
Copy link

Bug Description:

In the current implementation of the Nutshell processor, the Machine Interrupt Enable (mie) register appears to be handling certain bits incorrectly. According to the RISC-V specification, certain bits (such as bit 0 and bit 2) in the mie register must remain 0. However, during execution, these bits are being incorrectly set to 1.
image

Screenshots

image
image

Expected Behavior (Spike Simulation):

Machine Interrupt Enable (mie) register value: 0xA (binary 0000 1010)

Actual Behavior (Nutshell Processor):

Machine Interrupt Enable (mie) register value: 0x1F (binary 0001 1111)

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

No branches or pull requests

1 participant