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: Richard Henderson
Subject: Re: [PATCH 2/7] hw/hppa: Make number of TLB and BTLB entries configurable
Date: Tue, 1 Sep 2020 14:36:48 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 9/1/20 11:34 AM, Helge Deller wrote:
> diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
> index 90aeefe2a4..e9d84d0f03 100644
> --- a/hw/hppa/machine.c
> +++ b/hw/hppa/machine.c
> @@ -72,6 +72,14 @@ static FWCfgState *create_fw_cfg(MachineState *ms)
>      fw_cfg_add_file(fw_cfg, "/etc/firmware-min-version",
>                      g_memdup(&val, sizeof(val)), sizeof(val));
> 
> +    val = cpu_to_le64(HPPA_TLB_ENTRIES);

I guess you don't have a cpu structure here against which you could apply
ARRAY_SIZE?

>      /* ??? The number of entries isn't specified by the architecture.  */
> +    #define HPPA_TLB_ENTRIES        256
> +    #define HPPA_BTLB_ENTRIES       0

What's a btlb entry?
The indented defines are weird.


r~



reply via email to

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