mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/arm/virt: Replace TARGET_AARCH64 -> target_aarch64()
Replace the target-specific TARGET_AARCH64 definition by a call to the generic target_aarch64() helper. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Acked-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20251021210144.58108-4-philmd@linaro.org>
This commit is contained in:
+5
-4
@@ -32,6 +32,7 @@
|
||||
#include "qemu/datadir.h"
|
||||
#include "qemu/units.h"
|
||||
#include "qemu/option.h"
|
||||
#include "qemu/target-info.h"
|
||||
#include "monitor/qdev.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm/boot.h"
|
||||
@@ -3263,7 +3264,8 @@ static GPtrArray *virt_get_valid_cpu_types(const MachineState *ms)
|
||||
if (tcg_enabled()) {
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("cortex-a7")));
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("cortex-a15")));
|
||||
#ifdef TARGET_AARCH64
|
||||
}
|
||||
if (tcg_enabled() && target_aarch64()) {
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("cortex-a35")));
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("cortex-a55")));
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("cortex-a72")));
|
||||
@@ -3273,15 +3275,14 @@ static GPtrArray *virt_get_valid_cpu_types(const MachineState *ms)
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("neoverse-n1")));
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("neoverse-v1")));
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("neoverse-n2")));
|
||||
#endif /* TARGET_AARCH64 */
|
||||
}
|
||||
#ifdef TARGET_AARCH64
|
||||
if (target_aarch64()) {
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("cortex-a53")));
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("cortex-a57")));
|
||||
if (kvm_enabled() || hvf_enabled()) {
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("host")));
|
||||
}
|
||||
#endif /* TARGET_AARCH64 */
|
||||
}
|
||||
g_ptr_array_add(vct, g_strdup(ARM_CPU_TYPE_NAME("max")));
|
||||
|
||||
return vct;
|
||||
|
||||
Reference in New Issue
Block a user