From f95a85de0082010e4af83e26e99299d601bb48d6 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 13 May 2024 00:04:44 +0200 Subject: Some work on CSR --- emulator/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'emulator/main.c') 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); -- cgit