From: Thomas Huth <thuth@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: lvivier@redhat.com, qemu-devel@nongnu.org,
mdroth@linux.vnet.ibm.com, agraf@suse.de, qemu-ppc@nongnu.org,
bharata@linux.vnet.ibm.com, afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCHv2 3/4] spapr: Remove obsolete entry_point field from sPAPRMachineState
Date: Tue, 26 May 2015 10:01:33 +0200 [thread overview]
Message-ID: <20150526100133.4c437950@thh440s> (raw)
In-Reply-To: <1432606979-28556-4-git-send-email-david@gibson.dropbear.id.au>
On Tue, 26 May 2015 12:22:58 +1000
David Gibson <david@gibson.dropbear.id.au> wrote:
> 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 <david@gibson.dropbear.id.au>
> ---
> hw/ppc/spapr.c | 4 +---
> include/hw/ppc/spapr.h | 2 +-
> 2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> index 31b29d6..63877b9 100644
> --- a/hw/ppc/spapr.c
> +++ b/hw/ppc/spapr.c
> @@ -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 */
> diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
> index 9e7cf0f..785b094 100644
> --- a/include/hw/ppc/spapr.h
> +++ b/include/hw/ppc/spapr.h
> @@ -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;
Reviewed-by: Thomas Huth <thuth@redhat.com>
next prev parent reply other threads:[~2015-05-26 8:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 2:22 [Qemu-devel] [PATCHv2 0/4] sPAPRMachineState cleanups David Gibson
2015-05-26 2:22 ` [Qemu-devel] [PATCHv2 1/4] spapr: Merge sPAPREnvironment into sPAPRMachineState David Gibson
2015-05-26 7:10 ` Thomas Huth
2015-05-26 2:22 ` [Qemu-devel] [PATCHv2 2/4] spapr: Remove obsolete ram_limit field from sPAPRMachineState David Gibson
2015-05-26 8:00 ` Thomas Huth
2015-05-29 1:33 ` David Gibson
2015-05-26 2:22 ` [Qemu-devel] [PATCHv2 3/4] spapr: Remove obsolete entry_point " David Gibson
2015-05-26 8:01 ` Thomas Huth [this message]
2015-05-26 2:22 ` [Qemu-devel] [PATCHv2 4/4] spapr: Add sPAPRMachineClass David Gibson
2015-05-26 8:19 ` Thomas Huth
2015-05-29 1:35 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150526100133.4c437950@thh440s \
--to=thuth@redhat.com \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=bharata@linux.vnet.ibm.com \
--cc=david@gibson.dropbear.id.au \
--cc=lvivier@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).