From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20512 invoked by alias); 7 Mar 2011 16:04:41 -0000 Received: (qmail 20503 invoked by uid 22791); 7 Mar 2011 16:04:40 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,SPF_SOFTFAIL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate5.uk.ibm.com (HELO mtagate5.uk.ibm.com) (194.196.100.165) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Mar 2011 16:04:35 +0000 Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate5.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p27G4OZZ003654 for ; Mon, 7 Mar 2011 16:04:24 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p27G4bAw1958130 for ; Mon, 7 Mar 2011 16:04:37 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p27G4NYn031809 for ; Mon, 7 Mar 2011 09:04:23 -0700 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id p27G4M7r031413; Mon, 7 Mar 2011 09:04:22 -0700 Message-Id: <201103071604.p27G4M7r031413@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 07 Mar 2011 17:04:22 +0100 Subject: Re: [patch, arm] Use cached dsc->is_thumb instead of re-computing To: yao@codesourcery.com (Yao Qi) Date: Mon, 07 Mar 2011 16:22:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <4D74FD4E.7040701@codesourcery.com> from "Yao Qi" at Mar 07, 2011 11:44:14 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2011-03/txt/msg00465.txt.bz2 Yao Qi wrote: > > added prototype declaration for displaced_read_reg is now unneeded again. > > I guess you mean "displaced_in_arm_mode" here. Removed its declaration. Yes, sorry, that's what I meant. > * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode. > (displaced_read_reg): Add `dsc' parameter, remove `from' parameter. > Use cached result instead of calling displaced_in_arm_mode again. > (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter. > (displaced_write_reg, copy_preload, copy_preload_reg): Callers update. > (cleanup_copro_load_store, copy_copro_load_store): Likewise. > (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise. > (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise. > (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise. > (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise. > (cleanup_block_load_all, cleanup_block_store_pc): Likewise. > (cleanup_block_load_pc, copy_block_xfer): Likewise. > * arm-linux-tdep.c (arm_linux_copy_svc): Callers update. > (arm_catch_kernel_helper_return): Likewise. > * gdb/arm-tdep.h : Update function declarations. This is OK. Thanks, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com