summaryrefslogtreecommitdiff
path: root/decoder/include/mem_acc/trc_mem_acc_mapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/include/mem_acc/trc_mem_acc_mapper.h')
-rw-r--r--decoder/include/mem_acc/trc_mem_acc_mapper.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/decoder/include/mem_acc/trc_mem_acc_mapper.h b/decoder/include/mem_acc/trc_mem_acc_mapper.h
index 07d044ead81c..a700e9dbd07e 100644
--- a/decoder/include/mem_acc/trc_mem_acc_mapper.h
+++ b/decoder/include/mem_acc/trc_mem_acc_mapper.h
@@ -41,6 +41,7 @@
#include "interfaces/trc_tgt_mem_access_i.h"
#include "interfaces/trc_error_log_i.h"
#include "mem_acc/trc_mem_acc_base.h"
+#include "mem_acc/trc_mem_acc_cache.h"
typedef enum _memacc_mapper_t {
MEMACC_MAP_GLOBAL,
@@ -76,7 +77,7 @@ public:
ocsd_err_t RemoveAccessorByAddress(const ocsd_vaddr_t st_address, const ocsd_mem_space_acc_t mem_space, const uint8_t cs_trace_id = 0);
// set the error log.
- void setErrorLog(ITraceErrorLog *err_log_i) { m_err_log = err_log_i; };
+ void setErrorLog(ITraceErrorLog *err_log_i);
// print out the ranges in this mapper.
virtual void logMappedRanges() = 0;
@@ -89,11 +90,13 @@ protected:
virtual void clearAccessorList() = 0;
void LogMessage(const std::string &msg);
+ void LogWarn(const ocsd_err_t err, const std::string &msg);
TrcMemAccessorBase *m_acc_curr; // most recently used - try this first.
uint8_t m_trace_id_curr; // trace ID for the current accessor
const bool m_using_trace_id; // true if we are using separate memory spaces by TraceID.
ITraceErrorLog *m_err_log; // error log to print out mappings on request.
+ TrcMemAccCache m_cache; // memory accessor caching.
};