mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
PPU: Corrected SC instruction format to comply with the PowerISA
This commit is contained in:
parent
530c17f4f7
commit
5db254f3a5
8 changed files with 28 additions and 30 deletions
|
@ -343,17 +343,17 @@ namespace loader
|
|||
Emu.SetRSXCallback(rsx_callback_data.addr());
|
||||
|
||||
rsx_callback_data[0] = ADDI(r11, 0, 0x3ff);
|
||||
rsx_callback_data[1] = SC(2);
|
||||
rsx_callback_data[1] = SC(0);
|
||||
rsx_callback_data[2] = BLR();
|
||||
|
||||
auto ppu_thr_exit_data = vm::ptr<u32>::make(Memory.MainMem.AllocAlign(3 * 4));
|
||||
ppu_thr_exit_data[0] = ADDI(r11, 0, 41);
|
||||
ppu_thr_exit_data[1] = SC(2);
|
||||
ppu_thr_exit_data[1] = SC(0);
|
||||
ppu_thr_exit_data[2] = BLR();
|
||||
Emu.SetCPUThreadExit(ppu_thr_exit_data.addr());
|
||||
|
||||
auto ppu_thr_stop_data = vm::ptr<u32>::make(Memory.MainMem.AllocAlign(2 * 4));
|
||||
ppu_thr_stop_data[0] = SC(4);
|
||||
ppu_thr_stop_data[0] = SC(3);
|
||||
ppu_thr_stop_data[1] = BLR();
|
||||
Emu.SetCPUThreadStop(ppu_thr_stop_data.addr());
|
||||
|
||||
|
@ -493,7 +493,7 @@ namespace loader
|
|||
static const stub_data =
|
||||
{
|
||||
be_t<u32>::make(MR(11, 2)),
|
||||
be_t<u32>::make(SC(2)),
|
||||
be_t<u32>::make(SC(0)),
|
||||
be_t<u32>::make(BLR())
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue