Rewriting code cache to put everything at fixed addresses.

This commit is contained in:
Ben Vanik
2015-05-20 19:23:46 -07:00
parent 20a3172ebb
commit 5e5eb47789
14 changed files with 360 additions and 408 deletions

View File

@@ -66,6 +66,9 @@ bool XexModule::Load(const std::string& name, const std::string& path,
i += section->info.page_count;
}
// Notify backend that we have an executable range.
processor_->backend()->CommitExecutableRange(low_address_, high_address_);
// Add all imports (variables/functions).
for (size_t n = 0; n < header->import_library_count; n++) {
if (!SetupLibraryImports(&header->import_libraries[n])) {