Move CPU core out of RAM. This limits possibilities for self-modifying code hacks, but is cleaner/safer.

This commit is contained in:
Toby Jaffey 2025-12-09 10:46:29 +00:00
parent 941cd141f4
commit 8c11b45670
3 changed files with 12 additions and 15 deletions

View file

@ -90,7 +90,7 @@ typedef enum {
typedef struct {
uvm32_status_t status;
uvm32_err_t err;
struct MiniRV32IMAState* core; // points at end of memory
struct MiniRV32IMAState core;
uint8_t memory[UVM32_MEMORY_SIZE];
uvm32_evt_t ioevt; // for building up in callbacks
const uvm32_mapping_t *mappings;