On Thu, Dec 19, 2013 at 3:51 PM, <[email protected]> wrote:
> From: "Edgar E. Iglesias" <[email protected]>
>
> Signed-off-by: Edgar E. Iglesias <[email protected]>
> ---
> 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?
Regards,
Peter
> DEFINE_PROP_UINT32("xlnx.base-vectors", MicroBlazeCPU, base_vectors, 0),
> DEFINE_PROP_END_OF_LIST(),
> };
> --
> 1.7.10.4
>
>