On 8/13/25 03:32, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Another API PoC.
> ---
> target/arm/hvf/hvf.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
I imagine this waits until accel/split is present? If so,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
> diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
> index 84c0c0275d6..df63584f456 100644
> --- a/target/arm/hvf/hvf.c
> +++ b/target/arm/hvf/hvf.c
> @@ -17,6 +17,7 @@
> #include "system/hvf.h"
> #include "system/hvf_int.h"
> #include "system/hw_accel.h"
> +#include "system/tcg.h"
> #include "hvf_arm.h"
> #include "cpregs.h"
> #include "cpu-sysregs.h"
> @@ -585,11 +586,14 @@ bool host_cpu_feature_supported(enum arm_features feature)
> case ARM_FEATURE_GENERIC_TIMER:
> return true;
> case ARM_FEATURE_EL2:
> + if (tcg_enabled()) {
> + return true;
> + }
> ret = hv_vm_config_get_el2_supported(&supported);
> assert_hvf_ok(ret);
> return supported;
> case ARM_FEATURE_EL3:
> - return false;
> + return tcg_enabled();
> default:
> g_assert_not_reached();
> }