mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01:00
Merge pull request #9598 from JosJuice/arm64reg-assert
JitArm64: Fix broken format strings in Arm64RegCache
This commit is contained in:
commit
3b9ae81790
@ -72,7 +72,8 @@ void Arm64RegCache::LockRegister(ARM64Reg host_reg)
|
|||||||
{
|
{
|
||||||
auto reg = std::find(m_host_registers.begin(), m_host_registers.end(), host_reg);
|
auto reg = std::find(m_host_registers.begin(), m_host_registers.end(), host_reg);
|
||||||
ASSERT_MSG(DYNA_REC, reg != m_host_registers.end(),
|
ASSERT_MSG(DYNA_REC, reg != m_host_registers.end(),
|
||||||
"Don't try locking a register that isn't in the cache. Reg %d", host_reg);
|
"Don't try locking a register that isn't in the cache. Reg %d",
|
||||||
|
static_cast<int>(host_reg));
|
||||||
reg->Lock();
|
reg->Lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +81,8 @@ void Arm64RegCache::UnlockRegister(ARM64Reg host_reg)
|
|||||||
{
|
{
|
||||||
auto reg = std::find(m_host_registers.begin(), m_host_registers.end(), host_reg);
|
auto reg = std::find(m_host_registers.begin(), m_host_registers.end(), host_reg);
|
||||||
ASSERT_MSG(DYNA_REC, reg != m_host_registers.end(),
|
ASSERT_MSG(DYNA_REC, reg != m_host_registers.end(),
|
||||||
"Don't try unlocking a register that isn't in the cache. Reg %d", host_reg);
|
"Don't try unlocking a register that isn't in the cache. Reg %d",
|
||||||
|
static_cast<int>(host_reg));
|
||||||
reg->Unlock();
|
reg->Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user