summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojin Tang <[email protected]>2025-09-01 14:10:24 +0800
committerR b b666 <[email protected]>2025-09-01 18:43:04 +0800
commit157d8096344089d6fd8c6de039e8799fbfd12cb9 (patch)
tree8fd75b5babcc2b6ad65bd4c326910d8cd4def205
parentb27e405faa8616afda9ee8874416a36e9b6d3ba3 (diff)
fix(risc-v/virt64, cpp): add spaces to fix `Wliteral-suffix`
-rw-r--r--libcpu/risc-v/virt64/opcode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/risc-v/virt64/opcode.h b/libcpu/risc-v/virt64/opcode.h
index 14a6a73649..f8fbf2702b 100644
--- a/libcpu/risc-v/virt64/opcode.h
+++ b/libcpu/risc-v/virt64/opcode.h
@@ -29,7 +29,7 @@
* 31 25 20 15 12 7 0
*/
#define __OPC_INSN_FORMAT_R(opcode, func3, func7, rd, rs1, rs2) \
- ".insn r "RT_STRINGIFY(opcode)","RT_STRINGIFY(func3)","RT_STRINGIFY(func7)","RT_STRINGIFY(rd)","RT_STRINGIFY(rs1)","RT_STRINGIFY(rs2)
+ ".insn r " RT_STRINGIFY(opcode) "," RT_STRINGIFY(func3) "," RT_STRINGIFY(func7) "," RT_STRINGIFY(rd) "," RT_STRINGIFY(rs1) "," RT_STRINGIFY(rs2)
#ifdef _TOOLCHAIN_SUPP_ZIFENCEI_ISA_
#define OPC_FENCE_I "fence.i"
@@ -37,4 +37,4 @@
#define OPC_FENCE_I ".long 0x0000100F"
#endif /* _TOOLCHAIN_SUPP_ZIFENCEI_ISA_ */
-#endif /* __OPCODE_H__ */ \ No newline at end of file
+#endif /* __OPCODE_H__ */