diff options
author | bd <bdunahu@operationnull.com> | 2025-04-26 03:06:14 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-26 03:06:14 -0400 |
commit | c98a0c26c4ccb5c4ae0e9f5810be910a7b299037 (patch) | |
tree | 25ee156ab0922694fa795ba6085749bcfcc157e7 /gui/worker.h | |
parent | 858a682d11cef5b7695050967b1c6b184eda3c6a (diff) |
Add proper tables display for storage devices
Diffstat (limited to 'gui/worker.h')
-rw-r--r-- | gui/worker.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/worker.h b/gui/worker.h index 06e4a16..c0e72d3 100644 --- a/gui/worker.h +++ b/gui/worker.h @@ -70,7 +70,7 @@ class Worker : public QObject signals: void clock_cycles(int value, int pc); void - storage(const std::vector<std::array<signed int, LINE_SIZE>> data, int i); + storage(QVector<QVector<int>> data, int i); void register_storage(const std::array<int, GPR_NUM> data); void if_info(const InstrDTO *); void id_info(const InstrDTO *); @@ -81,6 +81,13 @@ class Worker : public QObject private: /** + * Converts a vector of arrays into a QVector of QVectors. + * @param the original data + * @return a less universal version of the same thing + */ + QVector<QVector<int>> + data_to_QT(std::vector<std::array<signed int, LINE_SIZE>> data); + /** * Sets the GUI signals to update the storage, clock cycle, and stage * displays. */ |