diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2023-01-04 20:01:44 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-05 00:01:44 +0100 |
| commit | fc4b7cba2c083b3920f2d74e0cb4b08cf7a5a278 (patch) | |
| tree | baa5d9a71ee011ecbaeee9a67e037cb399eb7d0e /ARMeilleure/Translation/ArmEmitterContext.cs | |
| parent | 08831eecf77cedd3c4192ebab5a9c485fb15d51e (diff) | |
Make PPTC state non-static (#4157)
* Make PPTC state non-static
* DiskCacheLoadState can be null
Diffstat (limited to 'ARMeilleure/Translation/ArmEmitterContext.cs')
| -rw-r--r-- | ARMeilleure/Translation/ArmEmitterContext.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ARMeilleure/Translation/ArmEmitterContext.cs b/ARMeilleure/Translation/ArmEmitterContext.cs index 33355dae..48254de4 100644 --- a/ARMeilleure/Translation/ArmEmitterContext.cs +++ b/ARMeilleure/Translation/ArmEmitterContext.cs @@ -6,7 +6,6 @@ using ARMeilleure.Instructions; using ARMeilleure.IntermediateRepresentation; using ARMeilleure.Memory; using ARMeilleure.State; -using ARMeilleure.Translation.PTC; using System; using System.Collections.Generic; using System.Reflection; @@ -44,14 +43,13 @@ namespace ARMeilleure.Translation public IMemoryManager Memory { get; } - public bool HasPtc { get; } - public EntryTable<uint> CountTable { get; } public AddressTable<ulong> FunctionTable { get; } public TranslatorStubs Stubs { get; } public ulong EntryAddress { get; } public bool HighCq { get; } + public bool HasPtc { get; } public Aarch32Mode Mode { get; } private int _ifThenBlockStateIndex = 0; @@ -66,15 +64,16 @@ namespace ARMeilleure.Translation TranslatorStubs stubs, ulong entryAddress, bool highCq, + bool hasPtc, Aarch32Mode mode) { - HasPtc = Ptc.State != PtcState.Disabled; Memory = memory; CountTable = countTable; FunctionTable = funcTable; Stubs = stubs; EntryAddress = entryAddress; HighCq = highCq; + HasPtc = hasPtc; Mode = mode; _labels = new Dictionary<ulong, Operand>(); |
