mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
Use a typesafe struct for opcodes.
Also, correctly read delayslots using Read_Instruction on ARM.
This commit is contained in:
1 parent
ec46fdd06c
commit
109ad17ac6
41 files changed
+736
-704
No files matched your search
@@ -305,7 +305,7 @@ void WriteVarSymbol(u32 exportAddress, u32 relocAddress, u8 type)
|
||||
static std::vector<HI16RelocInfo> lastHI16Relocs;
|
||||
static bool lastHI16Processed = true;
|
||||
|
||||
u32 relocData = Memory::Read_Instruction(relocAddress);
|
||||
u32 relocData = Memory::Read_Instruction(relocAddress).encoding;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
@@ -341,7 +341,7 @@ void WriteVarSymbol(u32 exportAddress, u32 relocAddress, u8 type)
|
||||
// The R_MIPS_LO16 and R_MIPS_HI16 will often be *different* relocAddress values.
|
||||
HI16RelocInfo reloc;
|
||||
reloc.addr = relocAddress;
|
||||
reloc.data = Memory::Read_Instruction(relocAddress);
|
||||
reloc.data = Memory::Read_Instruction(relocAddress).encoding;
|
||||
lastHI16Relocs.push_back(reloc);
|
||||
lastHI16Processed = false;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user