From 00a0cb3821ce2bd0fc589ae64ed9cbb791ce44bb Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Tue, 16 Jun 2026 23:00:21 +0200 Subject: Adds index to all large files --- arch/v1/arch.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'arch') 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) { -- cgit v1.2.1