summaryrefslogtreecommitdiff
path: root/gui/gui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gui/gui.cc')
-rw-r--r--gui/gui.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/gui.cc b/gui/gui.cc
index 2581c4c..63bb4f3 100644
--- a/gui/gui.cc
+++ b/gui/gui.cc
@@ -21,6 +21,7 @@
#include "cachewaysselector.h"
#include "messages.h"
#include "storageview.h"
+#include "registerview.h"
#include "util.h"
#include <QHeaderView>
#include <QPixmap>
@@ -352,14 +353,15 @@ void GUI::make_tabs(int num)
for (i = 0; i < num; ++i) {
if (i == 0) {
n = "Registers";
- e = new StorageView(0, this);
+ e = new RegisterView(GPR_NUM+V_NUM, V_R_LIMIT, this);
} else if (i == num - 1) {
n = "DRAM";
- e = new StorageView(MEM_LINES, this);
+ e = new StorageView(MEM_LINES, LINE_SIZE, this);
} else {
n = QString("L%1").arg(i);
e = new StorageView(
(1 << cache_size_mapper(this->curr_cache_levels - 1, i - 1)),
+ LINE_SIZE,
this);
}