Revision a541f297 exec.c

b/exec.c
914 914
   breakpoint is reached */
915 915
int cpu_breakpoint_insert(CPUState *env, uint32_t pc)
916 916
{
917
#if defined(TARGET_I386)
917
#if defined(TARGET_I386) || defined(TARGET_PPC)
918 918
    int i;
919 919

  
920 920
    for(i = 0; i < env->nb_breakpoints; i++) {
......
935 935
/* remove a breakpoint */
936 936
int cpu_breakpoint_remove(CPUState *env, uint32_t pc)
937 937
{
938
#if defined(TARGET_I386)
938
#if defined(TARGET_I386) || defined(TARGET_PPC)
939 939
    int i;
940 940
    for(i = 0; i < env->nb_breakpoints; i++) {
941 941
        if (env->breakpoints[i] == pc)
......
957 957
   CPU loop after each instruction */
958 958
void cpu_single_step(CPUState *env, int enabled)
959 959
{
960
#if defined(TARGET_I386)
960
#if defined(TARGET_I386) || defined(TARGET_PPC)
961 961
    if (env->singlestep_enabled != enabled) {
962 962
        env->singlestep_enabled = enabled;
963 963
        /* must flush all the translated code to avoid inconsistancies */

Also available in: Unified diff