From e599ff187aa6e6ad952cb4c5711b94504b403cbe Mon Sep 17 00:00:00 2001 From: "Dale S. Rahn" Date: Mon, 5 Jul 1999 20:22:17 +0000 Subject: correctly extract fields for disassembly. --- sys/arch/powerpc/powerpc/db_disasm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys') 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 #include @@ -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: -- cgit v1.2.3