Skip to content

Commit 157d809

Browse files
Tang-HaojinRbb666
authored andcommitted
fix(risc-v/virt64, cpp): add spaces to fix Wliteral-suffix
1 parent b27e405 commit 157d809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcpu/risc-v/virt64/opcode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
* 31 25 20 15 12 7 0
3030
*/
3131
#define __OPC_INSN_FORMAT_R(opcode, func3, func7, rd, rs1, rs2) \
32-
".insn r "RT_STRINGIFY(opcode)","RT_STRINGIFY(func3)","RT_STRINGIFY(func7)","RT_STRINGIFY(rd)","RT_STRINGIFY(rs1)","RT_STRINGIFY(rs2)
32+
".insn r " RT_STRINGIFY(opcode) "," RT_STRINGIFY(func3) "," RT_STRINGIFY(func7) "," RT_STRINGIFY(rd) "," RT_STRINGIFY(rs1) "," RT_STRINGIFY(rs2)
3333

3434
#ifdef _TOOLCHAIN_SUPP_ZIFENCEI_ISA_
3535
#define OPC_FENCE_I "fence.i"
3636
#else /* !_TOOLCHAIN_SUPP_ZIFENCEI_ISA_ */
3737
#define OPC_FENCE_I ".long 0x0000100F"
3838
#endif /* _TOOLCHAIN_SUPP_ZIFENCEI_ISA_ */
3939

40-
#endif /* __OPCODE_H__ */
40+
#endif /* __OPCODE_H__ */

0 commit comments

Comments
 (0)