From c7b853d689b5df05d6ebca82b471625a81bbb9bf Mon Sep 17 00:00:00 2001 From: Ville Linde Date: Sun, 18 Dec 2016 21:14:47 +0200 Subject: [PATCH] mb86235: disable recompiler for now (nw) --- src/devices/cpu/mb86235/mb86235.cpp | 20 ++++++++++++++++++++ src/mame/drivers/model2.cpp | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/mb86235/mb86235.cpp b/src/devices/cpu/mb86235/mb86235.cpp index eb589c83d13..8dd67ab83c5 100644 --- a/src/devices/cpu/mb86235/mb86235.cpp +++ b/src/devices/cpu/mb86235/mb86235.cpp @@ -17,6 +17,8 @@ #include "mb86235fe.h" +#define ENABLE_DRC 0 + #define CACHE_SIZE (1 * 1024 * 1024) #define COMPILE_BACKWARDS_BYTES 128 @@ -42,7 +44,11 @@ ADDRESS_MAP_END /* Execute cycles */ void mb86235_device::execute_run() { +#if ENABLE_DRC run_drc(); +#else + m_core->icount = 0; +#endif } @@ -227,6 +233,7 @@ offs_t mb86235_device::disasm_disassemble(std::ostream &stream, offs_t pc, const void mb86235_device::fifoin_w(uint64_t data) { +#if ENABLE_DRC if (m_core->fifoin.num >= FIFOIN_SIZE) { fatalerror("fifoin_w: pushing to full fifo"); @@ -239,19 +246,32 @@ void mb86235_device::fifoin_w(uint64_t data) m_core->fifoin.wpos++; m_core->fifoin.wpos &= FIFOIN_SIZE-1; m_core->fifoin.num++; +#endif } bool mb86235_device::is_fifoin_full() { +#if ENABLE_DRC return m_core->fifoin.num >= FIFOIN_SIZE; +#else + return false; +#endif } uint64_t mb86235_device::fifoout0_r() { +#if ENABLE_DRC fatalerror("fifoout0_r"); +#else + return 0; +#endif } bool mb86235_device::is_fifoout0_empty() { +#if ENABLE_DRC return m_core->fifoout0.num == 0; +#else + return false; +#endif } \ No newline at end of file diff --git a/src/mame/drivers/model2.cpp b/src/mame/drivers/model2.cpp index 82d693dfca4..0849e185cc3 100644 --- a/src/mame/drivers/model2.cpp +++ b/src/mame/drivers/model2.cpp @@ -773,7 +773,7 @@ READ32_MEMBER(model2_state::copro_fifo_r) else { // TODO - printf("FIFO OUT read\n"); +// printf("FIFO OUT read\n"); if (m_tgpx4->is_fifoout0_empty()) { /* Reading from empty FIFO causes the i960 to enter wait state */ @@ -833,7 +833,7 @@ WRITE32_MEMBER(model2_state::copro_fifo_w) if (m_tgpx4->is_fifoin_full()) printf("trying to push to full fifo!\n"); - printf("push %08X at %08X\n", data, space.device().safe_pc()); +// printf("push %08X at %08X\n", data, space.device().safe_pc()); m_tgpx4->fifoin_w(data); } }