From 076b5a39add3ceae2514fdefd853c05df5ad01ab Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Thu, 2 Jun 2022 08:30:49 +0200 Subject: [PATCH] fix class naming --- src/iss/plugin/pctrace.cpp | 8 ++++---- src/iss/plugin/pctrace.h | 14 +++++++------- src/main.cpp | 2 +- src/sysc/core_complex.cpp | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/iss/plugin/pctrace.cpp b/src/iss/plugin/pctrace.cpp index fdda44d..df2225a 100644 --- a/src/iss/plugin/pctrace.cpp +++ b/src/iss/plugin/pctrace.cpp @@ -89,7 +89,7 @@ private: }; #endif -cov::cov(std::string const &filename) +pctrace::pctrace(std::string const &filename) : instr_if(nullptr) , filename(filename) , output("output.trc") @@ -99,9 +99,9 @@ cov::cov(std::string const &filename) #endif { } -cov::~cov() { } +pctrace::~pctrace() { } -bool cov::registration(const char *const version, vm_if& vm) { +bool pctrace::registration(const char *const version, vm_if& vm) { instr_if = vm.get_arch()->get_instrumentation_if(); if(!instr_if) return false; const string core_name = instr_if->core_type_name(); @@ -152,7 +152,7 @@ bool cov::registration(const char *const version, vm_if& vm) { return true; } -void cov::callback(instr_info_t iinfo, const exec_info& einfo) { +void pctrace::callback(instr_info_t iinfo, const exec_info& einfo) { auto delay = 0; size_t id = iinfo.instr_id; auto entry = delays[id]; diff --git a/src/iss/plugin/pctrace.h b/src/iss/plugin/pctrace.h index 446094b..ff3153c 100644 --- a/src/iss/plugin/pctrace.h +++ b/src/iss/plugin/pctrace.h @@ -45,7 +45,7 @@ namespace iss { namespace plugin { class lz4compress_steambuf; -class cov : public iss::vm_plugin { +class pctrace : public iss::vm_plugin { struct instr_delay { std::string instr_name; size_t size; @@ -67,17 +67,17 @@ class cov : public iss::vm_plugin { public: - cov(const cov &) = delete; + pctrace(const pctrace &) = delete; - cov(const cov &&) = delete; + pctrace(const pctrace &&) = delete; - cov(std::string const &); + pctrace(std::string const &); - virtual ~cov(); + virtual ~pctrace(); - cov &operator=(const cov &) = delete; + pctrace &operator=(const pctrace &) = delete; - cov &operator=(const cov &&) = delete; + pctrace &operator=(const pctrace &&) = delete; bool registration(const char *const version, vm_if &arch) override; diff --git a/src/main.cpp b/src/main.cpp index 0d4fe2f..c2b5254 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -177,7 +177,7 @@ int main(int argc, char *argv[]) { vm->register_plugin(*ce_plugin); plugin_list.push_back(ce_plugin); } else if (plugin_name == "pctrace") { - auto *plugin = new iss::plugin::cov(filename); + auto *plugin = new iss::plugin::pctrace(filename); vm->register_plugin(*plugin); plugin_list.push_back(plugin); } else { diff --git a/src/sysc/core_complex.cpp b/src/sysc/core_complex.cpp index 118767e..ffd4737 100644 --- a/src/sysc/core_complex.cpp +++ b/src/sysc/core_complex.cpp @@ -405,7 +405,7 @@ void core_complex::before_end_of_elaboration() { cpu->vm->register_plugin(*plugin); plugin_list.push_back(plugin); } else if (plugin_name == "pctrace") { - auto *plugin = new iss::plugin::cov(filename); + auto *plugin = new iss::plugin::pctrace(filename); cpu->vm->register_plugin(*plugin); plugin_list.push_back(plugin); } else {