mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-02 13:01:18 +12:00
Reorder PPCInterpreter memory layout to keep plugin compatibility
Commit b089ae5b32
changed the PPCInterpreter struct that external plugins rely on to hook Cemu through e.g. the exported "osLib_registerHLEFunction". This commit moves some unused values down so that it keeps the same memory layout as before the PPC recompiler rework.
This commit is contained in:
parent
fa7ae84314
commit
d083fc0470
1 changed files with 5 additions and 5 deletions
|
@ -51,12 +51,10 @@ struct PPCInterpreter_t
|
||||||
uint8 xer_ca; // carry from xer
|
uint8 xer_ca; // carry from xer
|
||||||
uint8 xer_so;
|
uint8 xer_so;
|
||||||
uint8 xer_ov;
|
uint8 xer_ov;
|
||||||
uint8 LSQE;
|
|
||||||
uint8 PSE;
|
|
||||||
// thread remaining cycles
|
// thread remaining cycles
|
||||||
sint32 remainingCycles; // if this value goes below zero, the next thread is scheduled
|
sint32 remainingCycles; // if this value goes below zero, the next thread is scheduled
|
||||||
sint32 skippedCycles; // number of skipped cycles
|
sint32 skippedCycles; // number of skipped cycles
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
uint32 LR;
|
uint32 LR;
|
||||||
uint32 CTR;
|
uint32 CTR;
|
||||||
|
@ -72,7 +70,7 @@ struct PPCInterpreter_t
|
||||||
uint32 temporaryGPR[4]; // deprecated, refactor backend dependency on this away
|
uint32 temporaryGPR[4]; // deprecated, refactor backend dependency on this away
|
||||||
uint32 temporaryGPR_reg[4];
|
uint32 temporaryGPR_reg[4];
|
||||||
// values below this are not used by Cafe OS usermode
|
// values below this are not used by Cafe OS usermode
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
uint32 fpecr; // is this the same register as fpscr ?
|
uint32 fpecr; // is this the same register as fpscr ?
|
||||||
uint32 DEC;
|
uint32 DEC;
|
||||||
|
@ -87,7 +85,7 @@ struct PPCInterpreter_t
|
||||||
// DMA
|
// DMA
|
||||||
uint32 dmaU;
|
uint32 dmaU;
|
||||||
uint32 dmaL;
|
uint32 dmaL;
|
||||||
// MMU
|
// MMU
|
||||||
uint32 dbatU[8];
|
uint32 dbatU[8];
|
||||||
uint32 dbatL[8];
|
uint32 dbatL[8];
|
||||||
uint32 ibatU[8];
|
uint32 ibatU[8];
|
||||||
|
@ -95,6 +93,8 @@ struct PPCInterpreter_t
|
||||||
uint32 sr[16];
|
uint32 sr[16];
|
||||||
uint32 sdr1;
|
uint32 sdr1;
|
||||||
}sprExtended;
|
}sprExtended;
|
||||||
|
uint8 LSQE;
|
||||||
|
uint8 PSE;
|
||||||
// global CPU values
|
// global CPU values
|
||||||
PPCInterpreterGlobal_t* global;
|
PPCInterpreterGlobal_t* global;
|
||||||
// interpreter control
|
// interpreter control
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue