From patchwork Tue Nov 5 23:40:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Beata Michalska X-Patchwork-Id: 178573 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1451154ilf; Tue, 5 Nov 2019 15:41:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzR9OHqSHehz5IUrXk4nrq+d+hyfWKOm1lKnWABGeiapmj0ebVGS5ah7BvqaMjNK1bLWUxE X-Received: by 2002:a0c:fd46:: with SMTP id j6mr28893374qvs.209.1572997315905; Tue, 05 Nov 2019 15:41:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572997315; cv=none; d=google.com; s=arc-20160816; b=u8tvULn7tyOz79raS/RuL2xDB93jTRPS6tbnFEqIGY9ZKzWTpkN4IS8EX8e5DYJge9 Em43nNgmVInfvsHak2XDCNjl5X39dLQTKwFePo+TYd0AYxms/RqmwH4sMN7H4QDUCPR6 HMy0rEY/V2RN+5IhUSrs1edCLKeONv/gHBuo9atMlMRdH3y/0PAmneyq/fBcs5i9C4+U 1TJS0h89KCbOt5BxiB+C1YyydA+1Z+sfnXMbg1rsZeoLYrnyxXe6efTYUcmoMRAmJOnO fT/2y+O87rULIty0FEf9qXV1THb1+yZfm404JQ/Ba/2WeC1P+PxPpmLZou+125TWsYSp w1qw== 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=RzXz801WN8Wx2siaVGOD6DywcY9lAErvVsKc+KJI/kM=; b=exFmZbjshcpqsWihDDjvsLZLPepyi2CpctcRURKaaFLxlu0L6gxcSgzwAlBFtvLhca pu9p0YRJqgXodwBbOKnfwROaTqVYIyjrYq5qb7z/usZF6WwShx1NbFSzm/aZrBcgKSHT H9drhUFtCuXFs4jlUCYUjRGx7qz4RC24vFLa5jJvty+aNvcWNgxLEpPUxFxiic95uPtR A8DWMUuGpRAKBm4v3ni6nPBWEmoMlzInU2VWxZTCiXIDER6+3wPFShrm4LbEbqNGwYc9 S4gZt9YSbKktgg2zSPCxakIQpvvtlpeSBbyrTRah+UZGiDsliLt25iDc10YIxtA5/lEr MhGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=AuSe0hVB; 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 k3si17132110qtu.0.2019.11.05.15.41.55 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Nov 2019 15:41:55 -0800 (PST) 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=AuSe0hVB; 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]:51682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS8SR-0005Wy-EQ for patch@linaro.org; Tue, 05 Nov 2019 18:41:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37970) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS8SA-0005UU-QE for qemu-devel@nongnu.org; Tue, 05 Nov 2019 18:41:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iS8S9-0004d2-Oj for qemu-devel@nongnu.org; Tue, 05 Nov 2019 18:41:38 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:37421) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iS8S9-0004bm-HA for qemu-devel@nongnu.org; Tue, 05 Nov 2019 18:41:37 -0500 Received: by mail-wr1-x443.google.com with SMTP id t1so17626746wrv.4 for ; Tue, 05 Nov 2019 15:41:37 -0800 (PST) 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=RzXz801WN8Wx2siaVGOD6DywcY9lAErvVsKc+KJI/kM=; b=AuSe0hVBeklV+RVM2hnDJCbwpAIF4Z34BL4zM7yMYZKcHOZxyxaNgfQrW8ZV8e2e++ mU6fdzUZqxpe6oeiDXzA9uCIoSJgVAhr7b/1QtNaRVNHvUBIUY6Bxm7G53FA5K4NPGBP GJ9CZ3oqTM9W9cQI1PIcE25klx96XF5SI8Gl7A9qc0jz4/DEbFLlCrTcO9BvbruNLsSK tmOKG1nUQiVkFT2dRCSVlZfCqlryUNsXrx6ZJlbnHlgsnfZP6qlzw28VHIwg5NpK3UBz rRNpgLBG/ZYSofRzRYBaA+B/CL5/wezGWuTonyTcxRinVMLyG161MlWQ/nUg3xsn/S5X s/Kg== 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=RzXz801WN8Wx2siaVGOD6DywcY9lAErvVsKc+KJI/kM=; b=otWejV2qNYlX0mUM+nsDf8OrZfK6gkJAr8get2rQaQoOf8oL+XvhHJqaNBMYIuC5SE NTSGuov/tG/ip8WY1o8JHzow0UnZaVh9mqH4r0idk0PITxf0FOw3/8Q8FVKSFncRP4/k dvDyGrAEHyhNNNMhcallHhDZeZTnaC0kCKWilosyvRyHh4ldHxvAUwCQpGUiWQrEMEa4 1YT9jbJcdiMlM4U5CLY/ktQorjOi47pnsBqgzhbcEXWKsVTgadWuL3qgxQv7ezc+jXqr AFQ87vc/2PvHos3NgMViVUGoUgi/OPVn18SpyUX05JCB4/zocpiU+ZuFKeeXj1Fh/PXd CdUQ== X-Gm-Message-State: APjAAAWkRkr3QFpSbFjQzYGLPLsZSszH4bIBNCvxWzpK7D7CMkUPMuyu Vn1jh8edVnOtLKqvcUHFXDTvkBdynL9urQ== X-Received: by 2002:adf:d850:: with SMTP id k16mr25717671wrl.204.1572997296466; Tue, 05 Nov 2019 15:41:36 -0800 (PST) Received: from moi-limbo-9350.home (host86-144-13-94.range86-144.btcentralplus.com. [86.144.13.94]) by smtp.gmail.com with ESMTPSA id q25sm27295010wra.3.2019.11.05.15.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 15:41:36 -0800 (PST) From: Beata Michalska To: qemu-devel@nongnu.org Subject: [PATCH v2 1/4] tcg: cputlb: Add probe_read Date: Tue, 5 Nov 2019 23:40:57 +0000 Message-Id: <20191105234100.22052-2-beata.michalska@linaro.org> In-Reply-To: <20191105234100.22052-1-beata.michalska@linaro.org> References: <20191105234100.22052-1-beata.michalska@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 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, quintela@redhat.com, richard.henderson@linaro.org, dgilbert@redhat.com, shameerali.kolothum.thodi@huawei.com, eric.auger@redhat.com, qemu-arm@nongnu.org, pbonzini@redhat.com, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Add probe_read alongside the write probing equivalent. Signed-off-by: Beata Michalska Reviewed-by: Alex Bennée --- include/exec/exec-all.h | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.7.4 diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index d85e610..350c4b4 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -339,6 +339,12 @@ static inline void *probe_write(CPUArchState *env, target_ulong addr, int size, return probe_access(env, addr, size, MMU_DATA_STORE, mmu_idx, retaddr); } +static inline void *probe_read(CPUArchState *env, target_ulong addr, int size, + int mmu_idx, uintptr_t retaddr) +{ + return probe_access(env, addr, size, MMU_DATA_LOAD, mmu_idx, retaddr); +} + #define CODE_GEN_ALIGN 16 /* must be >= of the size of a icache line */ /* Estimated block size for TB allocation. */