[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] target/mips: fetch code with translator_ld
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH] target/mips: fetch code with translator_ld |
Date: |
Fri, 22 Jan 2021 22:59:35 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 1/18/21 6:40 PM, Richard Henderson wrote:
> On 1/16/21 8:13 AM, Philippe Mathieu-Daudé wrote:
>> +++ b/target/mips/tlb_helper.c
>> @@ -21,7 +21,7 @@
>> #include "cpu.h"
>> #include "internal.h"
>> #include "exec/exec-all.h"
>> -#include "exec/cpu_ldst.h"
>> +#include "exec/translator.h"
>> #include "exec/log.h"
>> #include "hw/mips/cpudevs.h"
>>
>> @@ -526,9 +526,9 @@ static bool get_pte(CPUMIPSState *env, uint64_t vaddr,
>> int entry_size,
>> return false;
>> }
>> if (entry_size == 64) {
>> - *pte = cpu_ldq_code(env, vaddr);
>> + *pte = translator_ldq(env, vaddr);
>> } else {
>> - *pte = cpu_ldl_code(env, vaddr);
>> + *pte = translator_ldl(env, vaddr);
>> }
>> return true;
>> }
>
> NACK. This is not within the translator.
Oops...
Thanks for catching this mistake,
Phil.