diff options
Diffstat (limited to 'src/emu/cpu/mips/r3000.c')
-rw-r--r-- | src/emu/cpu/mips/r3000.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/emu/cpu/mips/r3000.c b/src/emu/cpu/mips/r3000.c index 3f15bb8ed77..04dbcffda17 100644 --- a/src/emu/cpu/mips/r3000.c +++ b/src/emu/cpu/mips/r3000.c @@ -139,7 +139,7 @@ struct _r3000_state int hasfpu; device_irq_callback irq_callback; legacy_cpu_device *device; - const address_space *program; + address_space *program; /* endian-dependent load/store */ void (*lwl)(r3000_state *r3000, UINT32 op); @@ -187,19 +187,19 @@ static void lwr_le(r3000_state *r3000, UINT32 op); static void swl_le(r3000_state *r3000, UINT32 op); static void swr_le(r3000_state *r3000, UINT32 op); -static UINT8 readcache_be(const address_space *space, offs_t offset); -static UINT16 readcache_be_word(const address_space *space, offs_t offset); -static UINT32 readcache_be_dword(const address_space *space, offs_t offset); -static void writecache_be(const address_space *space, offs_t offset, UINT8 data); -static void writecache_be_word(const address_space *space, offs_t offset, UINT16 data); -static void writecache_be_dword(const address_space *space, offs_t offset, UINT32 data); +static UINT8 readcache_be(address_space *space, offs_t offset); +static UINT16 readcache_be_word(address_space *space, offs_t offset); +static UINT32 readcache_be_dword(address_space *space, offs_t offset); +static void writecache_be(address_space *space, offs_t offset, UINT8 data); +static void writecache_be_word(address_space *space, offs_t offset, UINT16 data); +static void writecache_be_dword(address_space *space, offs_t offset, UINT32 data); -static UINT8 readcache_le(const address_space *space, offs_t offset); -static UINT16 readcache_le_word(const address_space *space, offs_t offset); -static UINT32 readcache_le_dword(const address_space *space, offs_t offset); -static void writecache_le(const address_space *space, offs_t offset, UINT8 data); -static void writecache_le_word(const address_space *space, offs_t offset, UINT16 data); -static void writecache_le_dword(const address_space *space, offs_t offset, UINT32 data); +static UINT8 readcache_le(address_space *space, offs_t offset); +static UINT16 readcache_le_word(address_space *space, offs_t offset); +static UINT32 readcache_le_dword(address_space *space, offs_t offset); +static void writecache_le(address_space *space, offs_t offset, UINT8 data); +static void writecache_le_word(address_space *space, offs_t offset, UINT16 data); +static void writecache_le_dword(address_space *space, offs_t offset, UINT32 data); @@ -891,84 +891,84 @@ static CPU_EXECUTE( r3000 ) CACHE I/O ***************************************************************************/ -static UINT8 readcache_be(const address_space *space, offs_t offset) +static UINT8 readcache_be(address_space *space, offs_t offset) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; return (offset * 4 < r3000->cache_size) ? r3000->cache[BYTE4_XOR_BE(offset)] : 0xff; } -static UINT16 readcache_be_word(const address_space *space, offs_t offset) +static UINT16 readcache_be_word(address_space *space, offs_t offset) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; return (offset * 4 < r3000->cache_size) ? *(UINT16 *)&r3000->cache[WORD_XOR_BE(offset)] : 0xffff; } -static UINT32 readcache_be_dword(const address_space *space, offs_t offset) +static UINT32 readcache_be_dword(address_space *space, offs_t offset) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; return (offset * 4 < r3000->cache_size) ? *(UINT32 *)&r3000->cache[offset] : 0xffffffff; } -static void writecache_be(const address_space *space, offs_t offset, UINT8 data) +static void writecache_be(address_space *space, offs_t offset, UINT8 data) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; if (offset * 4 < r3000->cache_size) r3000->cache[BYTE4_XOR_BE(offset)] = data; } -static void writecache_be_word(const address_space *space, offs_t offset, UINT16 data) +static void writecache_be_word(address_space *space, offs_t offset, UINT16 data) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; if (offset * 4 < r3000->cache_size) *(UINT16 *)&r3000->cache[WORD_XOR_BE(offset)] = data; } -static void writecache_be_dword(const address_space *space, offs_t offset, UINT32 data) +static void writecache_be_dword(address_space *space, offs_t offset, UINT32 data) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; if (offset * 4 < r3000->cache_size) *(UINT32 *)&r3000->cache[offset] = data; } -static UINT8 readcache_le(const address_space *space, offs_t offset) +static UINT8 readcache_le(address_space *space, offs_t offset) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; return (offset * 4 < r3000->cache_size) ? r3000->cache[BYTE4_XOR_LE(offset)] : 0xff; } -static UINT16 readcache_le_word(const address_space *space, offs_t offset) +static UINT16 readcache_le_word(address_space *space, offs_t offset) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; return (offset * 4 < r3000->cache_size) ? *(UINT16 *)&r3000->cache[WORD_XOR_LE(offset)] : 0xffff; } -static UINT32 readcache_le_dword(const address_space *space, offs_t offset) +static UINT32 readcache_le_dword(address_space *space, offs_t offset) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; return (offset * 4 < r3000->cache_size) ? *(UINT32 *)&r3000->cache[offset] : 0xffffffff; } -static void writecache_le(const address_space *space, offs_t offset, UINT8 data) +static void writecache_le(address_space *space, offs_t offset, UINT8 data) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; if (offset * 4 < r3000->cache_size) r3000->cache[BYTE4_XOR_LE(offset)] = data; } -static void writecache_le_word(const address_space *space, offs_t offset, UINT16 data) +static void writecache_le_word(address_space *space, offs_t offset, UINT16 data) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; if (offset * 4 < r3000->cache_size) *(UINT16 *)&r3000->cache[WORD_XOR_LE(offset)] = data; } -static void writecache_le_dword(const address_space *space, offs_t offset, UINT32 data) +static void writecache_le_dword(address_space *space, offs_t offset, UINT32 data) { r3000_state *r3000 = get_safe_token(space->cpu); offset &= 0x1fffffff; |