mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-25 06:27:22 -04:00
Merge branch 'jalr-invalid-instruction' into 'master'
Trigger an invalid instruction if jalr op code bits 14:12 are not zero According to the RISC-V ISA specification 2.1 the bits 15:12 of the `jalr` instruction should be zero. The decoder stage of checks that and aborts the jump if so. However, this is an invalid instruction, which should be signaled. /cc @pasquale.schiavone See merge request !1
This commit is contained in:
commit
11aa315721
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ module riscv_decoder
|
||||||
if (instr_rdata_i[14:12] != 3'b0) begin
|
if (instr_rdata_i[14:12] != 3'b0) begin
|
||||||
jump_in_id = BRANCH_NONE;
|
jump_in_id = BRANCH_NONE;
|
||||||
regfile_alu_we = 1'b0;
|
regfile_alu_we = 1'b0;
|
||||||
illegal_insn_o = 1'b0;
|
illegal_insn_o = 1'b1;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue