mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 13:47:13 -04:00
Decode AMOXOR_D (and similar instructions) only when XLEN=64bits (#1355)
This commit is contained in:
parent
434e55c457
commit
c8202ae1ad
1 changed files with 1 additions and 1 deletions
|
@ -1092,7 +1092,7 @@ module decoder import ariane_pkg::*; #(
|
|||
default: illegal_instr = 1'b1;
|
||||
endcase
|
||||
// double words
|
||||
end else if (CVA6Cfg.RVA && instr.stype.funct3 == 3'h3) begin
|
||||
end else if (riscv::IS_XLEN64 && CVA6Cfg.RVA && instr.stype.funct3 == 3'h3) begin
|
||||
unique case (instr.instr[31:27])
|
||||
5'h0: instruction_o.op = ariane_pkg::AMO_ADDD;
|
||||
5'h1: instruction_o.op = ariane_pkg::AMO_SWAPD;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue