mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-12-04 03:43:35 +01:00
General emulator memory work, regarding my new policy that most (or all) cpu and hardware registers should be standard globals, as it makes our lives a lot easier in general (and their memory footprint is small so it won't adversely affect the virtual memory availability of the host operating systems). Details:
* Removed the hacky g_pVU1 pointer, which required VU1 cpu registers to be part of VU0. Replaced it with a standard VU1 variable (mimics all other CPU registers, which are standard static vars). We were using translation functions/tables for all VU0 memory operations anyway, so this was a no-brainer. * Removed code from microVU that was only there to help deal with the fact that g_pVU1 was annoying. * Turned eeMem->HW into a static global array eeHw [64k]. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3692 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
1 parent
28dc7cfe69
commit
bda94b16cd
40 files changed
+546
-480
No files matched your search
+3
-1
@@ -602,10 +602,12 @@ protected:
|
||||
void OnPageFaultEvent( const PageFaultInfo& info, bool& handled );
|
||||
};
|
||||
|
||||
mmap_PageFaultHandler mmap_faultHandler;
|
||||
static mmap_PageFaultHandler mmap_faultHandler;
|
||||
|
||||
EEVM_MemoryAllocMess* eeMem = NULL;
|
||||
|
||||
__pagealigned u8 eeHw[Ps2MemSize::Hardware];
|
||||
|
||||
void memAlloc()
|
||||
{
|
||||
if( eeMem == NULL )
|
||||
|
||||
Reference in new issue
Block a user