qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH arm-midr v2 1/2] ARM: Convert MIDR to a property


From: Alistair Francis
Subject: Re: [Qemu-devel] [PATCH arm-midr v2 1/2] ARM: Convert MIDR to a property
Date: Mon, 20 Jan 2014 10:12:16 +1000

On Sun, Jan 19, 2014 at 9:21 PM, Peter Maydell <address@hidden> wrote:
> On 19 January 2014 01:46, Peter Crosthwaite
> <address@hidden> wrote:
>> On Sun, Jan 19, 2014 at 11:12 AM, Peter Maydell
>> <address@hidden> wrote:
>>> IIRC ARMv4 and earlier didn't define the MIDR, but we don't
>>> actually emulate any of those. In general, my intent with all these
>>> constant fields in the ARMCPU struct was that we'd end up making
>>> them just properties available on all ARMCPU objects, and if the
>>> particular subtype of ARMCPU happened not to have FP and so
>>> didn't need the reset_fpsid, for example, it would just ignore whatever
>>> value you set the property to. I don't think we need to tie ourselves
>>> in knots to restrict the properties to particular CPUs if it is too
>>> implementationally awkward (though it would be nice if we can
>>> tie them to ARM_FEATURE_* bits for more or less free).
>>>
>>
>> ARM_FEATURE_V5 exists. Will that do the job? That will exclude just
>> the V4T AFAICT. Worth bothering?
>
> Probably not for MIDR, I think, though maybe for some of the
> others we might like to.

I have removed the object_property_set_int() function as it is no longer
required.

I also didn't bother restricting the MIDR to ARMv5

>
> thanks
> -- PMM
>



reply via email to

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