aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/memory.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-25 17:10:59 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-25 17:10:59 +0100
commitc82fd7320a83daec780bb9f7c11239e269410c91 (patch)
treea5939471652ded3943606699480a6a105696807f /qtmips_machine/memory.cpp
parentdb722b7163fffc868cdea338bd6a4c6eddffd2b1 (diff)
downloadqtmips-c82fd7320a83daec780bb9f7c11239e269410c91.tar.gz
qtmips-c82fd7320a83daec780bb9f7c11239e269410c91.tar.bz2
qtmips-c82fd7320a83daec780bb9f7c11239e269410c91.zip
Add focus function to memory view
Diffstat (limited to 'qtmips_machine/memory.cpp')
-rw-r--r--qtmips_machine/memory.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/qtmips_machine/memory.cpp b/qtmips_machine/memory.cpp
index eec9f8c..07c8e3c 100644
--- a/qtmips_machine/memory.cpp
+++ b/qtmips_machine/memory.cpp
@@ -254,6 +254,16 @@ const union machine::MemoryTree *Memory::get_memorytree_root() const {
return this->mt_root;
}
+std::uint32_t Memory::next_allocated(std::uint32_t addr) const {
+ // TODO
+ return addr;
+}
+
+std::uint32_t Memory::prev_allocated(std::uint32_t addr) const {
+ // TODO
+ return addr;
+}
+
union machine::MemoryTree *Memory::allocate_section_tree() {
union MemoryTree *mt = new union MemoryTree[MEMORY_TREE_LEN];
for (size_t i = 0; i < MEMORY_TREE_LEN; i++)