static int ppc_hash64_get_physical_address(CPUPPCState *env,

                                           struct mmu_ctx_hash64 *ctx,

                                           target_ulong eaddr, int rw,

                                           int access_type)

{

    bool real_mode = (access_type == ACCESS_CODE && msr_ir == 0)

        || (access_type != ACCESS_CODE && msr_dr == 0);



    if (real_mode) {

        ctx->raddr = eaddr & 0x0FFFFFFFFFFFFFFFULL;

        ctx->prot = PAGE_READ | PAGE_EXEC | PAGE_WRITE;

        return 0;

    } else {

        return get_segment64(env, ctx, eaddr, rw, access_type);

    }

}

static int ppc_hash64_get_physical_address(CPUPPCState *env,

                                           struct mmu_ctx_hash64 *ctx,

                                           target_ulong eaddr, int rw,

                                           int access_type)

{

    bool real_mode = (access_type == ACCESS_CODE && msr_ir == 0)

        || (access_type != ACCESS_CODE && msr_dr == 0);



    if (real_mode) {

        ctx->raddr = eaddr & 0x0FFFFFFFFFFFFFFFULL;

        ctx->prot = PAGE_READ | PAGE_EXEC | PAGE_WRITE;

        return 0;

    } else {

        return get_segment64(env, ctx, eaddr, rw, access_type);

    }

}

static int FUNC_0(CPUPPCState *VAR_0,

                                           struct mmu_ctx_hash64 *VAR_1,

                                           target_ulong VAR_2, int VAR_3,

                                           int VAR_4)

{

    bool real_mode = (VAR_4 == ACCESS_CODE && msr_ir == 0)

        || (VAR_4 != ACCESS_CODE && msr_dr == 0);



    if (real_mode) {

        VAR_1->raddr = VAR_2 & 0x0FFFFFFFFFFFFFFFULL;

        VAR_1->prot = PAGE_READ | PAGE_EXEC | PAGE_WRITE;

        return 0;

    } else {

        return get_segment64(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);

    }

}

static int FUNC_0(CPUPPCState *VAR_0,
struct mmu_ctx_hash64 *VAR_1,
target_ulong VAR_2, int VAR_3,
int VAR_4)
{ bool real_mode = (VAR_4 == ACCESS_CODE && msr_ir == 0)
|| (VAR_4 != ACCESS_CODE && msr_dr == 0); if (real_mode) { VAR_1->raddr = VAR_2 & 0x0FFFFFFFFFFFFFFFULL; VAR_1->prot = PAGE_READ | PAGE_EXEC | PAGE_WRITE; return 0; } else { return get_segment64(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4); } }