exynos4210.c (2b483739791b33c46e6084b51edcf62107058ae1) exynos4210.c (ba1ba5cca3962a9cc400c713c736b4fb8db1f38e)
1/*
2 * Samsung exynos4210 SoC emulation
3 *
4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
5 * Maksim Kozlov <m.kozlov@samsung.com>
6 * Evgeny Voevodin <e.voevodin@samsung.com>
7 * Igor Mitsyanko <i.mitsyanko@samsung.com>
8 *

--- 155 unchanged lines hidden (view full) ---

164 return mp_affinity;
165}
166
167Exynos4210State *exynos4210_init(MemoryRegion *system_mem)
168{
169 Exynos4210State *s = g_new(Exynos4210State, 1);
170 qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS];
171 SysBusDevice *busdev;
1/*
2 * Samsung exynos4210 SoC emulation
3 *
4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
5 * Maksim Kozlov <m.kozlov@samsung.com>
6 * Evgeny Voevodin <e.voevodin@samsung.com>
7 * Igor Mitsyanko <i.mitsyanko@samsung.com>
8 *

--- 155 unchanged lines hidden (view full) ---

164 return mp_affinity;
165}
166
167Exynos4210State *exynos4210_init(MemoryRegion *system_mem)
168{
169 Exynos4210State *s = g_new(Exynos4210State, 1);
170 qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS];
171 SysBusDevice *busdev;
172 ObjectClass *cpu_oc;
173 DeviceState *dev;
174 int i, n;
175
172 DeviceState *dev;
173 int i, n;
174
176 cpu_oc = cpu_class_by_name(TYPE_ARM_CPU, "cortex-a9");
177 assert(cpu_oc);
178
179 for (n = 0; n < EXYNOS4210_NCPUS; n++) {
175 for (n = 0; n < EXYNOS4210_NCPUS; n++) {
180 Object *cpuobj = object_new(object_class_get_name(cpu_oc));
176 Object *cpuobj = object_new(ARM_CPU_TYPE_NAME("cortex-a9"));
181
182 /* By default A9 CPUs have EL3 enabled. This board does not currently
183 * support EL3 so the CPU EL3 property is disabled before realization.
184 */
185 if (object_property_find(cpuobj, "has_el3", NULL)) {
186 object_property_set_bool(cpuobj, false, "has_el3", &error_fatal);
187 }
188

--- 222 unchanged lines hidden ---
177
178 /* By default A9 CPUs have EL3 enabled. This board does not currently
179 * support EL3 so the CPU EL3 property is disabled before realization.
180 */
181 if (object_property_find(cpuobj, "has_el3", NULL)) {
182 object_property_set_bool(cpuobj, false, "has_el3", &error_fatal);
183 }
184

--- 222 unchanged lines hidden ---