diff options
author | gdkchan <gab.dark.100@gmail.com> | 2020-12-16 17:07:42 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 17:07:42 -0300 |
commit | 61634dd415fb71b3ae85871a0873d00195b0900c (patch) | |
tree | 233134f41a93d22d96f78b269047a1a050e87aba /ARMeilleure/Instructions/InstEmitAluHelper.cs | |
parent | 11222516c4b5042cd8da6fdd72f53ee736139b66 (diff) |
Clear JIT cache on exit (#1518)
* Initial cache memory allocator implementation
* Get rid of CallFlag
* Perform cache cleanup on exit
* Basic cache invalidation
* Thats not how conditionals works in C# it seems
* Set PTC version to PR number
* Address PR feedback
* Update InstEmitFlowHelper.cs
* Flag clear on address is no longer needed
* Do not include exit block in function size calculation
* Dispose jump table
* For future use
* InternalVersion = 1519 (force retest).
Co-authored-by: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com>
Diffstat (limited to 'ARMeilleure/Instructions/InstEmitAluHelper.cs')
-rw-r--r-- | ARMeilleure/Instructions/InstEmitAluHelper.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ARMeilleure/Instructions/InstEmitAluHelper.cs b/ARMeilleure/Instructions/InstEmitAluHelper.cs index 8c71d4cb..caef66c2 100644 --- a/ARMeilleure/Instructions/InstEmitAluHelper.cs +++ b/ARMeilleure/Instructions/InstEmitAluHelper.cs @@ -119,15 +119,12 @@ namespace ARMeilleure.Instructions if (IsThumb(context.CurrOp)) { bool isReturn = IsA32Return(context); - if (!isReturn) { context.StoreToContext(); } - Operand addr = context.BitwiseOr(value, Const(1)); - - InstEmitFlowHelper.EmitVirtualJump(context, addr, isReturn); + InstEmitFlowHelper.EmitVirtualJump(context, value, isReturn); } else { |