projects
/
kvm-minippc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c0a009
)
Init to 64-bit LE mode
author
Lauri Kasanen
<cand@gmx.com>
Thu, 27 May 2021 14:50:38 +0000
(17:50 +0300)
committer
Lauri Kasanen
<cand@gmx.com>
Thu, 27 May 2021 14:50:38 +0000
(17:50 +0300)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index e6c3f85a14ff7cf6888c05903841c268d1847539..f3e382f49c3635666fd6673296ab682b0f0ae2dd 100644
(file)
--- 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);