[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: |
Richard Henderson |
Subject: |
Re: [PATCH 2/7] hw/hppa: Make number of TLB and BTLB entries configurable |
Date: |
Wed, 2 Sep 2020 09:52:31 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
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.
r~
- Re: [PATCH 6/7] hw/display/artist: Fix artist screen resolution, (continued)
[PATCH 3/7] hw/hppa: Store boot device in fw_cfg section, Helge Deller, 2020/09/01
[PATCH 1/7] seabios-hppa: Update SeaBIOS to hppa-qemu-5.2-2 tag, Helge Deller, 2020/09/01
[PATCH 7/7] target/hppa: Fix boot with old Linux installation CDs, Helge Deller, 2020/09/01
[PATCH 2/7] hw/hppa: Make number of TLB and BTLB entries configurable, Helge Deller, 2020/09/01
Re: [PATCH 0/7] hppa power button support, graphics updates and firmware fixes, Philippe Mathieu-Daudé, 2020/09/01