Remove processor dependency on XThread for breakpoints

This commit is contained in:
Dr. Chat
2015-11-28 13:12:01 -06:00
committed by Ben Vanik
parent 666f5543a8
commit 42c657c40a
3 changed files with 13 additions and 5 deletions

View File

@@ -27,7 +27,6 @@
#include "xenia/cpu/thread_state.h"
#include "xenia/cpu/xex_module.h"
#include "xenia/debug/debugger.h"
#include "xenia/kernel/xthread.h"
// TODO(benvanik): based on compiler support
#include "xenia/cpu/backend/x64/x64_backend.h"
@@ -454,9 +453,7 @@ bool Processor::BreakpointHit(uint32_t address, uint64_t host_pc) {
if (bp) {
bp->Hit(host_pc);
// TODO: Remove dependency on XThread for suspending ourselves
kernel::XThread::GetCurrentThread()->Suspend();
xe::threading::Thread::GetCurrentThread()->Suspend();
return true;
}