From: David Gibson <david@gibson.dropbear.id.au>
To: Bharata B Rao <bharata@linux.vnet.ibm.com>
Cc: lvivier@redhat.com, thuth@redhat.com, mdroth@linux.vnet.ibm.com,
aik@ozlabs.ru, qemu-devel@nongnu.org, agraf@suse.de,
qemu-ppc@nongnu.org, afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH 3/4] spapr: Remove obsolete entry_point field from sPAPRMachineState
Date: Tue, 26 May 2015 11:39:33 +1000 [thread overview]
Message-ID: <20150526013933.GN6255@voom.redhat.com> (raw)
In-Reply-To: <20150507045003.GW18380@in.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 2340 bytes --]
On Thu, May 07, 2015 at 10:20:03AM +0530, Bharata B Rao wrote:
> On Thu, May 07, 2015 at 01:57:03PM +1000, David Gibson 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 1123358..c4c7a07 100644
> > --- a/hw/ppc/spapr.c
> > +++ b/hw/ppc/spapr.c
> > @@ -928,7 +928,7 @@ static void ppc_spapr_reset(void)
> > first_ppc_cpu->env.gpr[3] = sm->fdt_addr;
> > first_ppc_cpu->env.gpr[5] = 0;
> > first_cpu->halted = 0;
> > - first_ppc_cpu->env.nip = sm->entry_point;
> > + first_ppc_cpu->env.nip = SPAPR_ENTRY_POINT;
> >
> > }
> >
> > @@ -1641,8 +1641,6 @@ static void ppc_spapr_init(MachineState *machine)
> > }
> > g_free(filename);
> >
> > - sm->entry_point = 0x100;
> > -
> > /* FIXME: Should register thigs 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..108ff45 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
>
> checkpatch.pl complains about the use of tab here.
Thanks, fixed.
> Other than that I did a quick compile and VM boot test, things look ok.
>
> Regards,
> Bharata.
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-05-26 2:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-07 3:57 [Qemu-devel] [PATCH 0/4] sPAPRMachineState cleanups David Gibson
2015-05-07 3:57 ` [Qemu-devel] [PATCH 1/4] spapr: Merge sPAPREnvironment into sPAPRMachineState David Gibson
2015-05-07 8:13 ` Thomas Huth
2015-05-26 1:14 ` David Gibson
2015-05-07 3:57 ` [Qemu-devel] [PATCH 2/4] spapr: Remove obsolete ram_limit field from sPAPRMachineState David Gibson
2015-05-07 4:12 ` Alexey Kardashevskiy
2015-05-07 4:40 ` David Gibson
2015-05-26 1:23 ` David Gibson
2015-05-07 3:57 ` [Qemu-devel] [PATCH 3/4] spapr: Remove obsolete entry_point " David Gibson
2015-05-07 4:50 ` Bharata B Rao
2015-05-26 1:39 ` David Gibson [this message]
2015-05-07 3:57 ` [Qemu-devel] [PATCH 4/4] spapr: Add sPAPRMachineClass 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=20150526013933.GN6255@voom.redhat.com \
--to=david@gibson.dropbear.id.au \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=bharata@linux.vnet.ibm.com \
--cc=lvivier@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.