summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-10-24 15:14:32 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-10-24 15:14:32 +0000
commit77194d28927aec3bbf6792fdcab1e0294b43b46d (patch)
tree690f4e79dc5d20aacc7330a457e45e37fd125905 /libpcsxcore
parent97916fe5400529ee0103e47a51ac640dc7796721 (diff)
downloadpcsxr-77194d28927aec3bbf6792fdcab1e0294b43b46d.tar.gz
Use 32-bit jump instructions for COP2/GTE. (Issue #8567)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@80727 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/ix86_64/iR3000A-64.c4
-rw-r--r--libpcsxcore/ix86_64/ix86-64.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/libpcsxcore/ix86_64/iR3000A-64.c b/libpcsxcore/ix86_64/iR3000A-64.c
index b1b5f9e1..26188c0c 100644
--- a/libpcsxcore/ix86_64/iR3000A-64.c
+++ b/libpcsxcore/ix86_64/iR3000A-64.c
@@ -527,11 +527,11 @@ static void recCOP0() {
static void recCOP2() {
MOV32MtoR(EAX, (uptr)&psxRegs.CP0.n.Status);
AND32ItoR(EAX, 0x40000000);
- j8Ptr[31] = JZ8(0);
+ j32Ptr[31] = JZ32(0);
recCP2[_Funct_]();
- x86SetJ8(j8Ptr[31]);
+ x86SetJ32(j32Ptr[31]);
}
#endif
diff --git a/libpcsxcore/ix86_64/ix86-64.c b/libpcsxcore/ix86_64/ix86-64.c
index a5c1d6c0..c3cd45b0 100644
--- a/libpcsxcore/ix86_64/ix86-64.c
+++ b/libpcsxcore/ix86_64/ix86-64.c
@@ -230,8 +230,8 @@ void x86SetJ8( u8* j8 )
u32 jump = ( x86Ptr - (s8*)j8 ) - 1;
if ( jump > 0x7f ) {
+ assert(0);
SysPrintf( "j8 greater than 0x7f!!\n" );
- //assert(0);
}
*j8 = (u8)jump;
}