[CPU/Thread] setup r[2] constant value, only used by HV afaik

This commit is contained in:
disjtqz
2024-01-08 08:12:09 -05:00
committed by Herman S.
parent 341d3b66a8
commit 74ab7339a3

View File

@@ -93,6 +93,10 @@ ThreadState::ThreadState(Processor* processor, uint32_t thread_id,
// Set initial registers.
context_->r[1] = stack_base;
// constant register, used by hv only i think
context_->r[2] = 0x20000000;
context_->r[13] = pcr_address;
// VSCR - Vector Status and Control Register
// NJ bit (bit 16) = 1: Non-Java IEEE mode (default for Xbox 360)