From 420d4e43b684f3c2713428c2c67ffe81bdd759e2 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Fri, 15 May 2015 18:12:15 -0500 Subject: [PATCH] Increase audio worker thread and cpu interrupt thread stack size --- src/xenia/apu/audio_system.cc | 4 +--- src/xenia/cpu/processor.cc | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/xenia/apu/audio_system.cc b/src/xenia/apu/audio_system.cc index a683da636..8949173f9 100644 --- a/src/xenia/apu/audio_system.cc +++ b/src/xenia/apu/audio_system.cc @@ -90,7 +90,7 @@ X_STATUS AudioSystem::Setup() { registers_.next_context = 1; // Setup worker thread state. This lets us make calls into guest code. - thread_state_ = new ThreadState(emulator_->processor(), 0, 0, 16 * 1024, 0); + thread_state_ = new ThreadState(emulator_->processor(), 0, 0, 128 * 1024, 0); thread_state_->set_name("Audio Worker"); thread_block_ = memory()->SystemHeapAlloc(2048); thread_state_->context()->r[13] = thread_block_; @@ -185,8 +185,6 @@ uint32_t AudioSystem::AllocateXmaContext() { xma_context_free_list_.pop_back(); auto context_ptr = memory()->TranslateVirtual(guest_ptr); - // Initialize? - return guest_ptr; } diff --git a/src/xenia/cpu/processor.cc b/src/xenia/cpu/processor.cc index 6a7e0ef0a..d811e2f07 100644 --- a/src/xenia/cpu/processor.cc +++ b/src/xenia/cpu/processor.cc @@ -148,7 +148,7 @@ bool Processor::Setup() { backend_ = std::move(backend); frontend_ = std::move(frontend); - interrupt_thread_state_ = new ThreadState(this, 0, 0, 16 * 1024, 0); + interrupt_thread_state_ = new ThreadState(this, 0, 0, 128 * 1024, 0); interrupt_thread_state_->set_name("Interrupt"); interrupt_thread_block_ = memory_->SystemHeapAlloc(2048); interrupt_thread_state_->context()->r[13] = interrupt_thread_block_;