Skip to content

Commit ec9a7c7

Browse files
Fix: If `define ENABLE_FP is set in Config.sv, a compilation error will occur: "Can't find definition of variable: INT_FSGNJ_S". It seems that the naming has been modified to have the BM_ prefix, and this can be found in Include.sv.
1 parent dd82205 commit ec9a7c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/InstrDecoder.sv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -972,11 +972,11 @@ always_comb begin
972972
uop.fu = FU_INT;
973973

974974
if (i32.fp.rm == 3'b000)
975-
uop.opcode = INT_FSGNJ_S;
975+
uop.opcode = /* INT_FSGNJ_S */ BM_FSGNJ_S;
976976
else if (i32.fp.rm == 3'b001)
977-
uop.opcode = INT_FSGNJN_S;
977+
uop.opcode = /* INT_FSGNJN_S */ BM_FSGNJN_S;
978978
else if (i32.fp.rm == 3'b010)
979-
uop.opcode = INT_FSGNJX_S;
979+
uop.opcode = /* INT_FSGNJX_S */ BM_FSGNJX_S;
980980
else invalidEnc = 1;
981981
end
982982
5'b00101: begin

0 commit comments

Comments
 (0)