diff options
Diffstat (limited to 'arch/powerpc/kernel/optprobes.c')
-rw-r--r-- | arch/powerpc/kernel/optprobes.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/optprobes.c b/arch/powerpc/kernel/optprobes.c index 6f8273f5e988..91e037ab20a1 100644 --- a/arch/powerpc/kernel/optprobes.c +++ b/arch/powerpc/kernel/optprobes.c | |||
@@ -104,8 +104,10 @@ static unsigned long can_optimize(struct kprobe *p) | |||
104 | * and that can be emulated. | 104 | * and that can be emulated. |
105 | */ | 105 | */ |
106 | if (!is_conditional_branch(*p->ainsn.insn) && | 106 | if (!is_conditional_branch(*p->ainsn.insn) && |
107 | analyse_instr(&op, ®s, *p->ainsn.insn)) | 107 | analyse_instr(&op, ®s, *p->ainsn.insn) == 1) { |
108 | emulate_update_regs(®s, &op); | ||
108 | nip = regs.nip; | 109 | nip = regs.nip; |
110 | } | ||
109 | 111 | ||
110 | return nip; | 112 | return nip; |
111 | } | 113 | } |