qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 20/22] target-microblaze: Add address-space p


From: Edgar E. Iglesias
Subject: Re: [Qemu-devel] [PATCH v2 20/22] target-microblaze: Add address-space property
Date: Thu, 19 Dec 2013 17:05:07 +1000
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Dec 19, 2013 at 04:22:47PM +1000, Peter Crosthwaite wrote:
> On Thu, Dec 19, 2013 at 3:51 PM,  <address@hidden> wrote:
> > From: "Edgar E. Iglesias" <address@hidden>
> >
> > Signed-off-by: Edgar E. Iglesias <address@hidden>
> > ---
> >  target-microblaze/cpu.c |    6 ++++++
> >  1 file changed, 6 insertions(+)
> >
> > diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c
> > index 0ef9aa4..6d39d3d 100644
> > --- a/target-microblaze/cpu.c
> > +++ b/target-microblaze/cpu.c
> > @@ -93,6 +93,9 @@ static void mb_cpu_realizefn(DeviceState *dev, Error 
> > **errp)
> >      CPUState *cs = CPU(dev);
> >      MicroBlazeCPUClass *mcc = MICROBLAZE_CPU_GET_CLASS(dev);
> >
> > +#ifndef CONFIG_USER_ONLY
> > +    cpu_address_space_init(cs, cs->as);
> > +#endif
> >      cpu_reset(cs);
> >      qemu_init_vcpu(cs);
> >
> > @@ -123,6 +126,9 @@ static const VMStateDescription vmstate_mb_cpu = {
> >  };
> >
> >  static Property mb_properties[] = {
> > +#ifndef CONFIG_USER_ONLY
> > +    DEFINE_PROP_ADDRESS_SPACE("address-space", CPUState, as),
> > +#endif
> 
> Why not add it as a property on the base CPU level?
> 

Hi,

Yes, I can have a look at doing that. It will probably involve having some
kind of implementation of the AS prop for user emulation as qom/cpu.o is
supposed to be common for both. Andreas, do you have any preferences on how
this should be done?

Thanks,
Edgar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]