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: guanxuetao
Subject: Re: [Qemu-devel] [PATCHv4 07/14] unicore32-softmmu: Add puv3 soc/board support
Date: Sat, 14 Jul 2012 11:50:34 +0800 (CST)
User-agent: SquirrelMail/1.4.8-4.0.1.el5

> 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.

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
>




reply via email to

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