gdbstub: Check for TCG before calling tb_flush()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 23 Jan 2025 13:09:19 +0000 (14:09 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 6 Mar 2025 14:46:17 +0000 (15:46 +0100)
commit270dbee10cd31b86f0a3a8a2691026bdb0b9a071
tree0489ff9ea613a62cfbb45e4747b417f693969f9e
parent46a2cfc448931aeeb86bd721fa64e48ec0594299
gdbstub: Check for TCG before calling tb_flush()

Use the tcg_enabled() check so the compiler can elide
the call when TCG isn't available, allowing to remove
the tb_flush() stub.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250123234415.59850-4-philmd@linaro.org>
accel/stubs/tcg-stub.c
gdbstub/system.c