summaryrefslogtreecommitdiff
path: root/emux64/src/main.c
diff options
context:
space:
mode:
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;
}