fix LP64 + gcc4
This commit is contained in:
parent
b4623aff1d
commit
80c825b486
15
emulators/vba/patches/patch-src_sdl_debugger_cpp
Normal file
15
emulators/vba/patches/patch-src_sdl_debugger_cpp
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-src_sdl_debugger_cpp,v 1.1 2010/06/07 15:44:58 espie Exp $
|
||||
--- src/sdl/debugger.cpp.orig Mon Jun 7 17:25:39 2010
|
||||
+++ src/sdl/debugger.cpp Mon Jun 7 17:40:21 2010
|
||||
@@ -950,9 +950,9 @@ void debuggerBreakOnWrite(u32 *mem, u32 oldvalue, u32
|
||||
{
|
||||
u32 address = 0;
|
||||
if(mem >= (u32*)&workRAM[0] && mem <= (u32*)&workRAM[0x3ffff])
|
||||
- address = 0x2000000 + ((u32)mem - (u32)&workRAM[0]);
|
||||
+ address = 0x2000000 + ((u64)mem - (u64)&workRAM[0]);
|
||||
else
|
||||
- address = 0x3000000 + ((u32)mem - (u32)&internalRAM[0]);
|
||||
+ address = 0x3000000 + ((u64)mem - (u64)&internalRAM[0]);
|
||||
|
||||
if(size == 2)
|
||||
printf("Breakpoint (on write) address %08x old:%08x new:%08x\n",
|
Loading…
Reference in New Issue
Block a user