From 9cc5dfa7a3e006e8b229284380118e534d0e8fce Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Wed, 31 Mar 2010 21:36:06 +0000 Subject: [PATCH] Disable throwing exceptions on a vtlb miss. In some rare cases this makes games continue when they'd crash otherwise. We'll have to see if proper exception handling fixes it in a better way. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2801 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/vtlb.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/vtlb.cpp b/pcsx2/vtlb.cpp index 120a8f5b07..89e9059fa7 100644 --- a/pcsx2/vtlb.cpp +++ b/pcsx2/vtlb.cpp @@ -231,11 +231,13 @@ static const char* _getModeStr( u32 mode ) } // Generates a tlbMiss Exception +// Note: Don't throw exceptions yet, they cause a crash when otherwise +// there would be a (slight) chance the game continues (rama). static __forceinline void vtlb_Miss(u32 addr,u32 mode) { Console.Error( "vtlb miss : addr 0x%X, mode %d [%s]", addr, mode, _getModeStr(mode) ); //verify(false); - throw R5900Exception::TLBMiss( addr, !!mode ); + //throw R5900Exception::TLBMiss( addr, !!mode ); } // Just dies a horrible death for now.