Revert "Revert "start NROs at nro+0x00 instead of nro+0x80 and don't preload x30" until reswitched/libtransistor#84 is merged"

This reverts commit 090c371337.
This commit is contained in:
misson20000 2018-01-22 22:05:10 -08:00
parent 090c371337
commit f234e962e0
2 changed files with 2 additions and 2 deletions

View file

@ -140,7 +140,7 @@ shared_ptr<Thread> ThreadManager::create(gptr pc, gptr sp) {
threads[thread->id] = thread;
thread->regs.PC = pc;
thread->regs.SP = sp;
thread->regs.X30 = TERMADDR;
thread->regs.X30 = 0;
return thread;
}

View file

@ -149,7 +149,7 @@ int main(int argc, char **argv) {
ctu.execProgram(0x7100000000);
} else if(options[NRO].count()) {
loadNro(ctu, options[NRO][0].arg, 0x7100000000);
ctu.execProgram(0x7100000080);
ctu.execProgram(0x7100000000);
} else {
string dir = parse.nonOption(0);
auto lfn = dir + "/load.meph";