rjx-mirror/ARMeilleure/Translation/PTC
FICTURE7 0d23504e30
Fix PTC count table relocation patching (#2666)
Fix an issue introduced in #2190 where by 2 different count table entry
addresses were used for LCQ functions. E.g:

```asm
 .L1:
   mov rbp,COUNT_TABLE_0   ;; This gets an address.
   mov ebp,[rbp]
   lea esi,[rbp+1]
   mov rdi,COUNT_TABLE_1   ;; This gets another address.
   mov [rdi],esi
   cmp ebp,64h
   je near .L34
```

This caused LCQ functions to not tier up when they're loaded from the
PTC cache. This does not happen when they're freshly compiled.

This PR fixes the issue by ensuring only a single counter is created per
translation.
2021-09-29 00:28:34 +02:00
..
EncodingCache.cs PPTC vs. giant ExeFS. (#2168) 2021-04-13 03:24:36 +02:00
Ptc.cs Fix PTC count table relocation patching (#2666) 2021-09-29 00:28:34 +02:00
PtcFormatter.cs PPTC meets ExeFS Patching. (#1865) 2021-05-13 20:05:15 +02:00
PtcLoadingState.cs Fix inconsistencies in progress reporting (#2129) 2021-03-22 19:40:07 +01:00
PtcProfiler.cs PPTC meets ExeFS Patching. (#1865) 2021-05-13 20:05:15 +02:00
PtcState.cs Add Profiled Persistent Translation Cache. (#769) 2020-06-16 20:28:02 +02:00