Commit 5be1a8e065c56266fa2d99ae21fdad670cd0d963

Authored by bellard
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 404 env = cpu_gdbstub_get_env(opaque);
405 405 #if defined(TARGET_I386)
406 406 env->eip = addr;
  407 +#elif defined (TARGET_PPC)
  408 + env->nip = addr;
407 409 #endif
408 410 }
409 411 ret = main_loop(opaque);
... ... @@ -420,6 +422,8 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port)
420 422 addr = strtoul(p, (char **)&p, 16);
421 423 #if defined(TARGET_I386)
422 424 env->eip = addr;
  425 +#elif defined (TARGET_PPC)
  426 + env->nip = addr;
423 427 #endif
424 428 }
425 429 cpu_single_step(env, 1);
... ...