From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20986 invoked by alias); 23 Dec 2009 03:35:17 -0000 Received: (qmail 20977 invoked by uid 22791); 23 Dec 2009 03:35:16 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from cdptpa-omtalb.mail.rr.com (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.120) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Dec 2009 03:35:12 +0000 X-Authority-Analysis: v=1.0 c=1 a=20KFwNOVAAAA:8 a=yQAJyOYol3RQsUc88rYA:9 a=QJXrN7MSdEB890-J7L0A:7 a=R666RSM2RV-lr4y0ChxgN3y77RwA:4 a=jEp0ucaQiEUA:10 Received: from [71.70.78.104] ([71.70.78.104:42823] helo=sk22g2) by cdptpa-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id 36/17-01470-CEF813B4; Wed, 23 Dec 2009 03:35:08 +0000 Received: from p1-ah2.localdomain.ysato.dip.jp (p1-ah2.localdomain [192.168.16.18]) by sk22g2 (Postfix) with ESMTP id 518935182 for ; Tue, 22 Dec 2009 22:35:08 -0500 (EST) Date: Wed, 23 Dec 2009 03:35:00 -0000 Message-ID: <87hbriqs5v.wl%ysato@users.sourceforge.jp> From: Yoshinori Sato To: gdb-patches Subject: [PATCH] RX sim btst instruction User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.3 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00354.txt.bz2 "btst #imm,Rs2" and "btst Rs,Rs2" is false result. Rs2 information is opecode.op[1]. Index: rx/ChangeLog =================================================================== RCS file: /cvs/src/src/sim/rx/ChangeLog,v retrieving revision 1.2 diff -u -r1.2 ChangeLog --- rx/ChangeLog 30 Nov 2009 23:37:39 -0000 1.2 +++ rx/ChangeLog 23 Dec 2009 03:17:15 -0000 @@ -1,3 +1,7 @@ +2009-12-22 Yoshinori Sato + + * rx/rx.c (decode_opcode): btst bit address mask fix. + 2009-11-30 DJ Delorie * rx/rx.c (decode_opcode): fix SWHILE logic. Index: rx/rx.c =================================================================== RCS file: /cvs/src/src/sim/rx/rx.c,v retrieving revision 1.2 diff -u -r1.2 rx.c --- rx/rx.c 30 Nov 2009 23:37:39 -0000 1.2 +++ rx/rx.c 23 Dec 2009 03:17:16 -0000 @@ -676,7 +676,7 @@ case RXO_btst: ma = GS (); mb = GS2 (); - if (opcode.op[0].type == RX_Operand_Register) + if (opcode.op[1].type == RX_Operand_Register) mb &= 0x1f; else mb &= 0x07; -- Yoshinori Sato