From: Lauri Kasanen Date: Thu, 27 May 2021 14:50:38 +0000 (+0300) Subject: Init to 64-bit LE mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e7fe3c4b9f904fa1d31e8cef05e0162b15c5afd;p=kvm-minippc.git Init to 64-bit LE mode --- 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);