From 8b553ef5863a07a0c9ae3a970bf6afe552ce6121 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 12 Feb 2019 00:39:09 +0100 Subject: 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 --- qtmips_machine/physaddrspace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qtmips_machine/physaddrspace.cpp') 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 { -- cgit v1.2.3