> 2012/7/13 Guan Xuetao <[email protected]>:
>> This patch only add puv3 soc/board support, which introduces puv3
>> machine description, and specifies console type.
>>
>> Signed-off-by: Guan Xuetao <[email protected]>
>> ---
>> 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.
Thanks for pointing it out. I'll add a patch on this one.
Regards,
Guan Xuetao
>> +};
>> +
>> +static void puv3_machine_init(void)
>> +{
>> + qemu_register_machine(&puv3_machine);
>> +}
>> +
>> +machine_init(puv3_machine_init)
>
> --
> Best Regards,
>
> Dunrong Huang
>