[6306] target-mips: fix indentation
Revision: 6306
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6306 Author: aurel32 Date: 2009-01-14 19:40:36 +0000 (Wed, 14 Jan 2009)
Log Message:
-----------
target-mips: fix indentation
Remove all tabs from target-mips/*
Modified Paths:
--------------
trunk/target-mips/helper.c
trunk/target-mips/op_helper.c
trunk/target-mips/translate.c
trunk/target-mips/translate_init.c
Modified: trunk/target-mips/helper.c
===================================================================
target-mips/helper.c +19 -19
@@ -134,18 +134,18 @@#if defined(TARGET_MIPS64 ) } else if (address < 0x4000000000000000ULL) {/* xuseg */ -if (UX && address <= (0x3FFFFFFFFFFFFFFFULL & env->SEGMask)) { +if (UX && address <= (0x3FFFFFFFFFFFFFFFULL & env->SEGMask)) { ret = env->tlb->map_address (env, physical, prot, address, rw, access_type); - }else { - ret =TLBRET_BADADDR ; + }else { + ret =TLBRET_BADADDR ; } }else if (address <0x8000000000000000ULL ) {/* xsseg */ -if ((supervisor_mode || kernel_mode) && -SX && address <= (0x7FFFFFFFFFFFFFFFULL & env->SEGMask)) { +if ((supervisor_mode || kernel_mode) && +SX && address <= (0x7FFFFFFFFFFFFFFFULL & env->SEGMask)) { ret = env->tlb->map_address (env, physical, prot, address, rw, access_type); - }else { - ret =TLBRET_BADADDR ; + }else { + ret =TLBRET_BADADDR ; } }else if (address <0xC000000000000000ULL ) {/* xkphys */
@@ -153,17 +153,17 @@ (address & 0x07FFFFFFFFFFFFFFULL) <= env->PAMask) { *physical = address & env->PAMask; *prot = PAGE_READ | PAGE_WRITE; - } else { - ret =TLBRET_BADADDR ; - } + } else { + ret =TLBRET_BADADDR ; + } }else if (address <0xFFFFFFFF80000000ULL ) {/* xkseg */ -if (kernel_mode &&KX && - address <= (0xFFFFFFFF7FFFFFFFULL & env->SEGMask)) { +if (kernel_mode &&KX && + address <= (0xFFFFFFFF7FFFFFFFULL & env->SEGMask)) { ret = env->tlb->map_address (env, physical, prot, address, rw, access_type); - }else { - ret =TLBRET_BADADDR ; - } + }else { + ret =TLBRET_BADADDR ; + }#endif }else if (address < (int32_t )0xA0000000UL ) {/* kseg0 */
@@ -200,7 +200,7 @@#if 0 if (logfile) {fprintf (logfile, TARGET_FMT_lx" %d %d => " TARGET_FMT_lx" %d (%d)\n" , - address, rw, access_type, *physical, *prot, ret); + address, rw, access_type, *physical, *prot, ret); }#endif
@@ -297,7 +297,7 @@/* Raise exception */ env->CP0_BadVAddr = address; env->CP0_Context = (env->CP0_Context & ~0x007fffff ) | - ((address >>9 ) &0x007ffff0 ); + ((address >>9 ) &0x007ffff0 ); env->CP0_EntryHi = (env->CP0_EntryHi &0xFF ) | (address & (TARGET_PAGE_MASK <<1 ));#if defined(TARGET_MIPS64 )
@@ -593,8 +593,8 @@if (use_extra && env->tlb->tlb_in_use <MIPS_TLB_MAX ) {/* For tlbwr, we can shadow the discarded entry into -a new (fake) TLB entry, as long as the guest can not -tell that it's there. */ +a new (fake) TLB entry, as long as the guest can not +tell that it's there. */ env->tlb->mmu.r4k.tlb[env->tlb->tlb_in_use] = *tlb; env->tlb->tlb_in_use++;return ;
Modified: trunk/target-mips/op_helper.c
===================================================================
target-mips/op_helper.c +11 -11
@@ -1518,7 +1518,7 @@ } } }else if (t0 ==0 ) { -if (0 /* TODO: TC underflow */ ) { +if (0 /* TODO: TC underflow */ ) { env->CP0_VPEControl &= ~(0x7 << CP0VPECo_EXCPT);do_raise_exception (EXCP_THREAD ); }else {
@@ -1622,17 +1622,17 @@if (i == env->tlb->nb_tlb) {/* No match. Discard any shadow entries, if any of them match. */ for (i = env->tlb->nb_tlb; i < env->tlb->tlb_in_use; i++) { - tlb = &env->tlb->mmu.r4k.tlb[i]; -/* 1k pages are not supported. */ - mask = tlb->PageMask | ~(TARGET_PAGE_MASK <<1 ); - tag = env->CP0_EntryHi & ~mask; -VPN = tlb->VPN & ~mask; -/* Check ASID, virtual page number & size */ -if ((tlb->G ==1 || tlb->ASID ==ASID ) &&VPN == tag) { + tlb = &env->tlb->mmu.r4k.tlb[i]; +/* 1k pages are not supported. */ + mask = tlb->PageMask | ~(TARGET_PAGE_MASK <<1 ); + tag = env->CP0_EntryHi & ~mask; +VPN = tlb->VPN & ~mask; +/* Check ASID, virtual page number & size */ +if ((tlb->G ==1 || tlb->ASID ==ASID ) &&VPN == tag) {r4k_mips_tlb_flush_extra (env, i); -break ; - } - } +break ; + } + } env->CP0_Index |=0x80000000 ; }
Modified: trunk/target-mips/translate.c
===================================================================
target-mips/translate.c +26 -26
169 lines not on this page · raw message
Modified: trunk/target-mips/translate_init.c
===================================================================
target-mips/translate_init.c +42 -42
197 lines not on this page · raw message