[VM][J3100][DEBUGGER][EMU] Some functions at debugger.cpp moved (and modified) to emu.cpp. This workaround needed by libCSPcommon .
# i86.cpp
rp5c01.cpp
)
-set(FLAG_USE_I86 ON)
+set(FLAG_USE_I86 OFF)
elseif(BUILD_J3100SS)
set(EXEC_TARGET emuj3100ss)
set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/j3100ss.qrc)
# i86.cpp
rp5c01.cpp
)
-set(FLAG_USE_I86 ON)
+set(FLAG_USE_I86 OFF)
elseif(BUILD_J3100SS)
set(EXEC_TARGET emuj3100ss)
set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/j3100ss.qrc)
set(WITH_MOUSE ON)
set(VMFILES_BASE
-# i86.cpp
+ i286.cpp
io.cpp
memory.cpp
event.cpp
upd765a.cpp
sn76489an.cpp
)
-set(FLAG_USE_I86 ON)
+set(FLAG_USE_I86 OFF)
set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger")
include(detect_target_cpu)
now_debugging = false;
}
}
-
+// Some functions move to emu.cpp . 20190221 K.O.
bool EMU::is_debugger_enabled(int cpu_index)
{
return (vm->get_cpu(cpu_index) != NULL && vm->get_cpu(cpu_index)->get_debugger() != NULL);
}
-
-void EMU::start_waiting_in_debugger()
-{
- now_waiting_in_debugger = true;
- osd->mute_sound();
- osd->start_waiting_in_debugger();
-}
-
-void EMU::finish_waiting_in_debugger()
-{
- osd->finish_waiting_in_debugger();
- now_waiting_in_debugger = false;
-}
-
-void EMU::process_waiting_in_debugger()
-{
- osd->process_waiting_in_debugger();
- osd->sleep(10);
-}
-
#endif
#endif
}
+
+
#ifdef OSD_QT
EmuThreadClass *EMU::get_parent_handler()
{
}
#endif
+// ---------------------------------------------------------------------------
+// debugger (some functions needed by libCSPcommon_vm 20190221 K.O)
+// ---------------------------------------------------------------------------
+
+void EMU::start_waiting_in_debugger()
+{
+#ifdef USE_DEBUGGER
+ now_waiting_in_debugger = true;
+#endif
+ osd->mute_sound();
+#ifdef USE_DEBUGGER
+ osd->start_waiting_in_debugger();
+#endif
+}
+
+void EMU::finish_waiting_in_debugger()
+{
+#ifdef USE_DEBUGGER
+ osd->finish_waiting_in_debugger();
+ now_waiting_in_debugger = false;
+#endif
+}
+
+void EMU::process_waiting_in_debugger()
+{
+#ifdef USE_DEBUGGER
+ osd->process_waiting_in_debugger();
+#else
+ osd->sleep(10);
+#endif
+}
+
// ----------------------------------------------------------------------------
// debug log
// ----------------------------------------------------------------------------
#ifdef USE_DEBUGGER
void open_debugger(int cpu_index);
void close_debugger();
- bool is_debugger_enabled(int cpu_index);
bool now_debugging;
debugger_thread_t debugger_thread_param;
+ bool is_debugger_enabled(int cpu_index);
#if defined(OSD_QT)
pthread_t debugger_thread_id;
CSP_Debugger *hDebugger;