Increase audio worker thread and cpu interrupt thread stack size

This commit is contained in:
Dr. Chat 2015-05-15 18:12:15 -05:00
parent 8aa1854db4
commit 420d4e43b6
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_;