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

Method IsCovered

Source/DynaRec/FragmentCache.cpp:431–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429//
430//*************************************************************************************
431bool CFragmentCacheCoverage::IsCovered( u32 address, u32 len ) const
432{
433 #ifdef DAEDALUS_DEBUG_CONSOLE
434 if((address - BASE_ADDRESS) == 0)
435 {
436 DBGConsole_Msg( 0, "Cache coverage address is overlapping" );
437 return true;
438 }
439#endif
440 u32 first_entry( AddressToIndex( address ) );
441 u32 last_entry( AddressToIndex( address + len ) );
442
443 // Mark all entries as true
444 for( u32 i = first_entry; i <= last_entry && i < NUM_MEM_USAGE_ENTRIES; ++i )
445 {
446 if( mCacheCoverage[ i ] )
447 return true;
448 }
449
450 return false;
451}
452
453//*************************************************************************************
454//

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected