From 77a83aa5e7de9331f0dfd552744a11b93f086468 Mon Sep 17 00:00:00 2001 From: cottonvibes Date: Fri, 12 Dec 2008 05:49:47 +0000 Subject: [PATCH] minor changes git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@416 a6443dda-0b58-4228-96e9-037be469359c --- pcsx2/x86/iFPU.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcsx2/x86/iFPU.c b/pcsx2/x86/iFPU.c index ee7859a226..0c9e9318d1 100644 --- a/pcsx2/x86/iFPU.c +++ b/pcsx2/x86/iFPU.c @@ -784,7 +784,7 @@ void recC_EQ_xmm(int info) default: SysPrintf("recC_EQ_xmm: Default\n"); tempReg = _allocX86reg(-1, X86TYPE_TEMP, 0, 0); - if (tempReg == -1) {SysPrintf("FPU: DIV Allocation Error!\n"); tempReg = EAX;} + if (tempReg <= 0) {SysPrintf("FPU: DIV Allocation Error!\n"); tempReg = EAX;} MOV32MtoR(tempReg, (uptr)&fpuRegs.fpr[_Fs_]); CMP32MtoR(tempReg, (uptr)&fpuRegs.fpr[_Ft_]); @@ -795,7 +795,7 @@ void recC_EQ_xmm(int info) OR32ItoM((uptr)&fpuRegs.fprc[31], FPUflagC); x86SetJ8(j8Ptr[1]); - _freeX86reg(tempReg); + if (tempReg >= 0) _freeX86reg(tempReg); return; } @@ -941,7 +941,7 @@ void recC_LT_xmm(int info) default: SysPrintf("recC_LT_xmm: Default\n"); tempReg = _allocX86reg(-1, X86TYPE_TEMP, 0, 0); - if (tempReg == -1) {SysPrintf("FPU: DIV Allocation Error!\n"); tempReg = EAX;} + if (tempReg <= 0) {SysPrintf("FPU: DIV Allocation Error!\n"); tempReg = EAX;} MOV32MtoR(tempReg, (uptr)&fpuRegs.fpr[_Fs_]); CMP32MtoR(tempReg, (uptr)&fpuRegs.fpr[_Ft_]); @@ -952,7 +952,7 @@ void recC_LT_xmm(int info) OR32ItoM((uptr)&fpuRegs.fprc[31], FPUflagC); x86SetJ8(j8Ptr[1]); - _freeX86reg(tempReg); + if (tempReg >= 0) _freeX86reg(tempReg); return; }