[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/9] unicore32-softmmu: initialize ucv2 cpu
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 5/9] unicore32-softmmu: initialize ucv2 cpu |
Date: |
Mon, 28 May 2012 15:14:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0 |
Am 28.05.2012 11:43, schrieb address@hidden:
>> 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.
I'm not discussing about a guest kernel but about your source change
above: The UC32_CPUID_UC32 #define should go away, i.e. please ack
(today, if we want it in 1.1) and prepend my patch, and if the value is
wrong here it should be changed *here* and not in UC32_CPUID_UCV2.
If you're introducing new uses of UC32_CPUID_UCV2 elsewhere (e.g., for
register behavior) then that is a design fault and needs to be fixed.
Compare the copro series for target-arm, which gets rid of the
CPUID-based switches there.
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
- [Qemu-devel] [PATCH 0/9] *** SUBJECT HERE ***, Guan Xuetao, 2012/05/25
- [Qemu-devel] [PATCH 4/9] unicore32-softmmu: make sure that kernel can access user space, Guan Xuetao, 2012/05/25
- [Qemu-devel] [PATCH 1/9] unicore32-softmmu: make exceptions generated in unicore32 architecture, Guan Xuetao, 2012/05/25
- [Qemu-devel] [PATCH 2/9] unicore32-softmmu: implement some softmmu specific functions, Guan Xuetao, 2012/05/25
- [Qemu-devel] [PATCH 3/9] unicore32-softmmu: add coprocessor 0 and ocd instruction support, Guan Xuetao, 2012/05/25
- [Qemu-devel] [PATCH 5/9] unicore32-softmmu: initialize ucv2 cpu, Guan Xuetao, 2012/05/25
[Qemu-devel] [PATCH 8/9] unicore32-softmmu: add config and makefile support, Guan Xuetao, 2012/05/25
[Qemu-devel] [PATCH 9/9] unicore32-softmmu: add maintainer information, Guan Xuetao, 2012/05/25
[Qemu-devel] [PATCH 7/9] unicore32-softmmu: add puv3 soc support, Guan Xuetao, 2012/05/25