|
From: | Richard Henderson |
Subject: | Re: [PATCH 01/14] target/i386: Simplify get_memio_eip() |
Date: | Sun, 28 Apr 2024 11:11:18 -0700 |
User-agent: | Mozilla Thunderbird |
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~
[Prev in Thread] | Current Thread | [Next in Thread] |