mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
linux-user: Replace init_guest_commpage macro with function
Turn the fallback macro into a function. This will produce a link error if the other macros are set up incorrectly. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -1115,7 +1115,7 @@ static abi_ulong create_elf_tables(abi_ulong p, int argc, int envc,
|
||||
#define HI_COMMPAGE 0
|
||||
#define LO_COMMPAGE -1
|
||||
#ifndef HAVE_GUEST_COMMPAGE
|
||||
#define init_guest_commpage() true
|
||||
bool init_guest_commpage(void) { return true; }
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user