qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCHv4 07/14] unicore32-softmmu: Add puv3 soc/board s


From: Dunrong Huang
Subject: Re: [Qemu-devel] [PATCHv4 07/14] unicore32-softmmu: Add puv3 soc/board support
Date: Fri, 13 Jul 2012 21:37:04 +0800

2012/7/13 Guan Xuetao <address@hidden>:
> This patch only add puv3 soc/board support, which introduces puv3
> machine description, and specifies console type.
>
> Signed-off-by: Guan Xuetao <address@hidden>
> ---
>  default-configs/unicore32-softmmu.mak |    1 +
>  hw/puv3.c                             |   93 
> +++++++++++++++++++++++++++++++++
>  hw/puv3.h                             |   49 +++++++++++++++++
>  hw/unicore32/Makefile.objs            |    5 ++
>  4 files changed, 148 insertions(+), 0 deletions(-)
>  create mode 100644 hw/puv3.c
>  create mode 100644 hw/puv3.h
>
> diff --git a/default-configs/unicore32-softmmu.mak 
> b/default-configs/unicore32-softmmu.mak
> index 5f04fe3..726a338 100644
> --- a/default-configs/unicore32-softmmu.mak
> +++ b/default-configs/unicore32-softmmu.mak
> @@ -1 +1,2 @@
>  # Default configuration for unicore32-softmmu
> +CONFIG_PUV3=y
> diff --git a/hw/puv3.c b/hw/puv3.c
> new file mode 100644
> index 0000000..0dc129d
> --- /dev/null
> +++ b/hw/puv3.c


> +static QEMUMachine puv3_machine = {
> +    .name = "puv3",
> +    .desc = "PKUnity Version-3 based on UniCore32",
> +    .init = puv3_init,
> +    .use_scsi = 0,
Since there is only one machine type for unicore32 architecture,
is_default field should be set  to 1, so that find_default_machine()
returns with non-null value.
> +};
> +
> +static void puv3_machine_init(void)
> +{
> +    qemu_register_machine(&puv3_machine);
> +}
> +
> +machine_init(puv3_machine_init)

-- 
Best Regards,

Dunrong Huang



reply via email to

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