mirror of https://github.com/stella-emu/stella.git
added option to enable thumb cycle counting via emulated ROM
This commit is contained in:
parent
02e35daa3c
commit
40ba8969ea
|
@ -510,7 +510,6 @@ void Thumbulator::write32(uInt32 addr, uInt32 data)
|
||||||
mamcr = static_cast<MamModeType>(data);
|
mamcr = static_cast<MamModeType>(data);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -760,6 +759,11 @@ uInt32 Thumbulator::read32(uInt32 addr)
|
||||||
case 0xE000E018:
|
case 0xE000E018:
|
||||||
data = systick_count;
|
data = systick_count;
|
||||||
return data;
|
return data;
|
||||||
|
#ifdef THUMB_CYCLE_COUNT
|
||||||
|
case 0xE01FC100: // APBDIV
|
||||||
|
_countCycles = true; // enabe cycle counting
|
||||||
|
return 1; // random value
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef UNSAFE_OPTIMIZATIONS
|
#ifndef UNSAFE_OPTIMIZATIONS
|
||||||
case 0xE000E01C:
|
case 0xE000E01C:
|
||||||
|
|
Loading…
Reference in New Issue