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

When rd is x0, the c.ldsp instruction does not cause an illegal instruction exception #214

Open
fly-1011 opened this issue Nov 18, 2024 · 0 comments

Comments

@fly-1011
Copy link

Bug Description:

When executing the c.ldsp zero, 304 (sp) instruction, the behavior of the NutShell processor and spike is different.
According to the riscv specification, when the target register is zero, an illegal instruction exception should be caused, but NutShell does not.

Assembly Code

.section .text
.globl _start
_start:
    li sp,0x0
    .word 0x7052 #c.ldsp zero, 304 (sp)

Screenshots

image
image

Expected behavior

NutShell should cause the same illegal instruction exception as spile

Version Information

NutShell:commit 61923a1 (HEAD, origin/master, origin/HEAD)

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