From patchwork Tue Apr 7 05:43:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshinori Sato X-Patchwork-Id: 6032 Received: (qmail 53465 invoked by alias); 7 Apr 2015 05:43:30 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 53431 invoked by uid 89); 7 Apr 2015 05:43:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL, BAYES_50, RCVD_IN_DNSWL_NONE, SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mail2.asahi-net.or.jp Received: from mail2.asahi-net.or.jp (HELO mail2.asahi-net.or.jp) (202.224.39.198) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 07 Apr 2015 05:43:28 +0000 Received: from sa76r4 (y081184.ppp.asahi-net.or.jp [118.243.81.184]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id 3C4A8350E4 for ; Tue, 7 Apr 2015 14:43:26 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by sa76r4 (Postfix) with ESMTP id 036C2411B for ; Tue, 7 Apr 2015 14:43:26 +0900 (JST) Received: from sa76r4 ([127.0.0.1]) by localhost (sa76r4.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sWmD8Juuf7Aw for ; Tue, 7 Apr 2015 14:43:25 +0900 (JST) Received: from sa76r4.ysato.dip.jp (localhost [127.0.0.1]) by sa76r4 (Postfix) with ESMTP id D2BB04118 for ; Tue, 7 Apr 2015 14:43:25 +0900 (JST) Date: Tue, 07 Apr 2015 14:43:25 +0900 Message-ID: <874mos7ate.wl-ysato@users.sourceforge.jp> From: Yoshinori Sato To: gdb-patches@sourceware.org Subject: [PATCH][RX] RXv2 support User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.4 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-IsSubscribed: yes RXv2 added some register and extend accumulator. http://documentation.renesas.com/doc/products/mpumcu/doc/rx_family/r01us0071ej0100_rxv2sm.pdf This patch add extb and extent accumulator size. diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cfe7961..cf72533 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2015-04-07 Yoshinori Sato + + * rx-tdep.c (RX_ACC_REGNUM): Change to RX_ACC0_REGNUM. + (RX_NUM_REGS): Added new registers. + (RX_ACC0_REGNUM, RX_ACC1_REGNUM): New. + (rx_register_name): Add new registers. + (rx_register_type): extend acc size. + 2015-04-06 Doug Evans * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as diff --git a/gdb/rx-tdep.c b/gdb/rx-tdep.c index aa44f7a..8daf040 100644 --- a/gdb/rx-tdep.c +++ b/gdb/rx-tdep.c @@ -46,8 +46,9 @@ enum RX_FP_REGNUM = 6, RX_R15_REGNUM = 15, RX_PC_REGNUM = 19, - RX_ACC_REGNUM = 25, - RX_NUM_REGS = 26 + RX_ACC0_REGNUM = 25, + RX_ACC1_REGNUM = 26, + RX_NUM_REGS = 28 }; /* Architecture specific data. */ @@ -121,7 +122,9 @@ rx_register_name (struct gdbarch *gdbarch, int regnr) "bpc", "fintv", "fpsw", - "acc" + "acc0", + "acc1", + "extb" }; return reg_names[regnr]; @@ -133,8 +136,8 @@ rx_register_type (struct gdbarch *gdbarch, int reg_nr) { if (reg_nr == RX_PC_REGNUM) return builtin_type (gdbarch)->builtin_func_ptr; - else if (reg_nr == RX_ACC_REGNUM) - return builtin_type (gdbarch)->builtin_unsigned_long_long; + else if (reg_nr == RX_ACC0_REGNUM || reg_nr == RX_ACC1_REGNUM) + return builtin_type (gdbarch)->builtin_uint128; else return builtin_type (gdbarch)->builtin_unsigned_long; } diff --git a/include/ChangeLog b/include/ChangeLog index 35da015..97f2eee 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2015-04-07 Yoshinori Sato + + * gdb/sim-rx.h (sim_rx_regnum): Add new register. + 2015-03-10 Matthew Wahab PR ld/16572