From 1c898ad5f07d7089419f2d5d8c759140e328488b Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Sat, 26 Jun 2010 14:35:22 +0000 Subject: [PATCH] Since we're not using MMX registers to hold EE data in the recompilers anymore, we should be safe to exclude them from register saving / storing. Pretty big speedup in games with lots of GIF activity (Soul Calibur 3 goes from 40 to 48fps). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3314 96395faa-99c1-11dd-bbfe-3dabce05a288 --- common/src/x86emitter/tools.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/src/x86emitter/tools.cpp b/common/src/x86emitter/tools.cpp index 88d00c45f7..c8c692cea6 100644 --- a/common/src/x86emitter/tools.cpp +++ b/common/src/x86emitter/tools.cpp @@ -235,20 +235,21 @@ namespace XMMRegisters namespace Registers { + // MMX registers should not be needing freezes anymore (speedup!) __forceinline bool Saved() { - return (XMMRegisters::Saved() || MMXRegisters::Saved()); + return (XMMRegisters::Saved() /*|| MMXRegisters::Saved()*/ ); } __forceinline void Freeze() { XMMRegisters::Freeze(); - MMXRegisters::Freeze(); + //MMXRegisters::Freeze(); } __forceinline void Thaw() { XMMRegisters::Thaw(); - MMXRegisters::Thaw(); + //MMXRegisters::Thaw(); } }