mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-02 04:55:28 -06:00
pica_core.cpp: Initialize IRQ_CMP (#2143)
* initialize IRQ_CMP * add comment explaining requirement * Fix formatting --------- Co-authored-by: OpenSauce04 <opensauce04@gmail.com>
This commit is contained in:
parent
ae7d7dca1f
commit
ad8526c4cf
@ -58,6 +58,9 @@ void PicaCore::InitializeRegs() {
|
||||
// Values initialized by GSP
|
||||
regs.internal.irq_autostop = 1;
|
||||
regs.internal.irq_mask = 0xFFFFFFF0;
|
||||
// Older versions of libctru didn't initialize this, initialize it here to avoid endless black
|
||||
// screen. Not needed on actual hardware due to previous software already having set it up
|
||||
regs.internal.irq_compare = 0x12345678;
|
||||
|
||||
auto& framebuffer_top = regs.framebuffer_config[0];
|
||||
auto& framebuffer_sub = regs.framebuffer_config[1];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user