diff options
Diffstat (limited to 'qtmips_gui/cachedock.h')
-rw-r--r-- | qtmips_gui/cachedock.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/qtmips_gui/cachedock.h b/qtmips_gui/cachedock.h new file mode 100644 index 0000000..a13cd08 --- /dev/null +++ b/qtmips_gui/cachedock.h @@ -0,0 +1,27 @@ +#ifndef CACHEDOCK_H +#define CACHEDOCK_H + +#include <QDockWidget> +#include <QLabel> +#include <QFormLayout> +#include "qtmipsmachine.h" + +class CacheDock : public QDockWidget { + Q_OBJECT +public: + CacheDock(QWidget *parent, const QString &type); + + void setup(const machine::Cache *cache); + +private slots: + void hit_update(unsigned); + void miss_update(unsigned); + +private: + QVBoxLayout *layout_box; + QWidget *top_widget, *top_form; + QFormLayout *layout_top_form; + QLabel *l_hit, *l_miss, *no_cache; +}; + +#endif // CACHEDOCK_H |