From f97bc605512c482936f09410c95f4af2cc8d3b58 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 12 Oct 2025 20:34:32 -0400 Subject: cpu: Add initial bring-up and debug logic Signed-off-by: Ian Moffett --- emux64/src/main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'emux64/src/main.c') diff --git a/emux64/src/main.c b/emux64/src/main.c index a9a3a7f..cacd6b3 100644 --- a/emux64/src/main.c +++ b/emux64/src/main.c @@ -29,10 +29,19 @@ #include #include +#include int main(void) { - printf("Hello emux64!\n"); + struct osmx_core core; + int error; + + if ((error = cpu_reset(&core)) < 0) { + printf("error: failed to power up vcore\n"); + return error; + } + + cpu_dump(&core); return 0; } -- cgit v1.2.3