mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/m68k: Check for USER_ONLY definition instead of SOFTMMU one
Since we *might* have user emulation with softmmu, replace the system emulation check by !user emulation one. Invert some if() ladders for clarity. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230613133347.82210-4-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
66352d7ef2
commit
6a14058677
4 changed files with 23 additions and 25 deletions
|
@ -1480,7 +1480,7 @@ void HELPER(set_mac_extu)(CPUM68KState *env, uint32_t val, uint32_t acc)
|
|||
env->macc[acc + 1] = res;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_SOFTMMU)
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
void HELPER(ptest)(CPUM68KState *env, uint32_t addr, uint32_t is_read)
|
||||
{
|
||||
hwaddr physical;
|
||||
|
@ -1534,4 +1534,4 @@ void HELPER(reset)(CPUM68KState *env)
|
|||
{
|
||||
/* FIXME: reset all except CPU */
|
||||
}
|
||||
#endif
|
||||
#endif /* !CONFIG_USER_ONLY */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue