summaryrefslogtreecommitdiff
path: root/emulator/main.c
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-05-13 00:04:44 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-05-13 00:04:44 +0200
commitf95a85de0082010e4af83e26e99299d601bb48d6 (patch)
tree0b70ff8fa990ceeb18c2522ea80f2599d50ebae4 /emulator/main.c
parentf9541157b62ec44deff0b906757c223ca0220102 (diff)
Some work on CSR
Diffstat (limited to 'emulator/main.c')
-rw-r--r--emulator/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/emulator/main.c b/emulator/main.c
index 4bf99a3..5cfbd53 100644
--- a/emulator/main.c
+++ b/emulator/main.c
@@ -24,8 +24,7 @@ int main(int argc, char* argv[])
}
struct Hart hart = {0};
- hart.mem = mem;
- hart.mem_size = mem_size;
+ hart_init(&hart, 0, mem, mem_size);
execute_from(&hart, start_address);