mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 10:00:16 +02:00
DiskCache: also fold FileId into the key for file-backed blocks
This commit is contained in:
1 parent
970ce4bc13
commit
31cda95039
1 file changed
+5
-1
@@ -470,7 +470,11 @@ namespace DiskCache {
|
||||
return std::nullopt;
|
||||
}
|
||||
if (Region && Region->FileStartVA) {
|
||||
GuestCodeKey = GuestRIP - Region->FileStartVA;
|
||||
struct __attribute__((packed)) {
|
||||
uint64_t GuestOffset;
|
||||
uint64_t FileId;
|
||||
} FileBackedKey = {GuestRIP - Region->FileStartVA, Region->FileInfo.FileId};
|
||||
GuestCodeKey = XXH3_64bits(&FileBackedKey, sizeof(FileBackedKey));
|
||||
} else {
|
||||
if (!AnonCaching) {
|
||||
return std::nullopt;
|
||||
|
||||
Reference in new issue
Block a user