mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Changed return type of Find4GBBase() to u8*, since it really is a pointer (all callers were typecasting it to u8*).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@553 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -449,7 +449,7 @@ bool Init()
|
||||
#ifdef _M_X64
|
||||
//Then, in x64 mode where we have space, grab a 4GB virtual address space
|
||||
//TODO: grab 8GB and align, for easier debugging
|
||||
base = (u8*)MemArena::Find4GBBase();
|
||||
base = MemArena::Find4GBBase();
|
||||
//OK, we know where to find free space. Now grab it!
|
||||
|
||||
//Physical should be unmapped when not in "real mode"
|
||||
@ -478,7 +478,7 @@ bool Init()
|
||||
}
|
||||
#else
|
||||
// Do a poor mans version - just grab 1GB, possibly discontiguous, and use &0x3FFFFFFF as the mask whenever it is accessed.
|
||||
base = (u8*)MemArena::Find4GBBase();
|
||||
base = MemArena::Find4GBBase();
|
||||
if (!base) {
|
||||
PanicAlert("Failed to grab 1 GB of contiguous memory!\nDo you have an antivirus program or any other program\n"
|
||||
"that injects itself into every process, consuming address space?\nOr simply a bad graphics driver?\n\n"
|
||||
|
Reference in New Issue
Block a user