Skip to contentSkip to conversation

bios_emulator: define the comment symbol for RISC-V assembler too

PATCH In review Yuri Zaporozhets 2 participants 2 messages Oct 30, 2024 – Nov 5, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bios_emulator: define the comment symbol for RISC-V assembler too

The bios_emulator driver cannot be compiled for RISC-V because the x86emu.h header file doesn't define the comment symbol ("#") for the assembler. With this patch, use the same symbol as for e.g. x86.

---
 drivers/bios_emulator/include/x86emu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bios_emulator/include/x86emu.h +1 -1
index d2650a8d16..cfdcd7b3e1 100644
@@ -54,7 +54,7 @@ typedef u16 X86EMU_pioAddr;
 
 #if defined(CONFIG_ARM)
 #define GAS_LINE_COMMENT	"@"
-#elif defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_X86)
+#elif defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_X86) || defined(CONFIG_RISCV)
 #define GAS_LINE_COMMENT	"#"
 #elif defined (CONFIG_SH)
 #define GAS_LINE_COMMENT	"!"
Signature · 1 line
2.39.5
#1 lore raw
Quoted 5 lines · Yuri Zaporozhets

The bios_emulator driver cannot be compiled for RISC-V because the x86emu.h header file doesn't define the comment symbol ("#") for the assembler. With this patch, use the same symbol as for e.g. x86.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom