From e65af663ebb44b2d51cdc41d1be5188d3108c41b Mon Sep 17 00:00:00 2001 From: hap Date: Tue, 20 Feb 2024 20:26:21 +0100 Subject: h8_sci: set logerror verbosity to 0 (performance issue in gk2000), mhavoc, remove timer_set --- src/devices/cpu/h8/h8_sci.cpp | 14 +++++++------- src/mame/atari/mhavoc.cpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/devices/cpu/h8/h8_sci.cpp b/src/devices/cpu/h8/h8_sci.cpp index ecd613316d8..e5af601bae1 100644 --- a/src/devices/cpu/h8/h8_sci.cpp +++ b/src/devices/cpu/h8/h8_sci.cpp @@ -9,10 +9,10 @@ // Verbosity level // 0 = no messages -// 1 = transmitted/recieved bytes, reception errors and clock setup +// 1 = transmitted/received bytes, reception errors and clock setup // 2 = everything but status register reads // 3 = everything -static constexpr int V = 1; +static constexpr int V = 0; DEFINE_DEVICE_TYPE(H8_SCI, h8_sci_device, "h8_sci", "H8 Serial Communications Interface") @@ -571,7 +571,7 @@ void h8_sci_device::clock_start(int mode) m_rx_clock_base = machine().time().as_ticks(m_cpu->clock()); m_cpu->internal_update(); break; - + case clock_mode_t::EXTERNAL_RATE_ASYNC: if(V>=1) logerror("Simulating external clock async\n"); if(mode == CLK_TX) @@ -583,21 +583,21 @@ void h8_sci_device::clock_start(int mode) case clock_mode_t::EXTERNAL_RATE_SYNC: if(V>=1) logerror("Simulating external clock sync\n"); - if(mode == CLK_TX) + if(mode == CLK_TX) m_tx_clock_base = u64(m_cpu->total_cycles()*2*m_internal_to_external_ratio); else m_rx_clock_base = u64(m_cpu->total_cycles()*2*m_internal_to_external_ratio); m_cpu->internal_update(); break; - + case clock_mode_t::EXTERNAL_ASYNC: if(V>=1) logerror("Waiting for external clock async\n"); - if(mode == CLK_TX) + if(mode == CLK_TX) m_tx_ext_clock_counter = 15; else m_rx_ext_clock_counter = 15; break; - + case clock_mode_t::EXTERNAL_SYNC: if(V>=1) logerror("Waiting for external clock sync\n"); break; diff --git a/src/mame/atari/mhavoc.cpp b/src/mame/atari/mhavoc.cpp index 0b015610c6b..b1764b07f93 100644 --- a/src/mame/atari/mhavoc.cpp +++ b/src/mame/atari/mhavoc.cpp @@ -486,7 +486,7 @@ TIMER_CALLBACK_MEMBER(mhavoc_state::delayed_gamma_w) m_gamma->pulse_input_line(INPUT_LINE_NMI, attotime::zero); // the sound CPU needs to reply in 250 microseconds (according to Neil Bradley) - machine().scheduler().timer_set(attotime::from_usec(250), timer_expired_delegate()); + machine().scheduler().perfect_quantum(attotime::from_usec(250)); } -- cgit v1.2.3