From patchwork Mon Jul 19 21:22:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 480054 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4505494jao; Mon, 19 Jul 2021 14:26:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQDArry4WnyGRphsF9WrP3o9omNrO3CNADCg7vRwG18lhJ1s9vW6FpP2ofu76hifeUs1I0 X-Received: by 2002:a25:3c1:: with SMTP id 184mr33956708ybd.309.1626729997662; Mon, 19 Jul 2021 14:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626729997; cv=none; d=google.com; s=arc-20160816; b=hmFA1d6fk3rkVIVz8j+zfyuaZLPUN2txLMk91C67iADtwzzAYnxSc5n+1EaVfPfTvA 85Yog0+3RF4V9hAN9yWYW1HmMd5VEfutgjaKecF5IGbknI/8qmohTX9wIpnO30K5Ppzx Zzm1DnxY3t6PdVHXCfQYuHZvsbQygN6XBtNJAFNWYnBwxj2qLq3/2NewoHL9TkRGOv7j vKEoQRGOFji8RdDa53LIfZD33wM7OKiFWhbmTxn2quFuWiMHzM/0C7bKuSkykmQR0YXQ oANBqcI9duxEtLRvnOyIled5FAC/WtxWwfiSge0gSkFK6IJ7G0qlBVmoOqk/eJpq49zq f0cw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=lIy9EI7XitWw8lbY9Bxr/rosSq+mhVjP0cNUkw2lFHM=; b=BUYaxDtF54hM/ejJsH5k82ZAQtX2mEzIOCtb++ibI6Mq8xajDRkN3dAnJLD9rqVD6B h0D8Sn5V5Be//O/yfwmD6Khaoaugr6bopuGPWN95O4rN2zWAxOXa6BRsBELh3NTKSjbJ 69SrzoT22BjsPov0lF+CanLHn6fR1XC/uusunRhdLSMjxTI0oRYqGZRGGjK4mtCQLBjm vvtUgbw6+DMuI7Vm99fY5hmKH2+46Buo9CFEKfMkqIeRvhscDiLLK4k9i56WV6eYAdCI WQuSw97Yoq6f3Xte6okDe529OM+v1KvJcbjW7VehBHQ6NvQTsiRvaPypN4679HlpApvc 8bDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=V67TnYsa; 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 c127si19611224ybb.160.2021.07.19.14.26.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Jul 2021 14:26:37 -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=V67TnYsa; 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]:60706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5amb-0003eD-4C for patch@linaro.org; Mon, 19 Jul 2021 17:26:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5aiv-0003oC-8v for qemu-devel@nongnu.org; Mon, 19 Jul 2021 17:22:49 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:54206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5ait-0000lq-KB for qemu-devel@nongnu.org; Mon, 19 Jul 2021 17:22:49 -0400 Received: by mail-pj1-x102c.google.com with SMTP id p9so12413344pjl.3 for ; Mon, 19 Jul 2021 14:22:47 -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 :mime-version:content-transfer-encoding; bh=lIy9EI7XitWw8lbY9Bxr/rosSq+mhVjP0cNUkw2lFHM=; b=V67TnYsattLVHYDdYh1MZTOA8pyxM3GA9j9o15vdWJSoMSi4oEnd36GUbVNKctk7Dn ZcoduRsZdSD1MWGe1663TjgQ1RDdbqzKiIZFU70k18bwVLPUobY/T17GXpp2PQHLUDuH NZ1UFK+lq56v27ENf36eKcyewERiir6hXcdnmllZbSY2CiclEvvy+VKhLoFkhwlW4zUC otRLcm47iojpAgvwW1cAf1Q0xnrH5Vvh+mJ0SfOZG4W/rOdq1t84TmGy875YaWnSQ/YU 35cXyO4RHtqENGIpV4G/iBnZnpSVLrwIyqW7s+rifJ+Gf3vCrNv0ACPXJKc47a71iBlh BNug== 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:mime-version:content-transfer-encoding; bh=lIy9EI7XitWw8lbY9Bxr/rosSq+mhVjP0cNUkw2lFHM=; b=n/EscIlayWLB1VVjiuqopbkA5BAtVeZIYEqm0zScqdAoWa9ALNZTsK1uF29MgC4ZCy i/2n2Q2zUPDrnWDF071zJslSh2Ruz4UyFhLWsF1bXipMGTLhyFjv+Ed85loMtPvIM9U5 z5LRrF3LIyJmY+qr37/TnXkVIkkVniE9VZMMr3XCQenhZm0lm7BRw5JDjIhjO/SeLjNn yoi8WyiFvz2ZosXrTQk0Uqfs7hX4aqJzIePktRSmn97vnogu3lvnVH0aSgEWJg5nv+lg bMwLxw+I4kSjyr4nMo8opa3B4muiCx9fM2FGDEAwrPv9EMxanUp8qfKlyPix/ja6oAY2 p9nw== X-Gm-Message-State: AOAM531LsEnO3ZX4e0789FI8d2g12Ryn2h3ah8Qv6v+R3zeAItuxV6y7 cp5s+upGmJ6vEr2wU8xp0Dpqo2GSzO+Yvg== X-Received: by 2002:a17:90a:7489:: with SMTP id p9mr32746395pjk.101.1626729766199; Mon, 19 Jul 2021 14:22:46 -0700 (PDT) Received: from localhost.localdomain (204-210-126-223.res.spectrum.com. [204.210.126.223]) by smtp.gmail.com with ESMTPSA id e4sm25008434pgi.94.2021.07.19.14.22.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 14:22:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-6.1 v4 02/15] accel/tcg: Move curr_cflags into cpu-exec.c Date: Mon, 19 Jul 2021 11:22:26 -1000 Message-Id: <20210719212239.428740-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210719212239.428740-1-richard.henderson@linaro.org> References: <20210719212239.428740-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102c.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: , Cc: peter.maydell@linaro.org, mark.cave-ayland@ilande.co.uk, alex.bennee@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We will shortly have more than a simple member read here, with stuff not necessarily exposed to exec/exec-all.h. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Reviewed-by: Alex Bennée Message-Id: <20210717221851.2124573-3-richard.henderson@linaro.org> --- include/exec/exec-all.h | 5 +---- accel/tcg/cpu-exec.c | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index dfe82ed19c..ae7603ca75 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -565,10 +565,7 @@ static inline uint32_t tb_cflags(const TranslationBlock *tb) } /* current cflags for hashing/comparison */ -static inline uint32_t curr_cflags(CPUState *cpu) -{ - return cpu->tcg_cflags; -} +uint32_t curr_cflags(CPUState *cpu); /* TranslationBlock invalidate API */ #if defined(CONFIG_USER_ONLY) diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index e22bcb99f7..ef4214d893 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -145,6 +145,11 @@ static void init_delay_params(SyncClocks *sc, const CPUState *cpu) } #endif /* CONFIG USER ONLY */ +uint32_t curr_cflags(CPUState *cpu) +{ + return cpu->tcg_cflags; +} + /* Might cause an exception, so have a longjmp destination ready */ static inline TranslationBlock *tb_lookup(CPUState *cpu, target_ulong pc, target_ulong cs_base,