mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[CPU] Check if flags pointer exists
There is specific situation in FM4 on terminating thread that runs dll where flags pointer doesn't exist
This commit is contained in:
parent
d24d3295c6
commit
ea1003c6bf
|
|
@ -596,10 +596,12 @@ void PPCHIRBuilder::SetReturnAddress(Value* value) {
|
|||
XexModule* xexmod = dynamic_cast<XexModule*>(mod);
|
||||
if (xexmod) {
|
||||
auto flags = xexmod->GetInstructionAddressFlags(value->AsUint32());
|
||||
if (flags) {
|
||||
flags->is_return_site = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
HIRBuilder::SetReturnAddress(value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue