#include "qemu/error-report.h"
#include "hw/i2c/aspeed_i2c.h"
#include "net/net.h"
+#include "system/qtest.h"
#include "system/system.h"
#include "hw/intc/arm_gicv3.h"
#include "qobject/qlist.h"
}
for (i = 0; i < sc->num_cpus; i++) {
+ if (qtest_enabled() && !target_aarch64()) {
+ /*
+ * Introspection qtest just want to create this object
+ * without realizing it. ARM_CPU_TYPE_NAME("cortex-a35")
+ * is not available on 32-bit binary: skip it since we
+ * won't even realize it.
+ */
+ continue;
+ }
object_initialize_child(obj, "cpu[*]", &a->cpu[i],
aspeed_soc_cpu_type(sc->valid_cpu_types));
}
qemu_irq irq;
int uart;
+ if (qtest_enabled() && !target_aarch64()) {
+ g_assert_not_reached();
+ }
+
/* Default boot region (SPI memory or ROMs) */
memory_region_init(&s->spi_boot_container, OBJECT(s),
"aspeed.spi_boot_container", 0x400000000);