Commit 5be1a8e065c56266fa2d99ae21fdad670cd0d963
1 parent
09683d35
ppc fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@533 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
0 deletions
gdbstub.c
@@ -404,6 +404,8 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port) | @@ -404,6 +404,8 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port) | ||
404 | env = cpu_gdbstub_get_env(opaque); | 404 | env = cpu_gdbstub_get_env(opaque); |
405 | #if defined(TARGET_I386) | 405 | #if defined(TARGET_I386) |
406 | env->eip = addr; | 406 | env->eip = addr; |
407 | +#elif defined (TARGET_PPC) | ||
408 | + env->nip = addr; | ||
407 | #endif | 409 | #endif |
408 | } | 410 | } |
409 | ret = main_loop(opaque); | 411 | ret = main_loop(opaque); |
@@ -420,6 +422,8 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port) | @@ -420,6 +422,8 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port) | ||
420 | addr = strtoul(p, (char **)&p, 16); | 422 | addr = strtoul(p, (char **)&p, 16); |
421 | #if defined(TARGET_I386) | 423 | #if defined(TARGET_I386) |
422 | env->eip = addr; | 424 | env->eip = addr; |
425 | +#elif defined (TARGET_PPC) | ||
426 | + env->nip = addr; | ||
423 | #endif | 427 | #endif |
424 | } | 428 | } |
425 | cpu_single_step(env, 1); | 429 | cpu_single_step(env, 1); |