trunk/src/mess/machine/mega32x.c
| r31187 | r31188 | |
| 208 | 208 | m_slave_cpu(*this, "32x_slave_sh2"), |
| 209 | 209 | m_lch_pwm(*this, "lch_pwm"), |
| 210 | 210 | m_rch_pwm(*this, "rch_pwm"), |
| 211 | m_sh2_shared(*this, "sh2_shared"), |
| 211 | 212 | m_palette(*this) |
| 212 | 213 | { |
| 213 | 214 | } |
| r31187 | r31188 | |
| 1924 | 1925 | m_master_cpu->sh2drc_set_options(SH2DRC_COMPATIBLE_OPTIONS); |
| 1925 | 1926 | m_slave_cpu->sh2drc_set_options(SH2DRC_COMPATIBLE_OPTIONS); |
| 1926 | 1927 | |
| 1928 | UINT32 *cart = (UINT32 *)memregion(":gamecart_sh2")->base(); |
| 1927 | 1929 | |
| 1930 | m_master_cpu->sh2drc_add_fastram(0x06000000, 0x0603ffff, 0, &m_sh2_shared[0]); |
| 1931 | m_master_cpu->sh2drc_add_fastram(0x02000000, 0x023fffff, 0, cart); |
| 1932 | m_master_cpu->sh2drc_add_fastram(0x22000000, 0x223fffff, 0, cart); |
| 1933 | m_slave_cpu->sh2drc_add_fastram(0x06000000, 0x0603ffff, 0, &m_sh2_shared[0]); |
| 1934 | m_slave_cpu->sh2drc_add_fastram(0x02000000, 0x023fffff, 0, cart); |
| 1935 | m_slave_cpu->sh2drc_add_fastram(0x22000000, 0x223fffff, 0, cart); |
| 1936 | |
| 1937 | |
| 1928 | 1938 | // install these now, otherwise we'll get the following (incorrect) warnings on startup.. |
| 1929 | 1939 | // SH-2 device ':sega32x:32x_slave_sh2': program space memory map entry 0-3FFF references non-existant region ':slave' |
| 1930 | 1940 | // SH-2 device ':sega32x:32x_master_sh2': program space memory map entry 0-3FFF references non-existant region ':master' |