From 4dede6ee32be62a48db41b107a68dea1710343a8 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Sun, 13 Jul 2003 06:30:46 +0000 Subject: my loathing for gcc runneth over: another case where a bitfield isn't decoded properly with the instruction decode stuff. --- sys/arch/sparc64/sparc64/emul.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc64/sparc64/emul.c b/sys/arch/sparc64/sparc64/emul.c index fa4b7ed7bff..9d5f8a8cd4e 100644 --- a/sys/arch/sparc64/sparc64/emul.c +++ b/sys/arch/sparc64/sparc64/emul.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emul.c,v 1.8 2003/07/12 06:27:38 jason Exp $ */ +/* $OpenBSD: emul.c,v 1.9 2003/07/13 06:30:45 jason Exp $ */ /* $NetBSD: emul.c,v 1.8 2001/06/29 23:58:40 eeh Exp $ */ /*- @@ -502,7 +502,7 @@ emul_qf(int32_t insv, struct proc *p, union sigval sv, struct trapframe *tf) asi = ins.i_asi.i_asi; addr = tf->tf_global[ins.i_asi.i_rs1]; - if (ins.i_loadstore.i_i) + if (ins.i_int & 0x2000) addr += SIGN_EXT13(ins.i_simm13.i_simm13); else addr += tf->tf_global[ins.i_asi.i_rs2]; -- cgit v1.2.3