Received: from eggs.gnu.org ([2001:4830:134:3::10]:42951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8LGd-0003jm-Mj for qemu-devel@nongnu.org; Mon, 05 Jan 2015 22:57:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8LGZ-0000Dz-2E for qemu-devel@nongnu.org; Mon, 05 Jan 2015 22:57:15 -0500 Date: Tue, 6 Jan 2015 11:57:54 +0800 From: Fam Zheng Message-ID: <20150106035754.GC2381@fam-t430.nay.redhat.com> References: <1420490526-6997-1-git-send-email-dmorrison@invlim.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1420490526-6997-1-git-send-email-dmorrison@invlim.com> Subject: Re: [Qemu-devel] [PATCH] target-openrisc: bugfix for dec_sys to decode instructions correctly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Morrison Cc: qemu-trivial@nongnu.org, peter.maydell@linaro.org, qemu-devel@nongnu.org, proljc@gmail.com On Mon, 01/05 12:42, David Morrison wrote: > Fixed the decoding of "system" instructions (starting with 0x2) > in dec_sys() in translate.c. In particular, the l.trap instruction > is now correctly decoded, which enables for singlestepping and > breakpoints to be set in GDB. Missing a Signed-off-by: line here. Fam > --- > target-openrisc/translate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/target-openrisc/translate.c b/target-openrisc/translate.c > index 407bd97..d36278f 100644 > --- a/target-openrisc/translate.c > +++ b/target-openrisc/translate.c > @@ -1320,7 +1320,7 @@ static void dec_sys(DisasContext *dc, uint32_t insn) > #ifdef OPENRISC_DISAS > uint32_t K16; > #endif > - op0 = extract32(insn, 16, 8); > + op0 = extract32(insn, 16, 10); > #ifdef OPENRISC_DISAS > K16 = extract32(insn, 0, 16); > #endif > -- > 2.2.1 > >