mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-12-03 19:33:33 +01:00
newHostVM branch: (now boots games!)
* EE and IOP recompilers are using the new RecompiledCodeReserve class. * PS2 main memory should typically be located at 0x20000000 (code still need some cleanups) VU0/VU1 recompilers will be implemented soon. git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3959 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
1 parent
01541f2c92
commit
bed33749b5
10 files changed
+99
-38
No files matched your search
+4
-3
@@ -582,7 +582,7 @@ protected:
|
||||
void OnPageFaultEvent( const PageFaultInfo& info, bool& handled );
|
||||
};
|
||||
|
||||
static mmap_PageFaultHandler mmap_faultHandler;
|
||||
static mmap_PageFaultHandler* mmap_faultHandler = NULL;
|
||||
|
||||
EEVM_MemoryAllocMess* eeMem = NULL;
|
||||
|
||||
@@ -596,12 +596,13 @@ void memAlloc()
|
||||
if( eeMem == NULL)
|
||||
throw Exception::OutOfMemory( L"memAlloc > failed to allocate PS2's base ram/rom/scratchpad." );
|
||||
|
||||
Source_PageFault.Add( mmap_faultHandler );
|
||||
pxAssume(Source_PageFault);
|
||||
mmap_faultHandler = new mmap_PageFaultHandler();
|
||||
}
|
||||
|
||||
void memShutdown()
|
||||
{
|
||||
Source_PageFault.Remove( mmap_faultHandler );
|
||||
safe_delete(mmap_faultHandler);
|
||||
|
||||
vtlb_free( eeMem, sizeof(*eeMem) );
|
||||
eeMem = NULL;
|
||||
|
||||
Reference in new issue
Block a user