Add mt-helloworld example

This commit is contained in:
Jerry Zhao
2023-04-06 17:36:13 -07:00
parent 8a7c98c427
commit 54a6288f1a
5 changed files with 72 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
#include <stdio.h>
#include "encoding.h"
#include "marchid.h"
int main(void) {
printf("Hello world\n");
uint64_t marchid = read_csr(marchid);
const char* march = get_march(marchid);
printf("Hello world from core 0, a %s\n", march);
return 0;
}