diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-08-22 17:50:59 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-08-22 17:50:59 +0200 |
commit | 142ce48771206a362988f1745a33b9ada74f66dd (patch) | |
tree | f197607913daa6f69982654ab19f5e36928a42a5 /utils | |
parent | a2d4a4a560a3405812871017a0f08fdec2b07e14 (diff) | |
download | rockbox-142ce48771206a362988f1745a33b9ada74f66dd.tar.gz rockbox-142ce48771206a362988f1745a33b9ada74f66dd.zip |
regtools: fix several bugs in qeditor
Change-Id: I1bef76d30eb47c4ebc8a2baca356d9c135b234ae
Diffstat (limited to 'utils')
-rw-r--r-- | utils/regtools/qeditor/std_analysers.cpp | 9 | ||||
-rw-r--r-- | utils/regtools/qeditor/std_analysers.h | 1 |
2 files changed, 6 insertions, 4 deletions
diff --git a/utils/regtools/qeditor/std_analysers.cpp b/utils/regtools/qeditor/std_analysers.cpp index 49df671146..814ef309f4 100644 --- a/utils/regtools/qeditor/std_analysers.cpp +++ b/utils/regtools/qeditor/std_analysers.cpp @@ -303,6 +303,7 @@ static TmplAnalyserFactory< ClockAnalyser > g_clock_factory(true, "Clock Analyse EmiAnalyser::EmiAnalyser(const soc_t& soc, IoBackend *backend) :Analyser(soc, backend) { + m_display_mode = DisplayCycles; m_group = new QGroupBox("EMI Analyser"); QVBoxLayout *layout = new QVBoxLayout; m_group->setLayout(layout); @@ -347,6 +348,8 @@ bool EmiAnalyser::SupportSoc(const QString& soc_name) void EmiAnalyser::OnChangeDisplayMode(int index) { + if(index == -1) + return; m_display_mode = (DisplayMode)m_display_selector->itemData(index).toInt(); int idx = m_panel->currentIndex(); FillTable(); @@ -492,11 +495,11 @@ void EmiAnalyser::FillTable() if(helper.ReadRegisterField("DRAM", "CTL10", "ADDR_PINS", value)) AddLine("Address Pins", 13 - value, ""); - if(helper.ReadRegisterField("DRAM", "CTL11", "ADDR_PINS", value)) + if(helper.ReadRegisterField("DRAM", "CTL11", "COLUMN_SIZE", value)) AddLine("Column Size", 12 - value, "-bit"); - if(helper.ReadRegisterField("DRAM", "CTL11", "ADDR_PINS", value)) - AddLine("Encoded CAS", value, "Memory device dependent"); + if(helper.ReadRegisterField("DRAM", "CTL11", "CASLAT", value)) + AddLine("Encoded CAS", value, "", "Memory device dependent"); if(helper.ReadRegisterField("DRAM", "CTL14", "CS_MAP", value)) { diff --git a/utils/regtools/qeditor/std_analysers.h b/utils/regtools/qeditor/std_analysers.h index 98c5fa0f98..20bc07da24 100644 --- a/utils/regtools/qeditor/std_analysers.h +++ b/utils/regtools/qeditor/std_analysers.h @@ -14,7 +14,6 @@ #include <QLabel> #include <QLineEdit> #include "analyser.h" -#include "collapsiblepanel.h" /** * Clock analyser |