Common: Move ApplyFEXExtendedVolatileMetadata to Common

It is going to be used by Linux.

Also adds support for file offset handling, which is required on Linux
but not on win32.
This commit is contained in:
Ryan Houdek committed 2025-09-29 14:36:50 -07:00
1 parent 4e926076c9
commit 1758648f56
4 files changed
+36 -46

No files matched your search

+2 -2
View File
@@ -39,10 +39,10 @@ $end_info$
#include "Common/CRT/CRT.h"
#include "Common/PortabilityInfo.h"
#include "Common/Handle.h"
#include "Common/VolatileMetadata.h"
#include "DummyHandlers.h"
#include "BTInterface.h"
#include "Windows/Common/SHMStats.h"
#include "Windows/Common/VolatileMetadata.h"
#include <cstdint>
#include <cstdio>
@@ -314,7 +314,7 @@ void LoadImageVolatileMetadata(const fextl::string& ModuleName, uint64_t Address
auto it = ExtendedMetaData.find(ModuleName);
if (it != ExtendedMetaData.end()) {
FEX::Windows::ApplyFEXExtendedVolatileMetadata(it->second, VolatileInstructions, VolatileValidRanges, Address, EndAddress);
FEX::VolatileMetadata::ApplyFEXExtendedVolatileMetadata(it->second, VolatileInstructions, VolatileValidRanges, Address, EndAddress);
}
if (VolatileInstructions.empty() && VolatileValidRanges.Empty()) {