aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-12-12 18:39:56 +0100
committerKarel Kočí <cynerd@email.cz>2017-12-12 18:39:56 +0100
commit36853877b262bd47417be1637a1854ae3145384e (patch)
tree596e62024d0d12f1d4e2d194bba2c8622d53c9e8 /qtmips_machine
parent75c7ea8dd6518b9148c4a27bab06f5d187f95a41 (diff)
downloadqtmips-36853877b262bd47417be1637a1854ae3145384e.tar.gz
qtmips-36853877b262bd47417be1637a1854ae3145384e.tar.bz2
qtmips-36853877b262bd47417be1637a1854ae3145384e.zip
Don't create memory section on read_byte
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/memory.cpp b/qtmips_machine/memory.cpp
index a9cc055..ef4c7e2 100644
--- a/qtmips_machine/memory.cpp
+++ b/qtmips_machine/memory.cpp
@@ -170,7 +170,7 @@ void Memory::write_byte(std::uint32_t address, std::uint8_t value) {
}
std::uint8_t Memory::read_byte(std::uint32_t address) const {
- MemorySection *section = this->get_section(address, true);
+ MemorySection *section = this->get_section(address, false);
if (section == nullptr)
return 0;
else