Merge pull request #11563 from JosJuice/host-lock-cpu-fixups
Follow-up fixes for "Properly lock CPU before accessing emulated memory"
This commit is contained in:
commit
22ed084209
|
@ -754,7 +754,7 @@ void CodeViewWidget::OnCopyTargetAddress()
|
||||||
const std::optional<u32> target_addr =
|
const std::optional<u32> target_addr =
|
||||||
PowerPC::debug_interface.GetMemoryAddressFromInstruction(code_line);
|
PowerPC::debug_interface.GetMemoryAddressFromInstruction(code_line);
|
||||||
|
|
||||||
if (addr)
|
if (target_addr)
|
||||||
{
|
{
|
||||||
QApplication::clipboard()->setText(
|
QApplication::clipboard()->setText(
|
||||||
QStringLiteral("%1").arg(*target_addr, 8, 16, QLatin1Char('0')));
|
QStringLiteral("%1").arg(*target_addr, 8, 16, QLatin1Char('0')));
|
||||||
|
@ -784,7 +784,7 @@ void CodeViewWidget::OnShowTargetInMemory()
|
||||||
const std::optional<u32> target_addr =
|
const std::optional<u32> target_addr =
|
||||||
PowerPC::debug_interface.GetMemoryAddressFromInstruction(code_line);
|
PowerPC::debug_interface.GetMemoryAddressFromInstruction(code_line);
|
||||||
|
|
||||||
if (addr)
|
if (target_addr)
|
||||||
emit ShowMemory(*target_addr);
|
emit ShowMemory(*target_addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#include <fmt/printf.h>
|
#include <fmt/printf.h>
|
||||||
|
|
||||||
#include "Common/Align.h"
|
#include "Common/Align.h"
|
||||||
#include "Common/Assert.h"
|
|
||||||
#include "Common/FloatUtils.h"
|
#include "Common/FloatUtils.h"
|
||||||
#include "Common/StringUtil.h"
|
#include "Common/StringUtil.h"
|
||||||
#include "Common/Swap.h"
|
#include "Common/Swap.h"
|
||||||
|
|
Loading…
Reference in New Issue