add pctrace plugin to iss
This commit is contained in:
parent
d91f5f9df4
commit
30ae743361
|
@ -75,6 +75,7 @@ using tgc_e_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_e, (iss::arch:
|
||||||
#include <iss/log_categories.h>
|
#include <iss/log_categories.h>
|
||||||
#include <iss/plugin/cycle_estimate.h>
|
#include <iss/plugin/cycle_estimate.h>
|
||||||
#include <iss/plugin/instruction_count.h>
|
#include <iss/plugin/instruction_count.h>
|
||||||
|
#include <iss/plugin/pctrace.h>
|
||||||
#include <iss/plugin/loader.h>
|
#include <iss/plugin/loader.h>
|
||||||
#if defined(HAS_LUA)
|
#if defined(HAS_LUA)
|
||||||
#include <iss/plugin/lua.h>
|
#include <iss/plugin/lua.h>
|
||||||
|
@ -208,6 +209,10 @@ int main(int argc, char *argv[]) {
|
||||||
auto *ce_plugin = new iss::plugin::cycle_estimate(filename);
|
auto *ce_plugin = new iss::plugin::cycle_estimate(filename);
|
||||||
vm->register_plugin(*ce_plugin);
|
vm->register_plugin(*ce_plugin);
|
||||||
plugin_list.push_back(ce_plugin);
|
plugin_list.push_back(ce_plugin);
|
||||||
|
} else if (plugin_name == "pctrace") {
|
||||||
|
auto *plugin = new iss::plugin::cov(filename);
|
||||||
|
vm->register_plugin(*plugin);
|
||||||
|
plugin_list.push_back(plugin);
|
||||||
} else {
|
} else {
|
||||||
std::array<char const*, 1> a{{filename.c_str()}};
|
std::array<char const*, 1> a{{filename.c_str()}};
|
||||||
iss::plugin::loader l(plugin_name, {{"initPlugin"}});
|
iss::plugin::loader l(plugin_name, {{"initPlugin"}});
|
||||||
|
|
Loading…
Reference in New Issue