114 |
|
|
115 |
|
#if REAL_ADDRESSING |
116 |
|
const uintptr MEMBaseDiff = 0; |
117 |
< |
#define do_get_real_address(a) ((uae_u8 *)(a)) |
118 |
< |
#define do_get_virtual_address(a) ((uae_u32)(a)) |
119 |
< |
#endif /* REAL_ADDRESSING */ |
120 |
< |
|
117 |
> |
#endif |
118 |
|
#if DIRECT_ADDRESSING |
119 |
|
extern uintptr MEMBaseDiff; |
120 |
< |
#define do_get_real_address(a) ((uae_u8 *)(a) + MEMBaseDiff) |
121 |
< |
#define do_get_virtual_address(a) ((uae_u32)(a) - MEMBaseDiff) |
122 |
< |
#endif /* DIRECT_ADDRESSING */ |
120 |
> |
#endif |
121 |
> |
|
122 |
> |
static __inline__ uae_u8 *do_get_real_address(uaecptr addr) |
123 |
> |
{ |
124 |
> |
return (uae_u8 *)MEMBaseDiff + addr; |
125 |
> |
} |
126 |
> |
static __inline__ uae_u32 do_get_virtual_address(uae_u8 *addr) |
127 |
> |
{ |
128 |
> |
return (uintptr)addr - MEMBaseDiff; |
129 |
> |
} |
130 |
|
|
131 |
|
#if REAL_ADDRESSING || DIRECT_ADDRESSING |
132 |
|
static __inline__ uae_u32 get_long(uaecptr addr) |