mmu_helper.c (d8276573da58e8ce78dab8c46dd660efd664bcb7) mmu_helper.c (29a0af618ddd21f55df5753c3e16b0625f534b3c)
1/*
2 * PowerPC MMU, TLB, SLB and BAT emulation helpers for QEMU.
3 *
4 * Copyright (c) 2003-2007 Jocelyn Mayer
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 508 unchanged lines hidden (view full) ---

517 ctx->hash[1] = ~hash;
518
519 /* Initialize real address with an invalid value */
520 ctx->raddr = (hwaddr)-1ULL;
521 /* Software TLB search */
522 ret = ppc6xx_tlb_check(env, ctx, eaddr, rw, type);
523#if defined(DUMP_PAGE_TABLES)
524 if (qemu_loglevel_mask(CPU_LOG_MMU)) {
1/*
2 * PowerPC MMU, TLB, SLB and BAT emulation helpers for QEMU.
3 *
4 * Copyright (c) 2003-2007 Jocelyn Mayer
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 508 unchanged lines hidden (view full) ---

517 ctx->hash[1] = ~hash;
518
519 /* Initialize real address with an invalid value */
520 ctx->raddr = (hwaddr)-1ULL;
521 /* Software TLB search */
522 ret = ppc6xx_tlb_check(env, ctx, eaddr, rw, type);
523#if defined(DUMP_PAGE_TABLES)
524 if (qemu_loglevel_mask(CPU_LOG_MMU)) {
525 CPUState *cs = ENV_GET_CPU(env);
525 CPUState *cs = env_cpu(env);
526 hwaddr curaddr;
527 uint32_t a0, a1, a2, a3;
528
529 qemu_log("Page table: " TARGET_FMT_plx " len " TARGET_FMT_plx
530 "\n", ppc_hash32_hpt_base(cpu),
531 ppc_hash32_hpt_mask(env) + 0x80);
532 for (curaddr = ppc_hash32_hpt_base(cpu);
533 curaddr < (ppc_hash32_hpt_base(cpu)

--- 2549 unchanged lines hidden ---
526 hwaddr curaddr;
527 uint32_t a0, a1, a2, a3;
528
529 qemu_log("Page table: " TARGET_FMT_plx " len " TARGET_FMT_plx
530 "\n", ppc_hash32_hpt_base(cpu),
531 ppc_hash32_hpt_mask(env) + 0x80);
532 for (curaddr = ppc_hash32_hpt_base(cpu);
533 curaddr < (ppc_hash32_hpt_base(cpu)

--- 2549 unchanged lines hidden ---