summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>1999-07-05 20:22:17 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>1999-07-05 20:22:17 +0000
commite599ff187aa6e6ad952cb4c5711b94504b403cbe (patch)
tree457ec77888df65cac209a28148cacd4c9c8e4e60 /sys
parente97092a9f3bc367f5c4c01a4421187c53bb55bc0 (diff)
correctly extract fields for disassembly.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/powerpc/db_disasm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/powerpc/powerpc/db_disasm.c b/sys/arch/powerpc/powerpc/db_disasm.c
index 0588921fd92..39eeeeea3d2 100644
--- a/sys/arch/powerpc/powerpc/db_disasm.c
+++ b/sys/arch/powerpc/powerpc/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.3 1998/09/09 04:37:08 rahnds Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.4 1999/07/05 20:22:16 rahnds Exp $ */
#include <sys/types.h>
#include <sys/param.h>
@@ -569,8 +569,8 @@ disasm_fields(const struct opcode *popcode, instr_t instr, char *disasm_str)
u_int sprl;
u_int sprh;
char *reg;
- sprh = extract_field(instr, 31 - 15, 5);
- sprl = extract_field(instr, 31 - 20, 5);
+ sprl = extract_field(instr, 31 - 15, 5);
+ sprh = extract_field(instr, 31 - 20, 5);
spr = sprh << 5 | sprl;
/* this table could be written better */
@@ -732,8 +732,8 @@ disasm_fields(const struct opcode *popcode, instr_t instr, char *disasm_str)
u_int tbrl;
u_int tbrh;
char *reg;
- tbrh = extract_field(instr, 31 - 15, 5);
- tbrl = extract_field(instr, 31 - 20, 5);
+ tbrl = extract_field(instr, 31 - 15, 5);
+ tbrh = extract_field(instr, 31 - 20, 5);
tbr = tbrh << 5 | tbrl;
switch (tbr) {
case 268: