Skip to content

Commit 8270cfb

Browse files
committed
Revert "arc: Determine a branch target of DBNZ correctly"
This reverts commit 8fa4b97.
1 parent d2c558d commit 8270cfb

File tree

3 files changed

+0
-154
lines changed

3 files changed

+0
-154
lines changed

gdb/arc-tdep.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -465,16 +465,6 @@ arc_insn_get_branch_target (const struct arc_instruction &insn)
465465
instruction, hence last two bits should be truncated. */
466466
return pcrel_addr + align_down (insn.address, 4);
467467
}
468-
/* DBNZ is the only branch instruction that keeps a branch address in
469-
the second operand. It must be intercepted and treated differently. */
470-
else if (insn.insn_class == DBNZ)
471-
{
472-
CORE_ADDR pcrel_addr = arc_insn_get_operand_value_signed (insn, 1);
473-
474-
/* Offset is relative to the 4-byte aligned address of the current
475-
instruction, hence last two bits should be truncated. */
476-
return pcrel_addr + align_down (insn.address, 4);
477-
}
478468
/* B, Bcc, BL, BLcc, LP, LPcc: PC = currentPC + operand. */
479469
else if (insn.insn_class == BRANCH || insn.insn_class == LOOP)
480470
{

gdb/testsuite/gdb.arch/arc-dbnz.S

Lines changed: 0 additions & 47 deletions
This file was deleted.

gdb/testsuite/gdb.arch/arc-dbnz.exp

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)