Qt/Debugger: Add TB, XER and GQRs to Registers Window

This commit is contained in:
container1234
2018-01-07 19:26:55 +09:00
parent dc08b73db1
commit 5cff714b77
3 changed files with 39 additions and 21 deletions

View File

@ -96,13 +96,13 @@ void RegisterColumn::Update()
switch (m_display)
{
case RegisterDisplay::Hex:
text = QStringLiteral("%1").arg(m_value,
(m_type == RegisterType::ibat || m_type == RegisterType::dbat ||
m_type == RegisterType::fpr ?
sizeof(u64) :
sizeof(u32)) *
2,
16, QLatin1Char('0'));
text = QStringLiteral("%1").arg(
m_value, (m_type == RegisterType::ibat || m_type == RegisterType::dbat ||
m_type == RegisterType::fpr || m_type == RegisterType::tb ?
sizeof(u64) :
sizeof(u32)) *
2,
16, QLatin1Char('0'));
break;
case RegisterDisplay::SInt32:
text = QString::number(static_cast<qint32>(m_value));