summaryrefslogtreecommitdiff
path: root/emulator/hart.h
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-05-12 14:26:38 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-05-12 14:26:38 +0200
commit822fd8616cf3d960cb2df1d2f25452ef57ea854b (patch)
treea94bc668d1c70d8f6e3079f1abfdcbd46c73bd58 /emulator/hart.h
parent49b39288133272578b8be86e3ced4468927fce5b (diff)
Zicrs
Diffstat (limited to 'emulator/hart.h')
-rw-r--r--emulator/hart.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/emulator/hart.h b/emulator/hart.h
index 5e9d451..8e04d19 100644
--- a/emulator/hart.h
+++ b/emulator/hart.h
@@ -1,16 +1,19 @@
#pragma once
#include <stdint.h>
+#include <stdbool.h>
struct Hart
{
uint32_t pc;
uint32_t regs[32];
+
char* mem;
uint32_t mem_size;
+
+ bool halted;
};
typedef struct Hart Hart;
void execute(Hart* hart, uint32_t instruction);
void execute_from(Hart* hart, uint32_t start_address);
-