diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-07 17:30:34 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-07 17:30:34 +0000 |
commit | b33c17e12d1af68a5733094f33578847379ed892 (patch) | |
tree | d20f8688b99571c707b328156f66d0a9f10d8c77 /target-ppc/helper.c | |
parent | b068d6a7138292de0f5c5fa6c99f0b79d4e1e7f0 (diff) |
PowerPC target coding style fixes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3348 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r-- | target-ppc/helper.c | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c index 205e35f49e..86debbc3c7 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -626,8 +626,8 @@ static int slb_lookup (CPUPPCState *env, target_ulong eaddr, tmp = ldl_phys(sr_base + 8); #if defined(DEBUG_SLB) if (loglevel != 0) { - fprintf(logfile, "%s: seg %d " PADDRX " %016" PRIx64 " %08" PRIx32 "\n", - __func__, n, sr_base, tmp64, tmp); + fprintf(logfile, "%s: seg %d " PADDRX " %016" PRIx64 " %08" + PRIx32 "\n", __func__, n, sr_base, tmp64, tmp); } #endif if (tmp64 & 0x0000000008000000ULL) { @@ -869,25 +869,25 @@ static int get_segment (CPUState *env, mmu_ctx_t *ctx, } } #if defined (DEBUG_MMU) - if (loglevel != 0) { - target_phys_addr_t curaddr; - uint32_t a0, a1, a2, a3; + if (loglevel != 0) { + target_phys_addr_t curaddr; + uint32_t a0, a1, a2, a3; + fprintf(logfile, + "Page table: " PADDRX " len " PADDRX "\n", + sdr, mask + 0x80); + for (curaddr = sdr; curaddr < (sdr + mask + 0x80); + curaddr += 16) { + a0 = ldl_phys(curaddr); + a1 = ldl_phys(curaddr + 4); + a2 = ldl_phys(curaddr + 8); + a3 = ldl_phys(curaddr + 12); + if (a0 != 0 || a1 != 0 || a2 != 0 || a3 != 0) { fprintf(logfile, - "Page table: " PADDRX " len " PADDRX "\n", - sdr, mask + 0x80); - for (curaddr = sdr; curaddr < (sdr + mask + 0x80); - curaddr += 16) { - a0 = ldl_phys(curaddr); - a1 = ldl_phys(curaddr + 4); - a2 = ldl_phys(curaddr + 8); - a3 = ldl_phys(curaddr + 12); - if (a0 != 0 || a1 != 0 || a2 != 0 || a3 != 0) { - fprintf(logfile, - PADDRX ": %08x %08x %08x %08x\n", - curaddr, a0, a1, a2, a3); - } - } + PADDRX ": %08x %08x %08x %08x\n", + curaddr, a0, a1, a2, a3); } + } + } #endif } else { #if defined (DEBUG_MMU) @@ -1714,7 +1714,6 @@ void do_store_dbatl (CPUPPCState *env, int nr, target_ulong value) env->DBAT[1][nr] = value; } - /*****************************************************************************/ /* TLB management */ void ppc_tlb_invalidate_all (CPUPPCState *env) @@ -1843,7 +1842,6 @@ void ppc_slb_invalidate_one (CPUPPCState *env, uint64_t T0) } #endif - /*****************************************************************************/ /* Special registers manipulation */ #if defined(TARGET_PPC64) |