]> Git Repo - qemu.git/blobdiff - hw/petalogix_ml605_mmu.c
petalogix_ml605: Use cpu_mb_init() to obtain MicroBlazeCPU
[qemu.git] / hw / petalogix_ml605_mmu.c
index 31a434872d7ac702e808b963e71fa8da177a46c7..681924199ebbf48bae4ba7c5c0b0be8f8f60b017 100644 (file)
@@ -75,6 +75,7 @@ petalogix_ml605_init(ram_addr_t ram_size,
 {
     MemoryRegion *address_space_mem = get_system_memory();
     DeviceState *dev;
+    MicroBlazeCPU *cpu;
     CPUMBState *env;
     DriveInfo *dinfo;
     int i;
@@ -87,7 +88,8 @@ petalogix_ml605_init(ram_addr_t ram_size,
     if (cpu_model == NULL) {
         cpu_model = "microblaze";
     }
-    env = cpu_init(cpu_model);
+    cpu = cpu_mb_init(cpu_model);
+    env = &cpu->env;
 
     /* Attach emulated BRAM through the LMB.  */
     memory_region_init_ram(phys_lmb_bram, "petalogix_ml605.lmb_bram",
This page took 0.024972 seconds and 4 git commands to generate.