qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 12/22] target/loongarch: Add fixed point extra instruction


From: Song Gao
Subject: Re: [PATCH v2 12/22] target/loongarch: Add fixed point extra instruction translation
Date: Tue, 27 Jul 2021 09:46:29 +0800
User-agent: Mozilla/5.0 (X11; Linux mips64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi, Richard.

On 07/27/2021 12:42 AM, Richard Henderson wrote:
> On 7/26/21 2:57 AM, Song Gao wrote:
>>
>> Hi, Richard.
>>
>> On 07/23/2021 01:12 PM, Richard Henderson wrote:
>>> On 7/20/21 11:53 PM, Song Gao wrote:
>>>> +target_ulong helper_cpucfg(CPULoongArchState *env, target_ulong rj)
>>>> +{
>>>> +    target_ulong r = 0;
>>>> +
>>>> +    switch (rj) {
>>>> +    case 0:
>>>> +        r = env->CSR_MCSR0 & 0xffffffff;
>>>> +        break;
>>>> +    case 1:
>>>> +        r = (env->CSR_MCSR0 & 0xffffffff00000000) >> 32;
>>>> +        break;
>>>
>>> Why do you represent all of these as high and low portions of a 64-bit 
>>> internal value, when the manual describes them as 32-bit values?
>>>
>> This method can reduce variables on env.
> 
> The number of variables may increase, but the memory consumed -- which is the 
> metric that is more important -- is still the same.
> 
> Also, it is much less confusing to match the description in the manual.
> 
OK.

Thanks
Song Gao.
> 
> r~




reply via email to

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