diff options
Diffstat (limited to 'arch/v1/arch.c')
| -rw-r--r-- | arch/v1/arch.c | 17 |
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) { |
