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

Handle Illegal RVC Instructions and Mask Upper Bits in mtval for RVC Traps #120

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

Bill94l
Copy link

@Bill94l Bill94l commented Jul 26, 2024

Implemented handling of masking upper bits in mtval for RVC traps and added non-zero checks for RD/RS registers and immediate values in compressed instructions. Here is the list of instructions with the associated checks:

  • C.ADDI4SPN : imm != 0
  • C.ADDIW : rd != 0
  • C.LII : imm != 0
  • C.LWSP : rd != 0
  • C.LDSP : rd != 0
  • C.JR : rs != 0

@Dolu1990
Copy link
Member

Thanks ^^

I will port is to VexiiRiscv aswell :D

@Dolu1990 Dolu1990 merged commit 5211920 into SpinalHDL:main Jul 29, 2024
1 check passed
Dolu1990 added a commit to SpinalHDL/VexiiRiscv that referenced this pull request Aug 5, 2024
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.

2 participants