提交 5be1a8e0 编写于 作者: B bellard

ppc fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@533 c046a42c-6fe2-441c-8c8c-71466251a162
上级 09683d35
......@@ -404,6 +404,8 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port)
env = cpu_gdbstub_get_env(opaque);
#if defined(TARGET_I386)
env->eip = addr;
#elif defined (TARGET_PPC)
env->nip = addr;
#endif
}
ret = main_loop(opaque);
......@@ -420,6 +422,8 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port)
addr = strtoul(p, (char **)&p, 16);
#if defined(TARGET_I386)
env->eip = addr;
#elif defined (TARGET_PPC)
env->nip = addr;
#endif
}
cpu_single_step(env, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册