Hack around Linux compilation issues for the moment.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3716 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2010-09-01 10:48:43 +00:00
parent a4155a2240
commit 1ded55f4cf
1 changed files with 10 additions and 2 deletions

View File

@ -214,10 +214,18 @@ static __ri void eBitWarning(mV) {
//------------------------------------------------------------------
// Cycles / Pipeline State / Early Exit from Execution
//------------------------------------------------------------------
#ifndef __LINUX__
__fi void optimizeReg(u8& rState) { rState = (rState==1) ? 0 : rState; }
__fi void calcCycles(u8& reg, u8 x) { reg = ((reg > x) ? (reg - x) : 0); }
__fi void tCycles(u8& dest, u8& src) { dest = aMax(dest, src); }
#else
// Fixme: I don't really feel like dealing with 'cannot bind packed field' errors right now,
// so Linux will use the old defines for the moment.
#define optimizeReg(rState) { rState = (rState==1) ? 0 : rState; }
#define calcCycles(reg, x) { reg = ((reg > x) ? (reg - x) : 0); }
#define tCycles(dest, src) { dest = aMax(dest, src); }
#endif
__fi void incP(mV) { mVU->p ^= 1; }
__fi void incQ(mV) { mVU->q ^= 1; }
@ -240,7 +248,7 @@ static void mVUoptimizePipeState(mV) {
mVUregs.r = 0; // There are no stalls on the R-reg, so its Safe to discard info
}
static void mVUincCycles(mV, int x) {
void mVUincCycles(mV, int x) {
mVUcycles += x;
for (int z = 31; z > 0; z--) {
calcCycles(mVUregs.VF[z].x, x);