From dc59e9828683ce04aa921cc9e7ee5f333c4c4fe3 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 2 Mar 1995 21:51:30 +0000 Subject: Minor code cleanup in rs6000-tdep.c --- gdb/rs6000-tdep.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gdb/rs6000-tdep.c') diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index f08c77d..e226f54 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -78,10 +78,14 @@ branch_dest (opcode, instr, pc, safety) switch (opcode) { case 18 : immediate = ((instr & ~3) << 6) >> 6; /* br unconditional */ + if (absolute) + dest = immediate; + else + dest = pc + immediate; + break; case 16 : - if (opcode != 18) /* br conditional */ - immediate = ((instr & ~3) << 16) >> 16; + immediate = ((instr & ~3) << 16) >> 16; /* br conditional */ if (absolute) dest = immediate; else -- cgit v1.1