From patchwork Tue Sep 3 16:08:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 172847 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp87102ily; Tue, 3 Sep 2019 09:34:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqymtgzuRWWwdWoGdCD0QToWyziLwBA9V6yE2CWUq9IqLrGmt9mqZjzwcLXklfQmbHt0EwYP X-Received: by 2002:a05:6402:17aa:: with SMTP id j10mr12408990edy.222.1567528304867; Tue, 03 Sep 2019 09:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567528304; cv=none; d=google.com; s=arc-20160816; b=h62yjbX5QesUA2CEkJ0d/WyMAoHS8prSUVf87Oor6SYuJK7AGdqRxiH51kq0W0u18H hkxGJyNBYm+ftL8GhkI+GrPqdoHgdlelgeNHsK6QxZuMdV5J6RWSGj3GvMhv0Q4L7ptr dktYjuJFEDm9m/PyaIM1inFJuJrhRLdu1iFSoz32iMRt2zyohnHp83Q6G6LA5LYegMvm ZWWOij8Hf5c9+xTDcSgEw7UeT1lo8A1/W9GXxbmSiccddUj4qNXy0X0bsFE4sT1hlhBM pyn7eMk1qPhOBQSx27ID/N4P2ZR21AkcVx0/kGwagIFuXrjKINBUme3Mhgkx5fMiQSdm MXEw== 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=MLPNZqiX+QrjMBnFEqgBOvGUopZ4Z5WeJtCGkzuh14A=; b=Vegxo6Gxh3BGgK0FFBIkq3iJ8iIKuMp9otJeEvi8iJ9KUVV1J10tqqRHW/j9K1MEJ7 u2FNSlJH7v7yOnwIBTCR/05Hp/avrcSYbZ5KZys8NMmK9+/1aqKAZNtn6CYAVjKXgiKp uyv0x5mRAwj4env2Sr2nnABjwkavP+VVTEItX3afmMvuvVwV+r7MJS8Cn9H5cIh6Z0EK B3VRb8+7/mVnhBASMOZaDSAXUAytVahPLpl2jyRTtwmCH7Q/BnTT5qjMok4XDP7Zlgq+ yx50p4czzbKbYy62Xnkyc19Pt/eGLCQLxE2tlcVf6VNydfrtR0wHRd8k1l9V+cyWdMXv 9HoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HXk05Aoy; 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 j38si7578376ede.374.2019.09.03.09.31.44 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Sep 2019 09:31:44 -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=HXk05Aoy; 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]:48978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5BiY-00089Y-Tr for patch@linaro.org; Tue, 03 Sep 2019 12:31:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37182) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5BMs-00016s-Ah for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5BMr-0003jU-A0 for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:18 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:33807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5BMr-0003j6-4C for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:17 -0400 Received: by mail-pf1-x444.google.com with SMTP id b24so11104478pfp.1 for ; Tue, 03 Sep 2019 09:09:17 -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=MLPNZqiX+QrjMBnFEqgBOvGUopZ4Z5WeJtCGkzuh14A=; b=HXk05AoybBUpieEAeoL90kbqAvSO0aRFNKk/bzeW+6BUk4aW3UjJhCB9i066r4CFsw 41EDBIUqcTOzASP4rp1o702e5PUEsuKmhgWPdwCZbve6BhPDL/mjjTBhrGL4VQsquGps h9g/mslmzKDDqMVc5hwp44pOjt/12U7Viz8Ge59WGJoLB5+RIQcz5GcOWEJ2mOJvnvc6 kkkWKrfH5CzbCh4QIas49VaADFUfBP9/raVC6f2e8oqVHUhaCLp1flLjoEMKlMV07AG2 eMQm7o5cahUnIY4AFiZp5MopujjeZkfeTp4gSNnKPlkxcHxKsCceMjpmBOyOwpu5DHlK Qskw== 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=MLPNZqiX+QrjMBnFEqgBOvGUopZ4Z5WeJtCGkzuh14A=; b=Jt31LW3C1roSZFxiBDrVH6XBywkGzSe2qjzVb2rqoFTDrcGEfHZQkGH5HdEW+9EU8u IejUYPyM55E7eFXNayPxqjfhaWvg4Ec+9eMx79U2pHDhvww3nrAeeTyO4pmkAdu3BAE5 o07toKA9rRWLMzcDQOKUfo8jK3MdQMyQGBb3QOcE32LoICESVyfAuFr3TueaQPXDIFjV HCn2jghnthIrfwCIYaKScW6yR+1d2fPk7eWUCsQGUODzV0SxlOXUnmh+jsU62f8erf1V 1LaAHqBYj/eDxCVPBGliIoIgGBX+z72d/K1n/1yFY7ONCMxo86CeWIsudhhtDC4M8NYE siiw== X-Gm-Message-State: APjAAAWDsiTGwwPhDMMxpzgtYQiWrgeydT72r7XLVIXxmjDhBtGBHcZQ zixudcyuSA0A7tR4SUrHSMEHQLUEo8E= X-Received: by 2002:a17:90a:f0c7:: with SMTP id fa7mr785pjb.115.1567526955918; Tue, 03 Sep 2019 09:09:15 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id 127sm28089711pfy.56.2019.09.03.09.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 09:09:14 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 3 Sep 2019 09:08:34 -0700 Message-Id: <20190903160858.5296-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190903160858.5296-1-richard.henderson@linaro.org> References: <20190903160858.5296-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::444 Subject: [Qemu-devel] [PATCH 12/36] target/mips: Hard code size with MO_{8|16|32|64} 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, Tony Nguyen Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Tony Nguyen Temporarily no-op size_memop was introduced to aid the conversion of memory_region_dispatch_{read|write} operand "unsigned size" into "MemOp op". Now size_memop is implemented, again hard coded size but with MO_{8|16|32|64}. This is more expressive and avoids size_memop calls. Signed-off-by: Tony Nguyen Reviewed-by: Richard Henderson Reviewed-by: Aleksandar Markovic Message-Id: <99c4459d5c1dc9013820be3dbda9798165c15b99.1566466906.git.tony.nguyen@bt.com> Signed-off-by: Richard Henderson --- target/mips/op_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 1f0e88364a..34bcc8d884 100644 --- a/target/mips/op_helper.c +++ b/target/mips/op_helper.c @@ -4742,11 +4742,11 @@ void helper_cache(CPUMIPSState *env, target_ulong addr, uint32_t op) if (op == 9) { /* Index Store Tag */ memory_region_dispatch_write(env->itc_tag, index, env->CP0_TagLo, - size_memop(8), MEMTXATTRS_UNSPECIFIED); + MO_64, MEMTXATTRS_UNSPECIFIED); } else if (op == 5) { /* Index Load Tag */ memory_region_dispatch_read(env->itc_tag, index, &env->CP0_TagLo, - size_memop(8), MEMTXATTRS_UNSPECIFIED); + MO_64, MEMTXATTRS_UNSPECIFIED); } #endif }