diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-12 00:39:09 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-12 00:39:09 +0100 |
commit | 8b553ef5863a07a0c9ae3a970bf6afe552ce6121 (patch) | |
tree | cb61054992ea0102ed7e400533fb7cc914fc7ab0 /qtmips_machine/physaddrspace.cpp | |
parent | 54d7ef4272673e55b6a4324373d11875280dad84 (diff) | |
download | qtmips-8b553ef5863a07a0c9ae3a970bf6afe552ce6121.tar.gz qtmips-8b553ef5863a07a0c9ae3a970bf6afe552ce6121.tar.bz2 qtmips-8b553ef5863a07a0c9ae3a970bf6afe552ce6121.zip |
Add debug access to rword and friends to allow read data through cache without disturbing statistic.
This allows to switch view between CPU and raw memory content.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/physaddrspace.cpp')
-rw-r--r-- | qtmips_machine/physaddrspace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/physaddrspace.cpp b/qtmips_machine/physaddrspace.cpp index bb01b60..4d0045c 100644 --- a/qtmips_machine/physaddrspace.cpp +++ b/qtmips_machine/physaddrspace.cpp @@ -59,11 +59,11 @@ bool PhysAddrSpace::wword(std::uint32_t address, std::uint32_t value) { return p_range->mem_acces->write_word(address - p_range->start_addr, value); } -std::uint32_t PhysAddrSpace::rword(std::uint32_t address) const { +std::uint32_t PhysAddrSpace::rword(std::uint32_t address, bool debug_access) const { const RangeDesc *p_range = find_range(address); if (p_range == nullptr) return 0x00000000; - return p_range->mem_acces->read_word(address - p_range->start_addr); + return p_range->mem_acces->read_word(address - p_range->start_addr, debug_access); } enum LocationStatus PhysAddrSpace::location_status(std::uint32_t address) const { |