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

Function memwatch_reset

src/debug.cpp:4811–4827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4809#define MEMWATCH_STORE_SLOTS 32
4810
4811static void memwatch_reset (void)
4812{
4813 for (int i = 0; i < membank_total; i++) {
4814 addrbank *ab = debug_mem_banks[i];
4815 if (!ab)
4816 continue;
4817 map_banks_quick (ab, i, 1, 1);
4818 }
4819 for (int i = 0; membank_stores[i].addr; i++) {
4820 struct membank_store *ms = &membank_stores[i];
4821 /* name was allocated in memwatch_remap */
4822 xfree ((char*)ms->newbank.name);
4823 memset (ms, 0, sizeof (struct membank_store));
4824 ms->addr = NULL;
4825 }
4826 memset (debug_mem_banks, 0, membank_total * sizeof (addrbank*));
4827}
4828
4829static void memwatch_remap (uaecptr addr)
4830{

Callers 2

memwatch_setupFunction · 0.85
deinitialize_memwatchFunction · 0.85

Calls 1

map_banks_quickFunction · 0.85

Tested by

no test coverage detected