mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-05 09:39:58 +00:00
Merge pull request #4259 from lioncash/cast
PPCAnalyst: Get rid of two casts
This commit is contained in:
commit
74290e873a
@ -92,7 +92,7 @@ bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size)
|
|||||||
if (func.size >= CODEBUFFER_SIZE * 4) // weird
|
if (func.size >= CODEBUFFER_SIZE * 4) // weird
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
UGeckoInstruction instr = (UGeckoInstruction)PowerPC::HostRead_U32(addr);
|
const UGeckoInstruction instr = PowerPC::HostRead_Instruction(addr);
|
||||||
if (max_size && func.size > max_size)
|
if (max_size && func.size > max_size)
|
||||||
{
|
{
|
||||||
func.address = startAddr;
|
func.address = startAddr;
|
||||||
@ -269,7 +269,7 @@ static void FindFunctionsFromBranches(u32 startAddr, u32 endAddr, SymbolDB* func
|
|||||||
{
|
{
|
||||||
for (u32 addr = startAddr; addr < endAddr; addr += 4)
|
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))
|
if (PPCTables::IsValidInstruction(instr))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user