a2065: compilation fix

This commit is contained in:
Frode Solheim 2014-07-29 21:52:07 +02:00
parent 9a5f6f5e44
commit 35e759888b
2 changed files with 11 additions and 9 deletions

View File

@ -828,7 +828,14 @@ static void REGPARAM2 a2065_lput (uaecptr addr, uae_u32 l)
a2065_wput (addr + 2, l);
}
extern addrbank a2065_bank;
DECLARE_MEMORY_FUNCTIONS(a2065);
static addrbank a2065_bank = {
a2065_lget, a2065_wget, a2065_bget,
a2065_lput, a2065_wput, a2065_bput,
default_xlate, default_check, NULL, _T("A2065 Z2 Ethernet"),
a2065_lgeti, a2065_wgeti, ABFLAG_IO
};
static void REGPARAM2 a2065_bput (uaecptr addr, uae_u32 b)
{
@ -877,13 +884,6 @@ static uae_u32 REGPARAM2 a2065_lgeti (uaecptr addr)
return v;
}
static addrbank a2065_bank = {
a2065_lget, a2065_wget, a2065_bget,
a2065_lput, a2065_wput, a2065_bput,
default_xlate, default_check, NULL, _T("A2065 Z2 Ethernet"),
a2065_lgeti, a2065_wgeti, ABFLAG_IO
};
static addrbank *a2065_config (void)
{
memset (config, 0xff, sizeof config);

View File

@ -89,7 +89,7 @@ typedef struct {
ourselves. This holds the memory address where the start of memory is
for this particular bank. */
uae_u8 *baseaddr;
TCHAR *name;
const TCHAR *name;
/* for instruction opcode/operand fetches */
mem_get_func lgeti, wgeti;
int flags;
@ -262,7 +262,9 @@ static uae_u8 *REGPARAM2 name ## _xlate (uaecptr addr) \
#define DECLARE_MEMORY_FUNCTIONS(name) \
static uae_u32 REGPARAM3 name ## _lget (uaecptr) REGPARAM; \
static uae_u32 REGPARAM3 name ## _lgeti (uaecptr) REGPARAM; \
static uae_u32 REGPARAM3 name ## _wget (uaecptr) REGPARAM; \
static uae_u32 REGPARAM3 name ## _wgeti (uaecptr) REGPARAM; \
static uae_u32 REGPARAM3 name ## _bget (uaecptr) REGPARAM; \
static void REGPARAM3 name ## _lput (uaecptr, uae_u32) REGPARAM; \
static void REGPARAM3 name ## _wput (uaecptr, uae_u32) REGPARAM; \