qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [PATCH v2 2/3] target/ppc: add hash MMU support on POWER9


From: Cédric Le Goater
Subject: Re: [Qemu-ppc] [PATCH v2 2/3] target/ppc: add hash MMU support on POWER9 for PowerNV only
Date: Mon, 12 Mar 2018 19:33:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

>>  
>> +hwaddr ppc_hash64_hpt_reg(PowerPCCPU *cpu)
>> +{
>> +    CPUPPCState *env = &cpu->env;
>> +
>> +    if (env->mmu_model & POWERPC_MMU_V3) {
>> +        if (msr_hv) {
>> +            return ppc64_v3_get_patbe0(cpu);
> 
> This is the only caller, I think you might as well just open-code the
> load here.

It is used in patch 3/3.

Thanks,

C.



reply via email to

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