From patchwork Tue Sep 3 16:08:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 172829 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp53957ily; Tue, 3 Sep 2019 09:09:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwL+W7/zC923S+Pxc3VgK7ZPguEEcx3FMjZJsTZ/rYUqU0J+KVPwk/oHBCZ0HhEhVrIza7b X-Received: by 2002:a17:906:4d4b:: with SMTP id b11mr10392750ejv.0.1567526983579; Tue, 03 Sep 2019 09:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567526983; cv=none; d=google.com; s=arc-20160816; b=KYa4ql7QFeKOOYt9n5mvFe7nGwgxvGv+JuyaHg8UjJakqG5WlSiisVhN+ljvGv/u1n TwFjrxXQ+/lmRjFMxq5n4WYEiVgLTznkZF86zQ2mHNVoA7lrwfI4+aSXaU/5kCy5fiDM AeONDTwtJjwk9zYjxuLe0jaLR6stXS92UmRMGfqVApZ6lio+Gyhi11IXGvNSGYsQFwBl +LxMURGD0zTfn2QkY/UgAbwfSWIzffQk8uSLsbH4xkII5Uw6FsyMAOg93tOm1PciRay7 Q7WJ+T2z/G/kUcplE/nA6a12YmBYvILRB6c7gNPsdYBZgnz41S3HZTR/XsWybXm3m3rC qjjA== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=7UJaIX/+freOZ2GdMDK7ammoCcjV1M4dVe+L08Z47CI=; b=dpoj8z+ooOuIEMr+dTwN3U97AusJ2MVN3uwhektHcaBlZ7dlxYoeHzg9bjkNPK8uaQ zQRFcniTf3Cp7dg3hEQw967mpX7Vlho8GU8RAVCJkQx6VFG5696fTc6GRVHzPQ/IdgYr ScGbqt3bfAIEV0WKe1+0h8QfFb4rVlOsJvBvhcwURAxU9RSGQlg/1Asp8Zu1SqkRvTME Shn9ycaOCXusy/x/6l3AU76yscGtBYyyiptZjJ0QQZ1jOCw+n4To1gBVTqC3hCY08Cl9 YEyT++ONLCa2bIPd1evLmF0F8sx3qJ27C5sDKVaL3lfTvSu8dcdSDLuLoEJkVHhJPIW+ 01NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RPtx0Bu+; 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 l7si11453766eda.29.2019.09.03.09.09.43 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Sep 2019 09:09:43 -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=RPtx0Bu+; 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]:48386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5BNF-00014l-RV for patch@linaro.org; Tue, 03 Sep 2019 12:09:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37072) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5BMi-0000xn-Gm for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5BMg-0003d2-JE for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:07 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:42533) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5BMg-0003cM-4Z for qemu-devel@nongnu.org; Tue, 03 Sep 2019 12:09:06 -0400 Received: by mail-pg1-x544.google.com with SMTP id p3so9387178pgb.9 for ; Tue, 03 Sep 2019 09:09:05 -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=7UJaIX/+freOZ2GdMDK7ammoCcjV1M4dVe+L08Z47CI=; b=RPtx0Bu+FOJy74TnLekL5yY23SsqWsQOfZlovCmW+kWEKDdMzwpptwGzLNcW/8S1Zj gh57Wzeg2HUEnFMRKa20wZOjbFB2nej2P2Il/w7Jy0ejtDdfX7L4OPX4FpqF5Oh7tpQq 3gVlC7haQhhwthYQE2T305xEJVotEVlqQaL47wBDggnjD9Ugt4ZnEx1kZ9VlB9bG610Q 4WfrsqjINyCX1x5KZhWMF5XWvbcRTMr7jVhqdG5BjoBWq0erGNf+/Gvy8tTZvWiKGUlW GBG5eID1dPJwB4hXlEN3JhEo/QVYgBGXbLSGr0sYU5Oo5WsbMbq1iAxe9aFOYVTBT2O+ NxRQ== 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=7UJaIX/+freOZ2GdMDK7ammoCcjV1M4dVe+L08Z47CI=; b=KRbjLrk+PlnOG4TRA4y942D7W54wDclljsUraOmjHGYkBCaS5VwouX+pH5YrphHoUa ZJj0yS02VAGC1jeKwQ969JvZ3mJ8gNfURKGgdcoARPS9mg6T/EGCkTWJ6WtPRY6g4mT/ 8SVE84Q+IrOMjaLZwn1FoEmdElLDfpXqVAhchfJ6Rx4IiIcc9cdyshYRLaOkrb81Icgt LeAgA1oEnWh6XJIO/hi/GxQBL867m9LswWI+zEUrAd/jVPyoDb5u1WH8u6IZRlRIyp0i I/Maz6oiJEXlpob6dow0KZrRZW2oTDltTmh7r/Whpj9q5h52asNOI935Ox9g3ltCzEC7 lpBA== X-Gm-Message-State: APjAAAUXVRGlWhmaN+Y9TLUckrSA4VdhgeXU4eYalV5L0B+345cWOojC YmUsHiEbe+CyCpZNQ0xoQ5PO8f68zBg= X-Received: by 2002:a62:60c7:: with SMTP id u190mr41653209pfb.54.1567526944588; Tue, 03 Sep 2019 09:09:04 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 09:09:03 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 3 Sep 2019 09:08:25 -0700 Message-Id: <20190903160858.5296-4-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> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::544 Subject: [Qemu-devel] [PATCH 03/36] target/mips: Access MemoryRegion with MemOp 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 The memory_region_dispatch_{read|write} operand "unsigned size" is being converted into a "MemOp op". Convert interfaces by using no-op size_memop. After all interfaces are converted, size_memop will be implemented and the memory_region_dispatch_{read|write} operand "unsigned size" will be converted into a "MemOp op". As size_memop is a no-op, this patch does not change any behaviour. Signed-off-by: Tony Nguyen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Aleksandar Markovic Message-Id: Signed-off-by: Richard Henderson --- target/mips/op_helper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index f88a3ab904..1f0e88364a 100644 --- a/target/mips/op_helper.c +++ b/target/mips/op_helper.c @@ -24,6 +24,7 @@ #include "exec/helper-proto.h" #include "exec/exec-all.h" #include "exec/cpu_ldst.h" +#include "exec/memop.h" #include "sysemu/kvm.h" #include "fpu/softfloat.h" @@ -4741,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, - 8, MEMTXATTRS_UNSPECIFIED); + size_memop(8), MEMTXATTRS_UNSPECIFIED); } else if (op == 5) { /* Index Load Tag */ memory_region_dispatch_read(env->itc_tag, index, &env->CP0_TagLo, - 8, MEMTXATTRS_UNSPECIFIED); + size_memop(8), MEMTXATTRS_UNSPECIFIED); } #endif }