From patchwork Tue Jun 17 18:09:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajit Kumar Agarwal X-Patchwork-Id: 1538 Received: (qmail 31070 invoked by alias); 17 Jun 2014 18:09:57 -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 31056 invoked by uid 89); 17 Jun 2014 18:09:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: na01-bl2-obe.outbound.protection.outlook.com Received: from mail-bl2lp0208.outbound.protection.outlook.com (HELO na01-bl2-obe.outbound.protection.outlook.com) (207.46.163.208) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 17 Jun 2014 18:09:54 +0000 Received: from BN1BFFO11FD026.protection.gbl (10.58.144.32) by BN1BFFO11HUB059.protection.gbl (10.58.144.206) with Microsoft SMTP Server (TLS) id 15.0.959.15; Tue, 17 Jun 2014 18:09:45 +0000 Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BN1BFFO11FD026.mail.protection.outlook.com (10.58.144.89) with Microsoft SMTP Server (TLS) id 15.0.959.15 via Frontend Transport; Tue, 17 Jun 2014 18:09:44 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-smtp1) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1WwxpU-0005vf-LV; Tue, 17 Jun 2014 11:09:56 -0700 From: Ajit Kumar Agarwal To: Pedro Alves , "gdb-patches@sourceware.org" CC: Michael Eager , Vinod Kathail , Vidhumouli Hunsigida , Nagaraju Mekala Subject: RE: [Patch, microblaze]: Communicate in larger blocks with the target. Date: Tue, 17 Jun 2014 18:09:41 +0000 References: <41df2189-0a72-4543-ba31-297f81e663d7@BN1AFFO11FD025.protection.gbl> <53A04753.5010102@redhat.com> <53A06E16.2020603@redhat.com> <6e827cdb-8f1d-4341-9891-78a471a4d14f@BY2FFO11FD033.protection.gbl> <53A07246.7010405@redhat.com> In-Reply-To: <53A07246.7010405@redhat.com> MIME-Version: 1.0 X-RCIS-Action: ALLOW Message-ID: <88cd0c2e-fc60-45af-b28f-53e3578a98d9@BN1BFFO11FD026.protection.gbl> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.83; CTRY:US; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(438001)(199002)(189002)(24454002)(377424004)(377454003)(479174003)(13464003)(51704005)(31696002)(86362001)(92566001)(64706001)(92726001)(74316001)(50986999)(99936001)(85852003)(83072002)(76176999)(54356999)(33646001)(79102001)(81542001)(74502001)(74662001)(31966008)(512954002)(46102001)(19580395003)(99396002)(76482001)(19580405001)(84326002)(6806004)(44976005)(83322001)(87936001)(2656002)(80022001)(20776003)(95666004)(104016002)(93886003)(1496007)(53416004)(4396001)(551934003)(21056001)(70736001)(77982001)(71186001)(81342001)(568964001)(77096002)(85306003); DIR:OUT; SFP:; SCL:1; SRVR:BN1BFFO11HUB059; H:xsj-pvapsmtpgw01; FPR:; MLV:sfv; PTR:unknown-60-83.xilinx.com; A:1; MX:1; LANG:en; X-OriginatorOrg: xilinx.onmicrosoft.com X-Microsoft-Antispam: BL:0; ACTION:Default; RISK:Low; SCL:0; SPMLVL:NotSpam; PCL:0; RULEID: X-Forefront-PRVS: 0245702D7B Received-SPF: Pass (: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=ajit.kumar.agarwal@xilinx.com; Hello Pedro: Review feedback are incorporated. Could you please review and let me know if its okay. [Patch, microblaze]: Use target_read_code in microblaze_fetch_instruction This patch uses target_read_code instead of target_read_memory in microblaze_fetch instruction in order to use cache memory accesses requested in target_read_code. ChangeLog: 2014-06-17 Ajit Agarwal --- gdb/microblaze-tdep.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c index 14c1b52..4e5b2d5 100644 --- a/gdb/microblaze-tdep.c +++ b/gdb/microblaze-tdep.c @@ -126,7 +126,7 @@ microblaze_fetch_instruction (CORE_ADDR pc) gdb_byte buf[4]; /* If we can't read the instruction at PC, return zero. */ - if (target_read_memory (pc, buf, sizeof (buf))) + if (target_read_code (pc, buf, sizeof (buf))) return 0; return extract_unsigned_integer (buf, 4, byte_order);