accel/tcg: Check for USER_ONLY definition instead of SOFTMMU one
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 13 Jun 2023 13:33:44 +0000 (15:33 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 20 Jun 2023 08:01:30 +0000 (10:01 +0200)
commit905db98a73d6a6e1dda2bf81ed11323efee0f7a1
tree7574cdc6ae14e1af6dd839a250f03b4ed4b86ce4
parent75fe97b429d491d348fde78ec75c6556762b4b87
accel/tcg: 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-7-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cpu-exec.c
accel/tcg/internal.h