aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-06-16 23:00:21 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-06-16 23:05:04 +0200
commit00a0cb3821ce2bd0fc589ae64ed9cbb791ce44bb (patch)
tree62eef257fb06ea36ea92e719dff750bede0bd281 /arch
parentbb52acc8b7ad073068c9a2dc656d4fecf935d710 (diff)
Adds index to all large filesHEADmaster
Diffstat (limited to 'arch')
-rw-r--r--arch/v1/arch.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/v1/arch.c b/arch/v1/arch.c
index b200e5e..cb52bf7 100644
--- a/arch/v1/arch.c
+++ b/arch/v1/arch.c
@@ -1,6 +1,15 @@
// Based on the original salis-v1 VM architecture:
// https://git.pauloliver.dev/salis-v1/about/
+// index
+// [section] macros & enums
+// [section] globals
+// [section] main architecture functions
+// [section] data aggregation functions
+
+// ----------------------------------------------------------------------------
+// [section] macros & enums
+// ----------------------------------------------------------------------------
#define INST_EVENT_ARRAYS(core) \
INST_EVENT_ARRAY(core, 0, pop) /* instruction population */ \
INST_EVENT_ARRAY(core, 1, exe) /* instruction executions */ \
@@ -17,9 +26,15 @@ enum {
#undef INST
};
+// ----------------------------------------------------------------------------
+// [section] globals
+// ----------------------------------------------------------------------------
thrd_t g_arch_eva_thrds[CORES][ARCH_EVENT_ARRAYS_COUNT];
struct DeflateParams g_arch_eva_deflate_params[CORES][ARCH_EVENT_ARRAYS_COUNT];
+// ----------------------------------------------------------------------------
+// [section] main architecture functions
+// ----------------------------------------------------------------------------
#if defined(COMMAND_NEW)
void arch_core_init(struct Core *core) {
assert(core);
@@ -851,7 +866,7 @@ const char *arch_mnemonic(uint8_t inst) {
}
// ----------------------------------------------------------------------------
-// Data aggregation functions
+// [section] data aggregation functions
// ----------------------------------------------------------------------------
#if defined(COMMAND_NEW)
void arch_push_data_header(void) {