qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 2/7] hw/hppa: Make number of TLB and BTLB entries configurabl


From: Helge Deller
Subject: Re: [PATCH 2/7] hw/hppa: Make number of TLB and BTLB entries configurable
Date: Wed, 2 Sep 2020 21:36:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

On 02.09.20 18:52, Richard Henderson wrote:
> On 9/2/20 4:16 AM, Helge Deller wrote:
>>>> +    val = cpu_to_le64(HPPA_TLB_ENTRIES);
>>>
>>> I guess you don't have a cpu structure here against which you could apply
>>> ARRAY_SIZE?
>>
>> You mean to calculate the number of TLB entries based on the static size
>> of an array, e.g. ARRAY_SIZE(struct CPUHPPAState.tlb[256]) ?
>> I've replaced it intentionally by a constant, because in a follow-up
>> patch to improve the TLB-lookup speed, the array gets replaced by a GTree.
>
> Ok.
>
>>> The indented defines are weird.
>>
>> How/Why?
>
> Because usually the # is at column 1.

I fixed that up in the last v3 version I just sent.

Helge



reply via email to

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