[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v12 62/65] target/arm: refactor arm_cpu_finalize_features into
From: |
Claudio Fontana |
Subject: |
Re: [RFC v12 62/65] target/arm: refactor arm_cpu_finalize_features into cpu64 |
Date: |
Tue, 13 Apr 2021 19:14:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 |
On 3/28/21 9:15 PM, Richard Henderson wrote:
> On 3/28/21 1:12 PM, Richard Henderson wrote:
>> On 3/26/21 1:36 PM, Claudio Fontana wrote:
>>> +++ b/target/arm/monitor.c
>>> @@ -184,9 +184,11 @@ CpuModelExpansionInfo
>>> *qmp_query_cpu_model_expansion(CpuModelExpansionType type,
>>> if (!err) {
>>> visit_check_struct(visitor, &err);
>>> }
>>> +#ifdef TARGET_AARCH64
>>> if (!err) {
>>> - arm_cpu_finalize_features(ARM_CPU(obj), &err);
>>> + aarch64_cpu_finalize_features(ARM_CPU(obj), &err);
>>> }
>>> +#endif /* TARGET_AARCH64 */
>>> visit_end_struct(visitor, NULL);
>>> visit_free(visitor);
>>> if (err) {
>>> @@ -195,7 +197,9 @@ CpuModelExpansionInfo
>>> *qmp_query_cpu_model_expansion(CpuModelExpansionType type,
>>> return NULL;
>>> }
>>> } else {
>>> - arm_cpu_finalize_features(ARM_CPU(obj), &error_abort);
>>> +#ifdef TARGET_AARCH64
>>> + aarch64_cpu_finalize_features(ARM_CPU(obj), &error_abort);
>>> +#endif /* TARGET_AARCH64 */
>>
>> These ifdefs are not an improvement.
Right, here we cannot use is_a64(), and I have not found another way other than
adding a stub for the function?
>
> And are actively wrong, since we've lost the runtime test for
> ARM_FEATURE_AARCH64.
>
> r~
>
Right will fix.
Thanks
C
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [RFC v12 62/65] target/arm: refactor arm_cpu_finalize_features into cpu64,
Claudio Fontana <=