From patchwork Mon Jun 21 16:27:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 464546 Delivered-To: patch@linaro.org Received: by 2002:a17:906:71d0:0:0:0:0 with SMTP id i16csp4370861ejk; Mon, 21 Jun 2021 09:38:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx21XuqXQyR9uras8qwsL+8UxJgPwZTnX+PLNVym8fTtGn9unjGXzjocoK3q4oLspa6+tez X-Received: by 2002:a05:6102:1149:: with SMTP id j9mr18097916vsg.24.1624293533141; Mon, 21 Jun 2021 09:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293533; cv=none; d=google.com; s=arc-20160816; b=Svq2lh2kjiMKiPvnlfhM1bj6jxpsMkuVTaR9+kRmnloc03eqRvxTe80k9q3A50dlDl SrsWVVNDGZqkGWNWdNb5wGplUYu1gTFAx2QHHC9u5Vh3GklCBac7A1wnvkI2sPt5jnYG GtzxDRF0CDXT4CeBwAXcuf3WiN7kphXT6zAG6BageSE26x7TxjQYLICcWO4sminSYHE6 pdSaq5EH/9cBEWdZmcgVl1KWwYzS6cXOheQimpclvQ09DydG5vbzF8ucI4PANxewuvLe CnaydO82AeEzn4B2OWI4aGdj4DJB6DefAWMf3FPnw1lAnAgirfAQ2VGa196Cax8XzOks 8mlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=PqO2tfm/fXn5751DDoxxGt2P/gDrTGh7qNXdOpilhkc=; b=SSY+neSFomBcGvFspKnYArJIBBKvIxszuNjj653zD91bfs87p7MwOQcdABW6B1lqrJ R3TEkFrtrj6JrkiKkjCaoYr4ll6WuLHTHeV0FriAN82EPtLSNJ25c2woGe3QJZb9eKVL /eIKG4QoEVzk3xo0+nbQfdphobCDcvc5VaKtCe/ed8LlEZCFpWZHlYp5wIenhzFfnd/u w3qeKZpo6+UkYhRmxea12VsdtaOY0liOuxHnsdmiP1aHwPvvFZ03Pj5mwBeEgmAFW/d+ IRNsU4LCJ9OindqQQX0JrRsqyLM88XHBFTwVvggEMiEiMHRHUXfN5rJffFyN9rRflc95 aaVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lp+ZbsO2; 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=pass (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 v26si2460994vsm.52.2021.06.21.09.38.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jun 2021 09:38:53 -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=pass header.i=@linaro.org header.s=google header.b=Lp+ZbsO2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvMwm-0007Pf-DZ for patch@linaro.org; Mon, 21 Jun 2021 12:38:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvMmx-00070J-48 for qemu-devel@nongnu.org; Mon, 21 Jun 2021 12:28:43 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:53784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvMmu-0007Te-0W for qemu-devel@nongnu.org; Mon, 21 Jun 2021 12:28:42 -0400 Received: by mail-wm1-x333.google.com with SMTP id w13so4316482wmc.3 for ; Mon, 21 Jun 2021 09:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=PqO2tfm/fXn5751DDoxxGt2P/gDrTGh7qNXdOpilhkc=; b=Lp+ZbsO2HRqzlvFdFsccmrdRowRLVBU6sGBvGjQNMIH3TWgLlGxylCzykRAfHP/gmM GIskIZsSe42B0igiyutUi+BcUEui9DnCJ/aD3NYT2QEhHyv4+uKbDa3vMx0NmIpqmIBX QdsDRQJoUjWgNdAbEsumV5Fq/V78Y9+TLRwCvsa7gOyEBNZv/UFlUxSRcs+Ks7NytaSD Q1ypPFszTomTQJCiNU/uV5E13xlpkKXqQjNCtHKrpp1QrpoeVmS5eqhSJsEICJNUWM2F hYuPo/z92XMynWsmZf3arNulh5KmnZFNMP7zLUNRvrk7SSsTJtAXEP5BUHsR3bHMokfM B+cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PqO2tfm/fXn5751DDoxxGt2P/gDrTGh7qNXdOpilhkc=; b=aD1LO8R4jvib3pZZU0WB/rk2V3ErU9H8iJxRbTdXrdza2XrU5AlPV6nGehVi1lu3tr mF/hQj3+OmYWJJ/ov5rCMv6xH1ukZxovAMRK2+o9ZL4FrcPHJ7vARMHN9AWeDHKtqfpW Zv4BDFCfQeEeMyBZLQ9eW/y7PV95A1VyQWDanFw4yr9gka91k2owtE0LZt5PIXdNYYr+ bzb/Dvjma09wEcheVWMgynJFx911w/LGSJdEJ7RlDO1YwyKi1/iXlo1bF8h016SI5MYc YN8N8p5KQtgwlURRM7JzFSgWr7pK9x3qzVKgzFGOFyhl+yPjN1e8a6QVcKSmMdT9d8Az NwOQ== X-Gm-Message-State: AOAM532xRsvuF7nRlZMhREqrYPJ3y/THu4FO8l2B6dzRNbIhQwelD4+f 3+VTWjhM17tH68I4hlM0KCGkDG6SD3YlN+pe X-Received: by 2002:a7b:c30f:: with SMTP id k15mr28571447wmj.128.1624292918664; Mon, 21 Jun 2021 09:28:38 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id n65sm11615496wme.21.2021.06.21.09.28.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 09:28:38 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 05/57] target/arm/translate-vfp.c: Whitespace fixes Date: Mon, 21 Jun 2021 17:27:41 +0100 Message-Id: <20210621162833.32535-6-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210621162833.32535-1-peter.maydell@linaro.org> References: <20210621162833.32535-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" In the code for handling VFP system register accesses there is some stray whitespace after a unary '-' operator, and also some incorrect indent in a couple of function prototypes. We're about to move this code to another file, so fix the code style issues first so checkpatch doesn't complain about the code-movement patch. Cc: qemu-stable@nongnu.org Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 20210618141019.10671-2-peter.maydell@linaro.org --- target/arm/translate-vfp.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) -- 2.20.1 diff --git a/target/arm/translate-vfp.c b/target/arm/translate-vfp.c index 01e26a246d6..5a4a13ec1e1 100644 --- a/target/arm/translate-vfp.c +++ b/target/arm/translate-vfp.c @@ -771,9 +771,8 @@ static void gen_branch_fpInactive(DisasContext *s, TCGCond cond, } static bool gen_M_fp_sysreg_write(DisasContext *s, int regno, - fp_sysreg_loadfn *loadfn, - void *opaque) + void *opaque) { /* Do a write to an M-profile floating point system register */ TCGv_i32 tmp; @@ -874,8 +873,8 @@ static bool gen_M_fp_sysreg_write(DisasContext *s, int regno, } static bool gen_M_fp_sysreg_read(DisasContext *s, int regno, - fp_sysreg_storefn *storefn, - void *opaque) + fp_sysreg_storefn *storefn, + void *opaque) { /* Do a read from an M-profile floating point system register */ TCGv_i32 tmp; @@ -1207,7 +1206,7 @@ static void fp_sysreg_to_memory(DisasContext *s, void *opaque, TCGv_i32 value) TCGv_i32 addr; if (!a->a) { - offset = - offset; + offset = -offset; } addr = load_reg(s, a->rn); @@ -1242,7 +1241,7 @@ static TCGv_i32 memory_to_fp_sysreg(DisasContext *s, void *opaque) TCGv_i32 value = tcg_temp_new_i32(); if (!a->a) { - offset = - offset; + offset = -offset; } addr = load_reg(s, a->rn);