From: Lauri Kasanen Date: Fri, 28 May 2021 10:29:32 +0000 (+0300) Subject: Set a default SP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d55aaafa9a078ecb1d7420d3f54faf9679e865cb;p=kvm-minippc.git Set a default SP --- diff --git a/main.c b/main.c index 62a6fc7..42890f6 100644 --- a/main.c +++ b/main.c @@ -339,6 +339,7 @@ int main(int argc, char **argv) { regs.lr = -1; regs.pc = PROGSTART; regs.msr = MSR_64 | MSR_FP | MSR_LE; + regs.gpr[1] = 0x8000; // Default stack pointer at 32kb, 20kb free space before vecs while (1) { const int c = getopt_long(argc, argv, opts, longopts, NULL);