提交 6bab8eaa 编写于 作者: I Igor Mammedov 提交者: David Gibson

ppc: virtex-ml507: replace cpu_model with cpu_type

Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
上级 9391b8c5
...@@ -89,14 +89,14 @@ static void mmubooke_create_initial_mapping(CPUPPCState *env, ...@@ -89,14 +89,14 @@ static void mmubooke_create_initial_mapping(CPUPPCState *env,
static PowerPCCPU *ppc440_init_xilinx(ram_addr_t *ram_size, static PowerPCCPU *ppc440_init_xilinx(ram_addr_t *ram_size,
int do_init, int do_init,
const char *cpu_model, const char *cpu_type,
uint32_t sysclk) uint32_t sysclk)
{ {
PowerPCCPU *cpu; PowerPCCPU *cpu;
CPUPPCState *env; CPUPPCState *env;
qemu_irq *irqs; qemu_irq *irqs;
cpu = POWERPC_CPU(cpu_generic_init(TYPE_POWERPC_CPU, cpu_model)); cpu = POWERPC_CPU(cpu_create(cpu_type));
env = &cpu->env; env = &cpu->env;
ppc_booke_timers_init(cpu, sysclk, 0/* no flags */); ppc_booke_timers_init(cpu, sysclk, 0/* no flags */);
...@@ -211,11 +211,7 @@ static void virtex_init(MachineState *machine) ...@@ -211,11 +211,7 @@ static void virtex_init(MachineState *machine)
int i; int i;
/* init CPUs */ /* init CPUs */
if (machine->cpu_model == NULL) { cpu = ppc440_init_xilinx(&ram_size, 1, machine->cpu_type, 400000000);
machine->cpu_model = "440-Xilinx";
}
cpu = ppc440_init_xilinx(&ram_size, 1, machine->cpu_model, 400000000);
env = &cpu->env; env = &cpu->env;
if (env->mmu_model != POWERPC_MMU_BOOKE) { if (env->mmu_model != POWERPC_MMU_BOOKE) {
...@@ -307,6 +303,7 @@ static void virtex_machine_init(MachineClass *mc) ...@@ -307,6 +303,7 @@ static void virtex_machine_init(MachineClass *mc)
{ {
mc->desc = "Xilinx Virtex ML507 reference design"; mc->desc = "Xilinx Virtex ML507 reference design";
mc->init = virtex_init; mc->init = virtex_init;
mc->default_cpu_type = POWERPC_CPU_TYPE_NAME("440-xilinx");
} }
DEFINE_MACHINE("virtex-ml507", virtex_machine_init) DEFINE_MACHINE("virtex-ml507", virtex_machine_init)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册