On 8/13/25 17:20, Philippe Mathieu-Daudé wrote:
@@ -608,6 +630,11 @@ int hvf_get_registers(CPUState *cpu)
continue;
}
+ if (hvf_sreg_match[i].el2
+ && !host_cpu_feature_supported(ARM_FEATURE_EL2)) {
+ continue;
+ }
I thought you were going to change this to arm_feature(&cpu->env,
ARM_FEATURE_EL2).
Replied in v1:
https://lore.kernel.org/qemu-devel/08f2c3ff-a509-4a96-a515-b3ceae2ea...@linaro.org/
Hmm, missed this somehow.
In which case you are going to want to cache this particular value, because you don't want
the syscall for every read/write. It need not be more complicated than a file-scope
'static bool'.
r~