Minor code cleanup in rs6000-tdep.c
This commit is contained in:
parent
773033d2d2
commit
dc59e98286
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user