Merge pull request #208 from DrChat/stack_size_fix

Increase audio worker thread and cpu interrupt thread stack size
This commit is contained in:
Rick Gibbed 2015-05-15 18:23:34 -05:00
commit 11ea5c5b10
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -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_;