improve debug build speed by 20% when not using cheats
This commit is contained in:
parent
4d2c65aeee
commit
cbaeb7c3be
|
@ -2867,7 +2867,9 @@ static void tester(void) {
|
|||
int armExecute()
|
||||
{
|
||||
do {
|
||||
cpuMasterCodeCheck();
|
||||
if( cheatsEnabled ) {
|
||||
cpuMasterCodeCheck();
|
||||
}
|
||||
|
||||
if ((armNextPC & 0x0803FFFF) == 0x08020000)
|
||||
busPrefetchCount = 0x100;
|
||||
|
|
|
@ -2295,7 +2295,9 @@ static insnfunc_t thumbInsnTable[1024] = {
|
|||
int thumbExecute()
|
||||
{
|
||||
do {
|
||||
cpuMasterCodeCheck();
|
||||
if( cheatsEnabled ) {
|
||||
cpuMasterCodeCheck();
|
||||
}
|
||||
|
||||
//if ((armNextPC & 0x0803FFFF) == 0x08020000)
|
||||
// busPrefetchCount=0x100;
|
||||
|
|
|
@ -289,7 +289,7 @@ inline int codeTicksAccessSeq32(u32 address) // ARM SEQ
|
|||
// Emulates the Cheat System (m) code
|
||||
inline void cpuMasterCodeCheck()
|
||||
{
|
||||
if((cheatsEnabled) && (mastercode) && (mastercode == armNextPC))
|
||||
if((mastercode) && (mastercode == armNextPC))
|
||||
{
|
||||
u32 joy = 0;
|
||||
if(systemReadJoypads())
|
||||
|
|
Loading…
Reference in New Issue