On 4/27/24 08:57, Philippe Mathieu-Daudé wrote:
The single call to get_memio_eip(), in cpu_report_tpr_access(), is protected by a check on tcg_enabled(). Since the call only exists when CONFIG_TCG is defined, we can slightly simplify.
Nack, that's not how things work.By wrapping the whole function in an ifdef, the symbol isn't defined without CONFIG_TCG, which means the if (0) { } block cannot compile.
r~