mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-03-03 20:30:11 +00:00
- Experimental fixes for 64-bit addressing systems (e.g. Linux/ia64). The
cpu emulation almost work correctly. FP emulation seems totaly boguous.
This commit is contained in:
parent
3896344ca1
commit
cb59a85240
@ -114,15 +114,19 @@ extern void byteput(uaecptr addr, uae_u32 b);
|
||||
|
||||
#if REAL_ADDRESSING
|
||||
const uintptr MEMBaseDiff = 0;
|
||||
#define do_get_real_address(a) ((uae_u8 *)(a))
|
||||
#define do_get_virtual_address(a) ((uae_u32)(a))
|
||||
#endif /* REAL_ADDRESSING */
|
||||
|
||||
#endif
|
||||
#if DIRECT_ADDRESSING
|
||||
extern uintptr MEMBaseDiff;
|
||||
#define do_get_real_address(a) ((uae_u8 *)(a) + MEMBaseDiff)
|
||||
#define do_get_virtual_address(a) ((uae_u32)(a) - MEMBaseDiff)
|
||||
#endif /* DIRECT_ADDRESSING */
|
||||
#endif
|
||||
|
||||
static __inline__ uae_u8 *do_get_real_address(uaecptr addr)
|
||||
{
|
||||
return (uae_u8 *)MEMBaseDiff + addr;
|
||||
}
|
||||
static __inline__ uae_u32 do_get_virtual_address(uae_u8 *addr)
|
||||
{
|
||||
return (uintptr)addr - MEMBaseDiff;
|
||||
}
|
||||
|
||||
#if REAL_ADDRESSING || DIRECT_ADDRESSING
|
||||
static __inline__ uae_u32 get_long(uaecptr addr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user