| 1112 | } |
| 1113 | |
| 1114 | static u32 ConvertToPhysics(u32 addr) |
| 1115 | { |
| 1116 | #ifdef DAEDALUS_ENABLE_ASSERTS |
| 1117 | DAEDALUS_ASSERT(IS_K0K1(addr) == (IS_KSEG0(addr) | IS_KSEG1(addr)), "IS_K0K1 is inconsistent"); |
| 1118 | #endif |
| 1119 | if( IS_K0K1(addr) ) |
| 1120 | { |
| 1121 | return K0_TO_PHYS(addr); // Same as K1_TO_PHYS |
| 1122 | } |
| 1123 | else |
| 1124 | { |
| 1125 | return OS_HLE___osProbeTLB(addr); |
| 1126 | } |
| 1127 | } |
| 1128 | |
| 1129 | extern void MemoryUpdateMI( u32 value ); |
| 1130 | extern void MemoryUpdateSPStatus( u32 flags ); |
nothing calls this directly
no test coverage detected