MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / deinitialize_memwatch

Function deinitialize_memwatch

src/debug.cpp:4915–4934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4913}
4914
4915static int deinitialize_memwatch (void)
4916{
4917 int oldmode;
4918
4919 if (!memwatch_enabled && !mmu_enabled)
4920 return -1;
4921 memwatch_reset ();
4922 oldmode = mmu_enabled ? 1 : 0;
4923 xfree (debug_mem_banks);
4924 debug_mem_banks = NULL;
4925 xfree (debug_mem_area);
4926 debug_mem_area = NULL;
4927 xfree (membank_stores);
4928 membank_stores = NULL;
4929 memwatch_enabled = 0;
4930 mmu_enabled = 0;
4931 xfree (illgdebug);
4932 illgdebug = 0;
4933 return oldmode;
4934}
4935
4936static void initialize_memwatch (int mode)
4937{

Callers 4

initialize_memwatchFunction · 0.85
debug_bankchangeFunction · 0.85
memwatchFunction · 0.85
mmu_initFunction · 0.85

Calls 1

memwatch_resetFunction · 0.85

Tested by

no test coverage detected