From 4d09ab6d752de9ef5db20437cd5eebd6023158a5 Mon Sep 17 00:00:00 2001 From: fourcolor Date: Tue, 2 Jan 2024 02:35:34 +0800 Subject: [PATCH] Fix compile error when ENABLE_EXT_F=0 --- src/decode.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/decode.h b/src/decode.h index e1a4bc2f..26c9fc58 100644 --- a/src/decode.h +++ b/src/decode.h @@ -177,10 +177,12 @@ enum op_field { _(cadd, 0, 2, 1, ENC(rs1, rs2, rd)) \ _(cswsp, 0, 2, 1, ENC(rs2)) \ /* RV32FC Instruction */ \ + IIF(RV32_HAS(EXT_F))( \ _(cflwsp, 0, 2, 1, ENC(rd)) \ _(cfswsp, 0, 2, 1, ENC(rs2)) \ _(cflw, 0, 2, 1, ENC(rs1, rd)) \ _(cfsw, 0, 2, 1, ENC(rs1, rs2)) \ + ) \ ) /* clang-format on */