small problem that always bugged me..

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@122 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
ramapcsx2 2008-09-15 01:23:40 +00:00 committed by Gregory Hainaut
parent 6f1fa0ec7a
commit 79d632c69b
1 changed files with 5 additions and 2 deletions

View File

@ -903,8 +903,11 @@ static VuFunctionHeader* SuperVURecompileProgram(u32 startpc, int vuindex)
}
static int _recbranchAddr(u32 vucode) {
u32 bpc = pc + (_Imm11_ << 3);
if (bpc < 0) {
//u32 bpc = pc + (_Imm11_ << 3);
int bpc = pc + (_Imm11_ << 3);
if (bpc < 0) { //how can u32 be < 0? (rama)
SysPrintf("Warning: bpc < 0 ( %d ), this should not happen \n", bpc);
bpc = pc + (_UImm11_ << 3);
}
bpc &= (s_MemSize[s_vu]-1);