qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 5/9] unicore32-softmmu: initialize ucv2 cpu


From: guanxuetao
Subject: Re: [Qemu-devel] [PATCH 5/9] unicore32-softmmu: initialize ucv2 cpu
Date: Mon, 28 May 2012 17:43:42 +0800 (CST)
User-agent: SquirrelMail/1.4.8-4.0.1.el5

> Am 25.05.2012 13:29, schrieb Guan Xuetao:
>> Signed-off-by: Guan Xuetao <address@hidden>
>> ---
>>  target-unicore32/cpu.c |   17 +++++++++++++----
>>  target-unicore32/cpu.h |    2 +-
>>  2 files changed, 14 insertions(+), 5 deletions(-)
>>
>> diff --git a/target-unicore32/cpu.c b/target-unicore32/cpu.c
>> index de63f58..62c0a22 100644
>> --- a/target-unicore32/cpu.c
>> +++ b/target-unicore32/cpu.c
>> @@ -32,13 +32,16 @@ static void unicore_ii_cpu_initfn(Object *obj)
>>      UniCore32CPU *cpu = UNICORE32_CPU(obj);
>>      CPUUniCore32State *env = &cpu->env;
>>
>> -    env->cp0.c0_cpuid = 0x40010863;
>> +    env->cp0.c0_cpuid = UC32_CPUID_UCV2;
>
> Please don't revert this change. I'll send you the patch to drop the
> CPUID #defines instead.

But, the kernel need this CPUID to check whether it is a unicore32
processor, and if check fail, the kernel will halt.

Guan Xuetao



reply via email to

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