improve debug build speed by 20% when not using cheats

This commit is contained in:
spacy51 2007-12-15 11:21:33 +00:00
parent 4d2c65aeee
commit cbaeb7c3be
3 changed files with 7 additions and 3 deletions

View File

@ -2867,7 +2867,9 @@ static void tester(void) {
int armExecute() int armExecute()
{ {
do { do {
cpuMasterCodeCheck(); if( cheatsEnabled ) {
cpuMasterCodeCheck();
}
if ((armNextPC & 0x0803FFFF) == 0x08020000) if ((armNextPC & 0x0803FFFF) == 0x08020000)
busPrefetchCount = 0x100; busPrefetchCount = 0x100;

View File

@ -2295,7 +2295,9 @@ static insnfunc_t thumbInsnTable[1024] = {
int thumbExecute() int thumbExecute()
{ {
do { do {
cpuMasterCodeCheck(); if( cheatsEnabled ) {
cpuMasterCodeCheck();
}
//if ((armNextPC & 0x0803FFFF) == 0x08020000) //if ((armNextPC & 0x0803FFFF) == 0x08020000)
// busPrefetchCount=0x100; // busPrefetchCount=0x100;

View File

@ -289,7 +289,7 @@ inline int codeTicksAccessSeq32(u32 address) // ARM SEQ
// Emulates the Cheat System (m) code // Emulates the Cheat System (m) code
inline void cpuMasterCodeCheck() inline void cpuMasterCodeCheck()
{ {
if((cheatsEnabled) && (mastercode) && (mastercode == armNextPC)) if((mastercode) && (mastercode == armNextPC))
{ {
u32 joy = 0; u32 joy = 0;
if(systemReadJoypads()) if(systemReadJoypads())