Merge pull request #208 from DrChat/stack_size_fix
Increase audio worker thread and cpu interrupt thread stack size
This commit is contained in:
commit
11ea5c5b10
|
@ -90,7 +90,7 @@ X_STATUS AudioSystem::Setup() {
|
||||||
registers_.next_context = 1;
|
registers_.next_context = 1;
|
||||||
|
|
||||||
// Setup worker thread state. This lets us make calls into guest code.
|
// 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_state_->set_name("Audio Worker");
|
||||||
thread_block_ = memory()->SystemHeapAlloc(2048);
|
thread_block_ = memory()->SystemHeapAlloc(2048);
|
||||||
thread_state_->context()->r[13] = thread_block_;
|
thread_state_->context()->r[13] = thread_block_;
|
||||||
|
@ -185,8 +185,6 @@ uint32_t AudioSystem::AllocateXmaContext() {
|
||||||
xma_context_free_list_.pop_back();
|
xma_context_free_list_.pop_back();
|
||||||
auto context_ptr = memory()->TranslateVirtual(guest_ptr);
|
auto context_ptr = memory()->TranslateVirtual(guest_ptr);
|
||||||
|
|
||||||
// Initialize?
|
|
||||||
|
|
||||||
return guest_ptr;
|
return guest_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ bool Processor::Setup() {
|
||||||
backend_ = std::move(backend);
|
backend_ = std::move(backend);
|
||||||
frontend_ = std::move(frontend);
|
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_state_->set_name("Interrupt");
|
||||||
interrupt_thread_block_ = memory_->SystemHeapAlloc(2048);
|
interrupt_thread_block_ = memory_->SystemHeapAlloc(2048);
|
||||||
interrupt_thread_state_->context()->r[13] = interrupt_thread_block_;
|
interrupt_thread_state_->context()->r[13] = interrupt_thread_block_;
|
||||||
|
|
Loading…
Reference in New Issue