Decode AMOXOR_D (and similar instructions) only when XLEN=64bits (#1355)

This commit is contained in:
JeanRochCoulon 2023-09-01 11:57:08 +02:00 committed by GitHub
parent 434e55c457
commit c8202ae1ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;