static void mmubooke_create_initial_mapping(CPUPPCState *env)

{

    struct boot_info *bi = env->load_info;

    ppcmas_tlb_t *tlb = booke206_get_tlbm(env, 1, 0, 0);

    hwaddr size, dt_end;

    int ps;



    /* Our initial TLB entry needs to cover everything from 0 to

       the device tree top */

    dt_end = bi->dt_base + bi->dt_size;

    ps = booke206_page_size_to_tlb(dt_end) + 1;

    if (ps & 1) {

        /* e500v2 can only do even TLB size bits */

        ps++;

    }

    size = (ps << MAS1_TSIZE_SHIFT);

    tlb->mas1 = MAS1_VALID | size;

    tlb->mas2 = 0;

    tlb->mas7_3 = 0;

    tlb->mas7_3 |= MAS3_UR | MAS3_UW | MAS3_UX | MAS3_SR | MAS3_SW | MAS3_SX;



    env->tlb_dirty = true;

}

static void mmubooke_create_initial_mapping(CPUPPCState *env)

{

    struct boot_info *bi = env->load_info;

    ppcmas_tlb_t *tlb = booke206_get_tlbm(env, 1, 0, 0);

    hwaddr size, dt_end;

    int ps;



    



    dt_end = bi->dt_base + bi->dt_size;

    ps = booke206_page_size_to_tlb(dt_end) + 1;

    if (ps & 1) {

        

        ps++;

    }

    size = (ps << MAS1_TSIZE_SHIFT);

    tlb->mas1 = MAS1_VALID | size;

    tlb->mas2 = 0;

    tlb->mas7_3 = 0;

    tlb->mas7_3 |= MAS3_UR | MAS3_UW | MAS3_UX | MAS3_SR | MAS3_SW | MAS3_SX;



    env->tlb_dirty = true;

}

static void FUNC_0(CPUPPCState *VAR_0)

{

    struct boot_info *VAR_1 = VAR_0->load_info;

    ppcmas_tlb_t *tlb = booke206_get_tlbm(VAR_0, 1, 0, 0);

    hwaddr size, dt_end;

    int VAR_2;



    



    dt_end = VAR_1->dt_base + VAR_1->dt_size;

    VAR_2 = booke206_page_size_to_tlb(dt_end) + 1;

    if (VAR_2 & 1) {

        

        VAR_2++;

    }

    size = (VAR_2 << MAS1_TSIZE_SHIFT);

    tlb->mas1 = MAS1_VALID | size;

    tlb->mas2 = 0;

    tlb->mas7_3 = 0;

    tlb->mas7_3 |= MAS3_UR | MAS3_UW | MAS3_UX | MAS3_SR | MAS3_SW | MAS3_SX;



    VAR_0->tlb_dirty = true;

}

static void FUNC_0(CPUPPCState *VAR_0)
{ struct boot_info *VAR_1 = VAR_0->load_info; ppcmas_tlb_t *tlb = booke206_get_tlbm(VAR_0, 1, 0, 0); hwaddr size, dt_end; int VAR_2; dt_end = VAR_1->dt_base + VAR_1->dt_size; VAR_2 = booke206_page_size_to_tlb(dt_end) + 1; if (VAR_2 & 1) { VAR_2++; } size = (VAR_2 << MAS1_TSIZE_SHIFT); tlb->mas1 = MAS1_VALID | size; tlb->mas2 = 0; tlb->mas7_3 = 0; tlb->mas7_3 |= MAS3_UR | MAS3_UW | MAS3_UX | MAS3_SR | MAS3_SW | MAS3_SX; VAR_0->tlb_dirty = true; }