summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Zaporozhets <yuriz@vodafonemail.de>2024-10-30 14:00:51 +0100
committerTom Rini <trini@konsulko.com>2024-11-04 16:41:38 -0600
commitd84e3d2630f9db9484ee8609e5d5e992fc5c5260 (patch)
tree03f3857757d3c2c9ef45ae0c607304c4797fa1e3
parent599652cff13ad31d23b1b8bf8905533e447435d5 (diff)
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. Signed-off-by: Yuri Zaporozhets <yuriz@qrv-systems.net>
-rw-r--r--drivers/bios_emulator/include/x86emu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bios_emulator/include/x86emu.h b/drivers/bios_emulator/include/x86emu.h
index d2650a8d160..cfdcd7b3e10 100644
--- a/drivers/bios_emulator/include/x86emu.h
+++ b/drivers/bios_emulator/include/x86emu.h
@@ -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 "!"