PowerPC/PPCTables: Pass instruction address to GetOpInfo().

This commit is contained in:
Admiral H. Curtiss 2023-03-28 21:59:39 +02:00
parent 6018daa3fa
commit e5941428d1
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
7 changed files with 23 additions and 25 deletions

View file

@ -1699,7 +1699,7 @@ void MenuBar::SearchInstruction()
addr += 4)
{
const auto ins_name = QString::fromStdString(
PPCTables::GetInstructionName(PowerPC::MMU::HostRead_U32(guard, addr)));
PPCTables::GetInstructionName(PowerPC::MMU::HostRead_U32(guard, addr), addr));
if (op == ins_name)
{
NOTICE_LOG_FMT(POWERPC, "Found {} at {:08x}", op.toStdString(), addr);