]> Git Repo - qemu.git/commitdiff
spapr: Remove obsolete entry_point field from sPAPRMachineState
authorDavid Gibson <[email protected]>
Thu, 2 Jul 2015 06:23:06 +0000 (16:23 +1000)
committerAlexander Graf <[email protected]>
Tue, 7 Jul 2015 15:44:50 +0000 (17:44 +0200)
The sPAPRMachineState structure includes an entry_point field containing
the initial PC value for starting the machine, even though this always has
the value 0x100.

I think this is a hangover from very early versions which bypassed the
firmware when using -kernel.  In any case it has no function now, so remove
it.

Signed-off-by: David Gibson <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
hw/ppc/spapr.c
include/hw/ppc/spapr.h

index 6adfb68c317d31cde727951de5412792a99931d7..3aeb2ead2a8b34a54566497f1a399164fd180002 100644 (file)
@@ -932,7 +932,7 @@ static void ppc_spapr_reset(void)
     first_ppc_cpu->env.gpr[3] = spapr->fdt_addr;
     first_ppc_cpu->env.gpr[5] = 0;
     first_cpu->halted = 0;
-    first_ppc_cpu->env.nip = spapr->entry_point;
+    first_ppc_cpu->env.nip = SPAPR_ENTRY_POINT;
 
 }
 
@@ -1645,8 +1645,6 @@ static void ppc_spapr_init(MachineState *machine)
     }
     g_free(filename);
 
-    spapr->entry_point = 0x100;
-
     /* FIXME: Should register things through the MachineState's qdev
      * interface, this is a legacy from the sPAPREnvironment structure
      * which predated MachineState but had a similar function */
index 9e7cf0fcbdeeabf6f3ffe291e19e0d439cee3071..785b0944d9089da20df4dc5c29d84d12e0c35ab6 100644 (file)
@@ -13,6 +13,7 @@ typedef struct sPAPRConfigureConnectorState sPAPRConfigureConnectorState;
 typedef struct sPAPREventLogEntry sPAPREventLogEntry;
 
 #define HPTE64_V_HPTE_DIRTY     0x0000000000000040ULL
+#define SPAPR_ENTRY_POINT       0x100
 
 typedef struct sPAPRMachineState sPAPRMachineState;
 
@@ -41,7 +42,6 @@ struct sPAPRMachineState {
     ssize_t rtas_size;
     void *rtas_blob;
     void *fdt_skel;
-    target_ulong entry_point;
     uint64_t rtc_offset; /* Now used only during incoming migration */
     struct PPCTimebase tb;
     bool has_graphics;
This page took 0.032538 seconds and 4 git commands to generate.