From 953569a38fe123ef41d15fd5c5f301ac69019c53 Mon Sep 17 00:00:00 2001 From: Sacha Date: Mon, 24 Jun 2013 15:25:26 +1000 Subject: [PATCH] Linux buildfix. --- Core/HLE/sceKernelModule.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index c5eb655449..fff0b8f16d 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -290,17 +290,16 @@ void __KernelModuleShutdown() MIPSAnalyst::Shutdown(); } +// Sometimes there are multiple LO16's or HI16's per pair, even though the ABI says nothing of this. +// For multiple LO16's, we need the original (unrelocated) instruction data of the HI16. +// For multiple HI16's, we just need to set each one. +struct HI16RelocInfo +{ + u32 addr; + u32 data; +}; void WriteVarSymbol(u32 exportAddress, u32 relocAddress, u8 type) { - // Sometimes there are multiple LO16's or HI16's per pair, even though the ABI says nothing of this. - // For multiple LO16's, we need the original (unrelocated) instruction data of the HI16. - // For multiple HI16's, we just need to set each one. - struct HI16RelocInfo - { - u32 addr; - u32 data; - }; - // We have to post-process the HI16 part, since it might be +1 or not depending on the LO16 value. static u32 lastHI16ExportAddress = 0; static std::vector lastHI16Relocs;