Minor code cleanup in rs6000-tdep.c

This commit is contained in:
Michael Meissner 1995-03-02 21:51:30 +00:00
parent 773033d2d2
commit dc59e98286
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Thu Mar 2 16:48:45 1995 Michael Meissner <meissner@cygnus.com>
* rs6000-tdep.c (branch_dest): Minor code cleanup, don't share
code between branch unconditional and branch conditional cases.
Wed Mar 1 09:41:26 1995 Doug Evans <dje@canuck.cygnus.com>
Various changes for sparc64.

View File

@ -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