From 27061e4c4e723e16797453f473cff7148beecad3 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Fri, 31 Jul 2026 04:04:37 +0200 Subject: Adds curses UI --- core/salis.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/salis.h') diff --git a/core/salis.h b/core/salis.h index e61752b..f144698 100644 --- a/core/salis.h +++ b/core/salis.h @@ -16,8 +16,10 @@ // ---------------------------------------------------------------------------- // [section] macros // ---------------------------------------------------------------------------- -#define SALIS_UINT64_HALF 0x8000000000000000ul #define SALIS_EVENT_ARRAY_SIZE_COL_MARKER "_evasize_" +#define SALIS_IPCM_FLAG 0x80 +#define SALIS_MALL_FLAG 0x80 +#define SALIS_UINT64_HALF 0x8000000000000000ul // ---------------------------------------------------------------------------- // [section] structs @@ -83,6 +85,7 @@ struct Core { // ---------------------------------------------------------------------------- extern struct Core g_cores[CORES]; extern uint64_t g_step; +extern uint64_t g_sync; // ---------------------------------------------------------------------------- // [section] memory vector declarations @@ -95,7 +98,6 @@ bool mvec_is_alloc(const struct Core *core, uint64_t addr); void mvec_alloc(struct Core *core, uint64_t addr); void mvec_free(struct Core *core, uint64_t addr); -uint8_t mvec_get_byte(const struct Core *core, uint64_t addr); uint8_t mvec_get_inst(const struct Core *core, uint64_t addr); void mvec_set_inst(struct Core *core, uint64_t addr, uint8_t inst); @@ -142,6 +144,8 @@ void salis_load(void); void salis_start(void); void salis_join(void); +void salis_wait(void); void salis_signal_stop(void); +void salis_signal_stop_no_check(void); void salis_step(uint64_t steps); void salis_free(void); -- cgit v1.2.1