summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/dram.h16
-rw-r--r--inc/storage.h15
2 files changed, 31 insertions, 0 deletions
diff --git a/inc/dram.h b/inc/dram.h
new file mode 100644
index 0000000..5bc933e
--- /dev/null
+++ b/inc/dram.h
@@ -0,0 +1,16 @@
+#ifndef DRAM_H
+#define DRAM_H
+#include <storage.h>
+
+class Dram : public Storage
+{
+ public:
+ Dram();
+ ~Dram();
+
+ int *load_line(int);
+
+ private:
+};
+
+#endif /* DRAM_H_INCLUDED */
diff --git a/inc/storage.h b/inc/storage.h
new file mode 100644
index 0000000..8973016
--- /dev/null
+++ b/inc/storage.h
@@ -0,0 +1,15 @@
+#ifndef STORAGE_H
+#define STORAGE_H
+#include <array>
+#include <vector>
+
+class Storage
+{
+ public:
+ int **view(int base) { return nullptr; }
+ virtual bool store();
+
+ std::vector<std::array<signed int, 4>> address_space;
+};
+
+#endif /* STORAGE_H_INCLUDED */