aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-05-30 22:16:12 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-05-30 22:16:12 +0200
commit0df4e501aee0eeaec61217312eddddc077ca53a7 (patch)
tree5b28cfe93cd19714bf3d24123279c089bf2d777a
parent2fc73d820d0442ab813c1ac11dff6d7cb1d8f50b (diff)
Reorganize source files in single directory
-rw-r--r--arch/dummy/arch.c4
-rw-r--r--arch/dummy/arch_plots.cpp2
-rw-r--r--arch/v1/arch_plots.cpp2
-rw-r--r--core/client.cpp (renamed from data/client.cpp)0
-rw-r--r--core/render.c (renamed from data/render.c)0
-rw-r--r--core/server.c (renamed from data/server.c)0
-rwxr-xr-xsalis.py4
7 files changed, 8 insertions, 4 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()
diff --git a/data/client.cpp b/core/client.cpp
index 227ebaa..227ebaa 100644
--- a/data/client.cpp
+++ b/core/client.cpp
diff --git a/data/render.c b/core/render.c
index 08ff6dd..08ff6dd 100644
--- a/data/render.c
+++ b/core/render.c
diff --git a/data/server.c b/core/server.c
index d54d853..d54d853 100644
--- a/data/server.c
+++ b/core/server.c
diff --git a/salis.py b/salis.py
index 9d0613b..1feb041 100755
--- a/salis.py
+++ b/salis.py
@@ -401,7 +401,7 @@ if args.command == "load":
# Populate for server
if args.command == "server":
- ns.b = Build("data/server.c", log)
+ ns.b = Build("core/server.c", log)
pop_data_push_vars()
pop_sim_path_vars()
pop_net_vars()
@@ -409,7 +409,7 @@ if args.command == "server":
# Populate for client
if args.command == "client":
- ns.b = Build("data/client.cpp", log, cpp=True)
+ ns.b = Build("core/client.cpp", log, cpp=True)
pop_net_vars()
pop_general()
ns.b.defines.add(f"-DIP=\"{args.ip}\"")