From patchwork Tue Oct 19 00:00:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 515943 Delivered-To: patch@linaro.org Received: by 2002:ac0:cd8c:0:0:0:0:0 with SMTP id d12csp72215imp; Mon, 18 Oct 2021 17:09:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyaSVCcf9w/DlCqcwFHl0YJG4e5x85ltaafmsse3tWi5rliiBfuHzpS+TWXjCuXiOgJpzw X-Received: by 2002:ab0:812:: with SMTP id a18mr28934020uaf.33.1634602148552; Mon, 18 Oct 2021 17:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634602148; cv=none; d=google.com; s=arc-20160816; b=XSw+xcUW1cYEgqzDKCOazHExjGfzHmifp/gg7PFI04SdI/wZxHe8jaNjhOcjSxfDo3 ZndDGy4upaVlDadS1l1xp3AYYuYMFJcw0FV3cKI26K4z767ua4w9kB0alumSZEkDv/Cl g/s8qi4VADu+bzmYBOd5mhE/pw1dvP4YX003w91LEG6c/hz6NOovjAQxBNgHEAlmNJVU i7Wzl/Ljg7YB8KZNa0R6OqePnje/X/VTttQIxM3eOvqRUZ3hbENFiD+YvqeQft6tPe9g wrg2okbx43GnwtOzJ4KBip3pa0IUkoFECshV8Vgm/OVSrI8QNBtKwRE2nDJzFVEiSAWC otog== 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=bokkmTqu3PPB9lUNeGMuiR/uQoelWheprwGuLtvEEIw=; b=RanevYpVgaa78bqNH2D8d+QTK3UhVBGUqZQ/OIgLziZrunlvj4rv33yhqsS8Y/v2RG 3kg+koN1rHkzjEbgJVpJ0cWrjeyXOjhe8noVti14YBDggTdHZvTC4NgvWwNy2w9+Y/sd Ij2ZZK+wpMMyCKr3a8m0IFYTnEYBzbMd/C7grVdL+EF359Wi6ZqjAy1yQZlv0auEOyj8 STmjB7rCZOzhqHDo48oMHqCAgOCvBpRlu/fiAPt+LcTPEsH46g+IVqNBiZXO02xKN8r8 147tckog4aqBGfa2CN+9GQnH7x3RzUTdDk3xXMNH+dpr+R57nGp7Ue0UAwCQ8AbFU3xk +yug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OUiOPg4+; 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 o13si5422525uar.208.2021.10.18.17.09.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Oct 2021 17:09:08 -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=OUiOPg4+; 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]:37026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mccgl-0000js-Vq for patch@linaro.org; Mon, 18 Oct 2021 20:09:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mccZF-0004k0-7p for qemu-devel@nongnu.org; Mon, 18 Oct 2021 20:01:21 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:53198) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mccZA-0001fg-V8 for qemu-devel@nongnu.org; Mon, 18 Oct 2021 20:01:20 -0400 Received: by mail-pj1-x1035.google.com with SMTP id oa4so13360944pjb.2 for ; Mon, 18 Oct 2021 17:01:14 -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=bokkmTqu3PPB9lUNeGMuiR/uQoelWheprwGuLtvEEIw=; b=OUiOPg4+zVJ2nH/6xLZiBrwgcE/K7PCJ037FJdmrKuEU4EkRqlM+FQprzhR5xZ3QpL uiGAH29PTfcLMkMtLVTZBBdF08i242pRM+eE7hIel4fX7rjBFoJXuZOtvPsQBT7z/eVr 1QgjDRfDWMNolkd3HEtlrfnSw1XyCZMocyW9hF0iptDu1K9L+bdiiE+3r10RvH+Q0qzA XIeKvsbnHIlYHUW48JtRGoJqeq8Gei6vz/rGAMDccQvaDtNNs29wIkmbAUxKUmjAT7dC OAwLBKukrF1lHzvFa4vqzqijqoTTd6DyiEavQ2xoU4l5wDP1YEoN3tmcZKOwCjMpJLuN pL/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bokkmTqu3PPB9lUNeGMuiR/uQoelWheprwGuLtvEEIw=; b=oKHiGj/fZjFgmuQKYq8isPxFUW4UtnCw/6/+GFADAzEN3n1nBsW222OFMQmeefpdv0 RoH0xvL4lLTHhlmcLkso8l0Ugwx54ih+/6IP/NXs/N7DNcyDwMxKrRMYYCBHfZvSAITn 3CbDbw3llg4pZEqYbCCnV3Ekw1q2+7OHL39Wb2bOOW/2WaA4dXTkS00ZCn9KMp71KzPj ykQ+85norVz+s0LXyWTG1LAy+PN30Hyg77i7h8OFVRvo3X1hCPCftoTcCLwvvg7tMozP lqLjQWAAIiMMdzA5oFp8TqFginV4TWdzxAweUuGoeGLo0t3qlEqzRL4Q56SwHTmW9iPK 3P1A== X-Gm-Message-State: AOAM533v2Ti8ar1AiREfkAxYKbrUdp5RhsrxO1C732IAjgFVs+LV6xbU 5AvI/mOA36VheNsMb6BFHE8l6iiDTu40+g== X-Received: by 2002:a17:90b:1b42:: with SMTP id nv2mr2370959pjb.91.1634601673688; Mon, 18 Oct 2021 17:01:13 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id q14sm3068220pfk.3.2021.10.18.17.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 17:01:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 06/16] target/riscv: Use REQUIRE_64BIT in amo_check64 Date: Mon, 18 Oct 2021 17:00:58 -0700 Message-Id: <20211019000108.3678724-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211019000108.3678724-1-richard.henderson@linaro.org> References: <20211019000108.3678724-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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=unavailable 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: alistair.francis@wdc.com, qemu-riscv@nongnu.org, zhiwei_liu@c-sky.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Use the same REQUIRE_64BIT check that we use elsewhere, rather than open-coding the use of is_32bit. Reviewed-by: LIU Zhiwei Reviewed-by: Alistair Francis Signed-off-by: Richard Henderson --- target/riscv/insn_trans/trans_rvv.c.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc index 081a5ca34d..d60279b295 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -743,7 +743,8 @@ static bool amo_check(DisasContext *s, arg_rwdvm* a) static bool amo_check64(DisasContext *s, arg_rwdvm* a) { - return !is_32bit(s) && amo_check(s, a); + REQUIRE_64BIT(s); + return amo_check(s, a); } GEN_VEXT_TRANS(vamoswapw_v, 0, rwdvm, amo_op, amo_check)