Do not emit StoreToContext before Return (#1537)

* Do not emit StoreToContext before Return

* Set PPTC version
This commit is contained in:
FICTURE7 2020-09-07 06:52:17 +04:00 committed by GitHub
parent 6aef271661
commit 4c7bebf3e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View file

@ -56,7 +56,10 @@ namespace ARMeilleure.Instructions
{
if (regIndex == RegisterAlias.Aarch32Pc)
{
context.StoreToContext();
if (!IsA32Return(context))
{
context.StoreToContext();
}
EmitBxWritePc(context, value);
}