summaryrefslogtreecommitdiff
path: root/emux64/src/main.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-12 20:34:32 -0400
committerIan Moffett <ian@osmora.org>2025-10-12 20:34:32 -0400
commitf97bc605512c482936f09410c95f4af2cc8d3b58 (patch)
tree263511bab6df8f9cb281db619fda571c6b8b3d8e /emux64/src/main.c
parentad8adc4165375a2e803be6d5782477c9f88d717e (diff)
cpu: Add initial bring-up and debug logic
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'emux64/src/main.c')
-rw-r--r--emux64/src/main.c11
1 files changed, 10 insertions, 1 deletions
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 <stdio.h>
#include <stdlib.h>
+#include <cpu/cpu.h>
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;
}