diff options
author | Phil Bennett <philipjbennett@users.noreply.github.com> | 2013-01-19 12:25:09 +0000 |
---|---|---|
committer | Phil Bennett <philipjbennett@users.noreply.github.com> | 2013-01-19 12:25:09 +0000 |
commit | 444777967b206fc3ca9badec3028198394d30da2 (patch) | |
tree | 341ea7de1b13e015ea763fbcd7d5542412e54451 /src/mame/drivers/jaguar.c | |
parent | 7a2733507797e1a2e8a71449722192cce2bfd77c (diff) |
Modernised the R3000 core: [Phil Bennett]
* The following variants are supported: R3041, R3051, R3052, R3071 and R3081
* Endianness is now specified by MCFG_R3000_ENDIANNESS() (default is big-endian)
* Removed configuration struct. Cache sizes and FPU availability are now determined from the CPU type
* Added state saving
* Added BrCond input callbacks
Diffstat (limited to 'src/mame/drivers/jaguar.c')
-rw-r--r-- | src/mame/drivers/jaguar.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/mame/drivers/jaguar.c b/src/mame/drivers/jaguar.c index 5579fe7419a..c4b46cb61b7 100644 --- a/src/mame/drivers/jaguar.c +++ b/src/mame/drivers/jaguar.c @@ -1545,15 +1545,7 @@ INPUT_PORTS_END * *************************************/ -static const r3000_cpu_core r3000_config = -{ - 0, /* 1 if we have an FPU, 0 otherwise */ - 4096, /* code cache size */ - 4096 /* data cache size */ -}; - - -static const jaguar_cpu_config gpu_config = + static const jaguar_cpu_config gpu_config = { &jaguar_state::gpu_cpu_int }; @@ -1567,8 +1559,8 @@ static const jaguar_cpu_config dsp_config = static MACHINE_CONFIG_START( cojagr3k, jaguar_state ) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", R3041BE, R3000_CLOCK) - MCFG_CPU_CONFIG(r3000_config) + MCFG_CPU_ADD("maincpu", R3041, R3000_CLOCK) + MCFG_R3000_ENDIANNESS(ENDIANNESS_BIG) MCFG_CPU_PROGRAM_MAP(r3000_map) MCFG_CPU_ADD("gpu", JAGUARGPU, COJAG_CLOCK/2) @@ -2263,7 +2255,7 @@ void jaguar_state::cojag_common_init(UINT16 gpu_jump_offs, UINT16 spin_pc) m_is_cojag = true; /* copy over the ROM */ - m_is_r3000 = (m_main_cpu->type() == R3041BE); + m_is_r3000 = (m_main_cpu->type() == R3041); /* install synchronization hooks for GPU */ if (m_is_r3000) |