Previous 199869 Revisions Next

r31188 Friday 4th July, 2014 at 15:57:16 UTC by R. Belmont
Give 32x fastram.  Doesn't help at all, framebuffer writes through the memory system and high sync are too strong. (nw)
[src/mess/machine]mega32x.c mega32x.h

trunk/src/mess/machine/mega32x.c
r31187r31188
208208      m_slave_cpu(*this, "32x_slave_sh2"),
209209      m_lch_pwm(*this, "lch_pwm"),
210210      m_rch_pwm(*this, "rch_pwm"),
211      m_sh2_shared(*this, "sh2_shared"),
211212      m_palette(*this)
212213{
213214}
r31187r31188
19241925   m_master_cpu->sh2drc_set_options(SH2DRC_COMPATIBLE_OPTIONS);
19251926   m_slave_cpu->sh2drc_set_options(SH2DRC_COMPATIBLE_OPTIONS);
19261927
1928   UINT32 *cart = (UINT32 *)memregion(":gamecart_sh2")->base();
19271929
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
19281938// install these now, otherwise we'll get the following (incorrect) warnings on startup..
19291939//   SH-2 device ':sega32x:32x_slave_sh2': program space memory map entry 0-3FFF references non-existant region ':slave'
19301940//   SH-2 device ':sega32x:32x_master_sh2': program space memory map entry 0-3FFF references non-existant region ':master'
trunk/src/mess/machine/mega32x.h
r31187r31188
3636   required_device<dac_device> m_lch_pwm;
3737   required_device<dac_device> m_rch_pwm;
3838
39   required_shared_ptr<UINT32> m_sh2_shared;
40
3941   void pause_cpu();
4042
4143   // set some variables at start, depending on region (shall be moved to a device interface?)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team