From 56b00aecd81d6239b398db4744a56d4085186489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A0rius=20Mont=C3=B3n?= Date: Wed, 14 Sep 2022 20:01:36 +0200 Subject: [PATCH] Helper parameter for test-suite --- inc/CPU.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inc/CPU.h b/inc/CPU.h index f82b5a1..794419f 100644 --- a/inc/CPU.h +++ b/inc/CPU.h @@ -91,6 +91,10 @@ namespace riscv_tlm { */ virtual void call_interrupt(tlm::tlm_generic_payload &trans, sc_core::sc_time &delay) = 0; + + virtual std::uint64_t getStartDumpAddress() = 0; + virtual std::uint64_t getEndDumpAddress() = 0; + public: MemoryInterface *mem_intf; protected: @@ -155,6 +159,9 @@ namespace riscv_tlm { */ void call_interrupt(tlm::tlm_generic_payload &trans, sc_core::sc_time &delay) override; + + std::uint64_t getStartDumpAddress() override; + std::uint64_t getEndDumpAddress() override; }; // RV32 class /** @@ -206,6 +213,9 @@ namespace riscv_tlm { */ void call_interrupt(tlm::tlm_generic_payload &trans, sc_core::sc_time &delay) override; + + std::uint64_t getStartDumpAddress() override; + std::uint64_t getEndDumpAddress() override; }; // RV64 class }