aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/dummy/arch.c4
-rw-r--r--arch/dummy/arch_plots.cpp2
-rw-r--r--arch/v1/arch_plots.cpp2
3 files changed, 6 insertions, 2 deletions
diff --git a/arch/dummy/arch.c b/arch/dummy/arch.c
index aaf0f9d..1fcfbc3 100644
--- a/arch/dummy/arch.c
+++ b/arch/dummy/arch.c
@@ -147,9 +147,13 @@ const char *arch_mnemonic(uint8_t inst) {
#if defined(COMMAND_NEW)
void arch_push_data_header(void) {
assert(g_sim_db);
+ log_info("Creating arch table in SQLite database");
+ sql_exec(0, NULL, NULL, NULL, NULL, "create table arch (step int not null);");
}
#endif
void arch_push_data_line(void) {
assert(g_sim_db);
+ log_info("Pushing row to arch table in SQLite database");
+ sql_exec(0, NULL, NULL, NULL, NULL, "insert into arch (step) values (%ld);", g_steps);
}
diff --git a/arch/dummy/arch_plots.cpp b/arch/dummy/arch_plots.cpp
new file mode 100644
index 0000000..3631339
--- /dev/null
+++ b/arch/dummy/arch_plots.cpp
@@ -0,0 +1,2 @@
+std::array<const char *, 0> g_arch_traces;
+std::array<Plot, 0> g_arch_plots;
diff --git a/arch/v1/arch_plots.cpp b/arch/v1/arch_plots.cpp
index fb49816..8d35c87 100644
--- a/arch/v1/arch_plots.cpp
+++ b/arch/v1/arch_plots.cpp
@@ -14,5 +14,3 @@ std::array g_arch_plots = std::to_array<Plot>({
#undef FOR_CORE
}},
});
-
-#define ARCH_PLOT_COUNT g_arch_plots.size()