diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-09-29 18:14:38 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-09-29 18:17:56 -0400 |
| commit | e1705ba6c5b1fac146d7c8ceb3138673901ac484 (patch) | |
| tree | f8d4707ed9899168d4dd35a2294f8bf2e343c910 /Source | |
| parent | a714460ee3869eda4d3e023bfc396a5063de5e95 (diff) | |
PPCAnalyst: Get rid of two casts
HostRead_Instruction does the same thing behind the scenes without casts.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/PowerPC/PPCAnalyst.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/PowerPC/PPCAnalyst.cpp index 64c60037bb..9010eea42e 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/PowerPC/PPCAnalyst.cpp @@ -92,7 +92,7 @@ bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size) if (func.size >= CODEBUFFER_SIZE * 4) // weird return false; - UGeckoInstruction instr = (UGeckoInstruction)PowerPC::HostRead_U32(addr); + const UGeckoInstruction instr = PowerPC::HostRead_Instruction(addr); if (max_size && func.size > max_size) { func.address = startAddr; @@ -269,7 +269,7 @@ static void FindFunctionsFromBranches(u32 startAddr, u32 endAddr, SymbolDB* func { for (u32 addr = startAddr; addr < endAddr; addr += 4) { - UGeckoInstruction instr = (UGeckoInstruction)PowerPC::HostRead_U32(addr); + const UGeckoInstruction instr = PowerPC::HostRead_Instruction(addr); if (PPCTables::IsValidInstruction(instr)) { |
