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

sepc register implementation issue #209

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

sepc register implementation issue #209

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

Comments

@fly-1011
Copy link

Bug Description:

While running NutShell, I discovered an issue with the handling of the lower bits of the sepc register.

According to the RISC-V specification:

The low bit of sepc (sepc[0]) is always zero. On implementations that support only IALIGN=32, the two low bits (sepc[1:0]) are always zero.

However, while running NutShell, the sepc value was 0xD (binary: 1101), which does not comply with the RISC-V specification.

Screenshots

image
image

Environment:

Nutshell version = commit 5dafeda
difftest version = commit 4ee1078f03c25ffe317d654a16cc814c7573151d

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