target/moxie: Let moxie_mmu_translate() use MMUAccessType access_type
PATCH 1/1 target/moxie: Let moxie_mmu_translate() use MMUAccessType access_type
moxie_mmu_translate() doesn't do much work. Still keep its prototype similar to the other targets, by taking a MMUAccessType argument.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- target/moxie/mmu.h | 2 +- target/moxie/helper.c | 2 +- target/moxie/mmu.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
target/moxie/mmu.h +1 -1
@@ -14,6 +14,6 @@ typedef struct {int moxie_mmu_translate (MoxieMMUResult *res,CPUMoxieState *env,uint32_t vaddr, -int rw,int mmu_idx); +MMUAccessType access_type,int mmu_idx);#endif
target/moxie/helper.c +1 -1
@@ -112,7 +112,7 @@ hwaddr moxie_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)MoxieMMUResult res;int miss; - miss =moxie_mmu_translate (&res, &cpu->env, addr,0 ,0 ); + miss =moxie_mmu_translate (&res, &cpu->env, addr,MMU_DATA_LOAD ,0 );if (!miss) { phy = res.phy; }
target/moxie/mmu.c +1 -1
@@ -24,7 +24,7 @@int moxie_mmu_translate (MoxieMMUResult *res,CPUMoxieState *env,uint32_t vaddr, -int rw,int mmu_idx) +MMUAccessType access_type,int mmu_idx) {/* Perform no translation yet. */ res->phy = vaddr;
Signature · 1 line
2.26.2