From patchwork Thu Nov 19 13:01:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 9742 Received: (qmail 122137 invoked by alias); 19 Nov 2015 13:01:17 -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 122055 invoked by uid 89); 19 Nov 2015 13:01:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f42.google.com Received: from mail-pa0-f42.google.com (HELO mail-pa0-f42.google.com) (209.85.220.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 19 Nov 2015 13:01:13 +0000 Received: by pacdm15 with SMTP id dm15so80846800pac.3 for ; Thu, 19 Nov 2015 05:01:12 -0800 (PST) X-Received: by 10.66.194.16 with SMTP id hs16mr10291061pac.93.1447938071806; Thu, 19 Nov 2015 05:01:11 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id ag1sm10658559pbc.41.2015.11.19.05.01.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Nov 2015 05:01:11 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 4/4] Change argument opcode type from enum aarch64_opcodes to uint32_t Date: Thu, 19 Nov 2015 13:01:02 +0000 Message-Id: <1447938062-29624-5-git-send-email-yao.qi@linaro.org> In-Reply-To: <1447938062-29624-1-git-send-email-yao.qi@linaro.org> References: <1447938062-29624-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes The patch fixes the following errors in C++ build, gdb/gdbserver/linux-aarch64-low.c: In function 'int emit_data_processing(uint32_t*, aarch64_opcodes, aarch64_register, aarch64_register, aarch64_operand)': gdb/gdbserver/linux-aarch64-low.c:1071:52: error: invalid conversion from 'unsigned int' to 'aarch64_opcodes' [-fpermissive] return emit_data_processing_reg (buf, opcode | operand_opcode, rd, ^ gdb/gdbserver: 2015-11-19 Yao Qi * linux-aarch64-low.c (emit_data_processing_reg): Change opcode type to uint32_t. --- gdb/gdbserver/linux-aarch64-low.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c index 7cd9b77..cb78666 100644 --- a/gdb/gdbserver/linux-aarch64-low.c +++ b/gdb/gdbserver/linux-aarch64-low.c @@ -1029,7 +1029,7 @@ emit_stlr (uint32_t *buf, struct aarch64_register rt, /* Helper function for data processing instructions with register sources. */ static int -emit_data_processing_reg (uint32_t *buf, enum aarch64_opcodes opcode, +emit_data_processing_reg (uint32_t *buf, uint32_t opcode, struct aarch64_register rd, struct aarch64_register rn, struct aarch64_register rm)