mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-06 23:23:38 +00: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
1 changed files with 3 additions and 1 deletions
|
|
@ -596,7 +596,9 @@ void PPCHIRBuilder::SetReturnAddress(Value* value) {
|
|||
XexModule* xexmod = dynamic_cast<XexModule*>(mod);
|
||||
if (xexmod) {
|
||||
auto flags = xexmod->GetInstructionAddressFlags(value->AsUint32());
|
||||
flags->is_return_site = true;
|
||||
if (flags) {
|
||||
flags->is_return_site = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue