From 77194d28927aec3bbf6792fdcab1e0294b43b46d Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Wed, 24 Oct 2012 15:14:32 +0000 Subject: 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 --- libpcsxcore/ix86_64/iR3000A-64.c | 4 ++-- libpcsxcore/ix86_64/ix86-64.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libpcsxcore') 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; } -- cgit v1.2.3