powerpc: Introduce functions for instruction equality
[linux-2.6-microblaze.git] / arch / powerpc / xmon / xmon.c
index c5e4218..4cf9985 100644 (file)
@@ -947,7 +947,7 @@ static void remove_bpts(void)
                if ((bp->enabled & (BP_TRAP|BP_CIABR)) != BP_TRAP)
                        continue;
                if (mread(bp->address, &instr, 4) == 4
-                   && instr == ppc_inst(bpinstr)
+                   && ppc_inst_equal(instr, ppc_inst(bpinstr))
                    && patch_instruction(
                        (unsigned int *)bp->address, bp->instr[0]) != 0)
                        printf("Couldn't remove breakpoint at %lx\n",
@@ -2862,7 +2862,7 @@ generic_inst_dump(unsigned long adr, long count, int praddr,
                        break;
                }
                inst = ppc_inst(GETWORD(val));
-               if (adr > first_adr && inst == last_inst) {
+               if (adr > first_adr && ppc_inst_equal(inst, last_inst)) {
                        if (!dotted) {
                                printf(" ...\n");
                                dotted = 1;