From 6e7fe3c4b9f904fa1d31e8cef05e0162b15c5afd Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Thu, 27 May 2021 17:50:38 +0300 Subject: [PATCH] Init to 64-bit LE mode --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index e6c3f85..f3e382f 100644 --- a/main.c +++ b/main.c @@ -35,6 +35,9 @@ #define RAMSIZE (64 * 1024 * 1024) #define PROGSTART 0x20000000 +#define MSR_64 (1UL<<63) +#define MSR_LE (1UL<<0) + enum { SPR_LR, }; @@ -229,6 +232,7 @@ int main(int argc, char **argv) { regs.lr = -1; regs.pc = PROGSTART; + regs.msr = MSR_64 | MSR_LE; while (1) { const int c = getopt_long(argc, argv, opts, longopts, NULL); -- 2.30.2