From patchwork Fri Aug 9 15:41:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 170950 Delivered-To: patch@linaro.org Received: by 2002:ac9:2daa:0:0:0:0:0 with SMTP id g42csp9653277oce; Fri, 9 Aug 2019 08:44:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwN0tUrD3ifRtl1B01OFEASD2fjo3fLcWHLLTtxOkQwpvXuDMSydGJVRzy6QZ08BqV/ilAs X-Received: by 2002:a50:aa14:: with SMTP id o20mr22734387edc.165.1565365442669; Fri, 09 Aug 2019 08:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565365442; cv=none; d=google.com; s=arc-20160816; b=svCQvlBH0iF43KKX5Oj4U8cl/e45qQjlZzkEWwk0K18PTTbEHC3KtQZr4cjK/7ph5I jsYzfCJXsiw4d8z7gkCF9uMxl7wK/D9o42il2sBKLqavfNaJJx69pJZskfZf03QNMjfq 85wMDpQBTfHFufwhc7FPMrSYfM4TSVlMLh8VTKoJc1lGDbE34x3R11ykG04PXndlvl6K PK2reer3BZS87r1vqT9A2LM4F7Jf3nLYbc00KRQuUHfMUkAOZPJvM7Sx2PLWRTGFmgRM u7AEUWJQT+NlGCe8bKvMhPjNspBO/0rsWACPtQru3UnMl3DN5dFl0CgonAP6LaerSdJX Ng1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=x8MCVdcm8N9Wdyzx80ABjmXcKcOIg3c8JF8kLGEmqDw=; b=uUHyWpCiOhb9RMEF9aaXZNyx36REQd1vgl4oLTBl8xq08Zu7mPigzoQlECxCBA1JLc LOTP1P+Tw8KIZiKZU9dCzjOa0uBzfVshQnkLVhcob8g2VjtPXzyY4uNHYYNEwIPNHXH5 lQNKo9uZFNiFFEua+9NM26589DSY0sA1ozrxMit6dioghFWcjuOp4tjKgJW8UtWw73gj BcYhGh8LOYNXDdqO1HoDkI5hz9OO8wWC617K+xBXIQ/sQ3DURxgCrp0yQMkF3MKmaPS/ dxfiWz4hnKIYNOl8Ey3vnrufl8pxk/22yfPC/xOI+MF/+Be8K0W6Fg0zd9B9jXMg7HpO aDug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=loVYDKjB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v17si33579671eja.198.2019.08.09.08.44.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Aug 2019 08:44:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=loVYDKjB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw73h-0003f0-Md for patch@linaro.org; Fri, 09 Aug 2019 11:44:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50852) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw71q-0000hf-Au for qemu-devel@nongnu.org; Fri, 09 Aug 2019 11:42:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hw71n-0008VP-QQ for qemu-devel@nongnu.org; Fri, 09 Aug 2019 11:42:06 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:38649) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hw71n-0008SG-I2 for qemu-devel@nongnu.org; Fri, 09 Aug 2019 11:42:03 -0400 Received: by mail-pg1-x542.google.com with SMTP id z14so8816700pga.5 for ; Fri, 09 Aug 2019 08:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=x8MCVdcm8N9Wdyzx80ABjmXcKcOIg3c8JF8kLGEmqDw=; b=loVYDKjBaQT2QJuvWNv441HJ4opYXwOlNGJtXF7TcgVjOtY/Q5TxH1B3gcaIIE10s8 4m/5mFet2d2doJgS+C7NHkl71dKMhvcKFXA9Cr53VFJN+bVv4Vo27vSxAGBbL9PRYb9R 9F6ljy04E0bDeWuXq1sfdNfwEMZLm9tyB7Ex4sQOJhsOvB7M4VSNPYK+djHYFg7VojU0 MtuBefnWTW4Co+HtG0+4tUDiJto32DH8EbT6YlEY56i3H8I9otXAc6YMStZIMkGMzd0b G0IIyIQ1nPIUoYGART9l/srPZAUjoKTxhODqXrdGJIPuaE7XzdtI5niKqJo4YbJAeSUR uRTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=x8MCVdcm8N9Wdyzx80ABjmXcKcOIg3c8JF8kLGEmqDw=; b=YsItIPIlEI5yTWCQhLRX9wnob0v9uvvcObTxw/46DQKrEtr/8Bb+15jGA5imCcUH/W Sb5LAaxhpZzVXWFXdmslwqxg4K8KuYXqB4gbAlA2kwjaTFVVHjWjqy3a+42x5AerXZyK usJYi0lD1D0XBC2vvcbgRVDtJOMlSfv536oc77HnMGFKWWnffuKBfRdEtEluyd4gaOzv cSWsqsGdM2h4gLPiYcljqpGGkM8xGPqJY0dngfuCpWmMvMjH92GHGhwpsm7F2PJ8c8Oi eZFfWYyyYXbLAG9ATIltFcnQ0/9eN6H0EdFwdTD/jPOR963jY1EU9gYUSw5nesWh6EVs GYKA== X-Gm-Message-State: APjAAAVfoy7rGcYByXzzhrW1igWa3OVz7G6PKe/mw5QqtU9BKLswtAGI c+3bwoTUp309ne7OUOdfl9/ArzCxel0= X-Received: by 2002:a17:90a:360b:: with SMTP id s11mr9919689pjb.51.1565365320410; Fri, 09 Aug 2019 08:42:00 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id 67sm80452179pfd.177.2019.08.09.08.41.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 09 Aug 2019 08:41:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 9 Aug 2019 08:41:53 -0700 Message-Id: <20190809154153.31763-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190809154153.31763-1-richard.henderson@linaro.org> References: <20190809154153.31763-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::542 Subject: [Qemu-devel] [PATCH 3/3] target/riscv: Remove redundant declaration pragmas X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Alistair.Francis@wdc.com, qemu-arm@nongnu.org, qemu-riscv@nongnu.org, philmd@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These are now generated by decodetree itself. Signed-off-by: Richard Henderson --- target/riscv/translate.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Acked-by: Palmer Dabbelt Reviewed-by: Alistair Francis diff --git a/target/riscv/translate.c b/target/riscv/translate.c index 8d6ab73258..adeddb85f6 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -708,26 +708,9 @@ static bool gen_shift(DisasContext *ctx, arg_r *a, #include "insn_trans/trans_rvd.inc.c" #include "insn_trans/trans_privileged.inc.c" -/* - * Auto-generated decoder. - * Note that the 16-bit decoder reuses some of the trans_* functions - * initially declared by the 32-bit decoder, which results in duplicate - * declaration warnings. Suppress them. - */ -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wredundant-decls" -# ifdef __clang__ -# pragma GCC diagnostic ignored "-Wtypedef-redefinition" -# endif -#endif - +/* Include the auto-generated decoder for 16 bit insn */ #include "decode_insn16.inc.c" -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE -# pragma GCC diagnostic pop -#endif - static void decode_opc(DisasContext *ctx) { /* check for compressed insn */