From 148c40554b7c90af3b42a5b5159f3c69756a93ac Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Mon, 25 May 2015 12:28:32 -0700 Subject: [PATCH] Adding vmsum4fp128 test. --- src/xenia/cpu/frontend/test/instr_vmsum4fp128.s | 8 ++++++++ src/xenia/cpu/thread_state.cc | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 src/xenia/cpu/frontend/test/instr_vmsum4fp128.s diff --git a/src/xenia/cpu/frontend/test/instr_vmsum4fp128.s b/src/xenia/cpu/frontend/test/instr_vmsum4fp128.s new file mode 100644 index 000000000..4243dd057 --- /dev/null +++ b/src/xenia/cpu/frontend/test/instr_vmsum4fp128.s @@ -0,0 +1,8 @@ +test_vmsum4fp128_1: + #_ REGISTER_IN v3 [3f800000, 3fc00000, 3f8ccccd, 3ff33333] + #_ REGISTER_IN v4 [40000000, 40700000, 4013d70a, 40b051eb] + vmsum4fp128 v5, v3, v4 + blr + #_ REGISTER_OUT v3 [3f800000, 3fc00000, 3f8ccccd, 3ff33333] + #_ REGISTER_OUT v4 [40000000, 40700000, 4013d70a, 40b051eb] + #_ REGISTER_OUT v5 [41A5147B, 41A5147B, 41A5147B, 41A5147B] diff --git a/src/xenia/cpu/thread_state.cc b/src/xenia/cpu/thread_state.cc index 0e2b62097..9ff61221a 100644 --- a/src/xenia/cpu/thread_state.cc +++ b/src/xenia/cpu/thread_state.cc @@ -105,11 +105,15 @@ ThreadState::ThreadState(Processor* processor, uint32_t thread_id, context_->r[1] = stack_base_; context_->r[13] = pcr_address_; - processor_->debugger()->OnThreadCreated(this); + if (processor_->debugger()) { + processor_->debugger()->OnThreadCreated(this); + } } ThreadState::~ThreadState() { - processor_->debugger()->OnThreadDestroyed(this); + if (processor_->debugger()) { + processor_->debugger()->OnThreadDestroyed(this); + } if (backend_data_) { processor_->backend()->FreeThreadData(backend_data_);