diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c index 172a305e0f7ee87f63181d6023b19d6ac7613f4d..eb2d482ef77318259e34d12916618ea8ec417cba 100644 --- a/target/ppc/mmu_helper.c +++ b/target/ppc/mmu_helper.c @@ -825,7 +825,7 @@ static int mmubooke_get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx, tlb = &env->tlb.tlbe[i]; ret = mmubooke_check_tlb(env, tlb, &raddr, &ctx->prot, address, rw, access_type, i); - if (!ret) { + if (ret != -1) { break; } }