mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-10 19:45:49 +00:00
PowerPC: Factor out CR helpers into POD class
This commit is contained in:
parent
f6b856d01e
commit
e3075f3834
27 changed files with 249 additions and 219 deletions
|
@ -61,7 +61,7 @@ void GeckoReturnTrampoline()
|
|||
GPR(1) = PowerPC::HostRead_U32(SP + 8);
|
||||
NPC = PowerPC::HostRead_U32(SP + 12);
|
||||
LR = PowerPC::HostRead_U32(SP + 16);
|
||||
PowerPC::ExpandCR(PowerPC::HostRead_U32(SP + 20));
|
||||
PowerPC::ppcState.cr.Set(PowerPC::HostRead_U32(SP + 20));
|
||||
for (int i = 0; i < 14; ++i)
|
||||
{
|
||||
rPS(i).SetBoth(PowerPC::HostRead_U64(SP + 24 + 2 * i * sizeof(u64)),
|
||||
|
|
|
@ -21,7 +21,7 @@ double HLE::SystemVABI::VAList::GetFPR(u32 fpr) const
|
|||
HLE::SystemVABI::VAListStruct::VAListStruct(u32 address)
|
||||
: VAList(0), m_va_list{PowerPC::HostRead_U8(address), PowerPC::HostRead_U8(address + 1),
|
||||
PowerPC::HostRead_U32(address + 4), PowerPC::HostRead_U32(address + 8)},
|
||||
m_address(address), m_has_fpr_area(PowerPC::GetCRBit(6) == 1)
|
||||
m_address(address), m_has_fpr_area(PowerPC::ppcState.cr.GetBit(6) == 1)
|
||||
{
|
||||
m_stack = m_va_list.overflow_arg_area;
|
||||
m_gpr += m_va_list.gpr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue