Move internal static garbage into vmst.

Potentially, this could have ended up being non-zero when used by concurrent threads.
This commit is contained in:
Toby Jaffey 2025-12-14 19:34:58 +00:00
parent 1e7343d385
commit 9bda566997
2 changed files with 9 additions and 11 deletions

View file

@ -146,6 +146,7 @@ typedef struct {
uint8_t *_extram; /*! External RAM pointer, or NULL */
uint32_t _extramLen; /*! Length of external RAM */
bool _extramDirty; /*! Flag to indicate VM code has modified extram since last run */
uint32_t garbage; /*! Used for returning valid pointer when operations fail */
} uvm32_state_t;
/*! Initialise a VM instance */