Use a typesafe struct for opcodes.

Also, correctly read delayslots using Read_Instruction on ARM.
This commit is contained in:
Unknown W. Brackets committed 2013-08-24 15:36:24 -07:00
1 parent ec46fdd06c
commit 109ad17ac6
41 files changed
+736 -704

No files matched your search

+2 -2
View File
@@ -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;