]> Git Repo - qemu.git/commitdiff
strongarm: Use cpu_arm_init() to store ARMCPU in StrongARMState
authorAndreas Färber <[email protected]>
Sun, 13 May 2012 23:42:57 +0000 (01:42 +0200)
committerAndreas Färber <[email protected]>
Sun, 10 Jun 2012 22:23:03 +0000 (00:23 +0200)
Adapt collie accordingly.

Signed-off-by: Andreas Färber <[email protected]>
Acked-by: Peter Maydell <[email protected]>
hw/collie.c
hw/strongarm.c
hw/strongarm.h

index 42f43108168a34acb0ab933dd02014c783cc7df8..e6f8dbfa52e0c4d0da1ef6ee9710484a6d57e620 100644 (file)
@@ -54,7 +54,7 @@ static void collie_init(ram_addr_t ram_size,
     collie_binfo.kernel_cmdline = kernel_cmdline;
     collie_binfo.initrd_filename = initrd_filename;
     collie_binfo.board_id = 0x208;
-    arm_load_kernel(s->env, &collie_binfo);
+    arm_load_kernel(&s->cpu->env, &collie_binfo);
 }
 
 static QEMUMachine collie_machine = {
index 1b15f399f1ef5c793635c615427cf5abad9c23d2..38b1d0c1e0e3691bdd44f3995bf028cf8ba98e13 100644 (file)
@@ -1563,9 +1563,9 @@ StrongARMState *sa1110_init(MemoryRegion *sysmem,
         exit(1);
     }
 
-    s->env = cpu_init(rev);
+    s->cpu = cpu_arm_init(rev);
 
-    if (!s->env) {
+    if (!s->cpu) {
         error_report("Unable to find CPU definition");
         exit(1);
     }
@@ -1574,7 +1574,7 @@ StrongARMState *sa1110_init(MemoryRegion *sysmem,
     vmstate_register_ram_global(&s->sdram);
     memory_region_add_subregion(sysmem, SA_SDCS0, &s->sdram);
 
-    pic = arm_pic_init_cpu(s->env);
+    pic = arm_pic_init_cpu(&s->cpu->env);
     s->pic = sysbus_create_varargs("strongarm_pic", 0x90050000,
                     pic[ARM_PIC_CPU_IRQ], pic[ARM_PIC_CPU_FIQ], NULL);
 
index 02acac3db198d7b264d22bf19a466b27ef7d0217..d30dd6ac5e44991e0f6fe9f85c9c869da8ad6d21 100644 (file)
@@ -53,7 +53,7 @@ enum {
 };
 
 typedef struct {
-    CPUARMState *env;
+    ARMCPU *cpu;
     MemoryRegion sdram;
     DeviceState *pic;
     DeviceState *gpio;
This page took 0.02722 seconds and 4 git commands to generate.