We must reset the PowerPC CPU _after_ registering it, as hardware reset

effect is implementation dependant.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3323 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
j_mayer
2007-10-04 01:54:44 +00:00
parent e57448f11c
commit 1cc8e6f067
2 changed files with 5 additions and 3 deletions

View File

@@ -2100,7 +2100,7 @@ int main(int argc, char **argv)
"Unable to find PowerPC CPU definition\n");
}
cpu_ppc_register(env, def);
cpu_ppc_reset(env);
for (i = 0; i < 32; i++) {
if (i != 12 && i != 6 && i != 13)
env->msr[i] = (regs->msr >> i) & 1;