MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / ConvertToPhysics

Function ConvertToPhysics

Source/OSHLE/patch.cpp:1114–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112}
1113
1114static 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
1129extern void MemoryUpdateMI( u32 value );
1130extern void MemoryUpdateSPStatus( u32 flags );

Callers

nothing calls this directly

Calls 1

OS_HLE___osProbeTLBFunction · 0.85

Tested by

no test coverage detected