From nobody Thu Dec 18 19:32:26 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1576496184; cv=none; d=zohomail.com; s=zohoarc; b=VO2Zl+E/sXR+AO9UpZSfx6AkvjqNC4hK8/ugLSF+Lj5d3lUiMfiLe8jjpDHjkKR3bFy58SGKSshIfXqCTJMe16DCbCH5Zs0ott/nH8H4sUUM/wk9ruYJXW/jB0Guc5XJya2LsbpzzbGDmuu4PyHZgBCvp6ylOKrO3sKHjNmjmHs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576496184; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=UiJZOf8roQyIB6kTmOAd2zer7SLUCnDoCQmZEmstycM=; b=AQ/jZ6ua/yC0vi9xYhtTdpL4GLUJj+BnyeatgE9dcqCTFOC3gz2TXAr1jtJslUhHbZYjXV34rvNnl1jxbHm+rSfYcWcfFt40iskj1NbPryk7iw8FZmQWfy3QOaN8/Ctc6ZmXA541BZWnL+z3Iv+eOETWWImaTbBL0jcDJcz77UE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576496184449609.6526266860319; Mon, 16 Dec 2019 03:36:24 -0800 (PST) Received: from localhost ([::1]:51888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igofm-0000iX-T2 for importer@patchew.org; Mon, 16 Dec 2019 06:36:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51183) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igoFt-000856-JD for qemu-devel@nongnu.org; Mon, 16 Dec 2019 06:09:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igoFs-00009U-IE for qemu-devel@nongnu.org; Mon, 16 Dec 2019 06:09:37 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:36299) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igoFs-00008D-CI for qemu-devel@nongnu.org; Mon, 16 Dec 2019 06:09:36 -0500 Received: by mail-wm1-x341.google.com with SMTP id p17so6225475wma.1 for ; Mon, 16 Dec 2019 03:09:36 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id x10sm20976131wrp.58.2019.12.16.03.09.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2019 03:09:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=UiJZOf8roQyIB6kTmOAd2zer7SLUCnDoCQmZEmstycM=; b=LSMlUMSNd/2Z+DmESGWmkX1tYN2sN6tECm2Wto+Tho4ikqxA1utBxJ0YTnll1V2NDg sZ1As89tU3gbRsOZ/8jz0TBdu9Zg4AuY6JATm9ei54s2w0WzRWszR6sQsmY3tig1ZUTP waHsoDEC6Bn93JFClY14ZkgQmWYExKJaRp0rqmoWctU8I5Y9ONO5vT7Hin+75tTY6pWc WE+HxruOBkWZRiUI8yHWfoLhiLD0y+w/tgcYGebfGMMr0fjPGm1U3xaVU00LYJqkazo2 QBqtoncnVVJDkP4pdeK59Jit4/V8kxAoIwsLUm05678ceHt8jdqE0bEH3mcASu0zR1C0 5DwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UiJZOf8roQyIB6kTmOAd2zer7SLUCnDoCQmZEmstycM=; b=k/KkAa6RgVCjQ7CMkbC+2IjUlwV9eDt4vOKJ9bW+qWPPLq0wIGbhMc0mYwIt9Cu3cw 4QG+XfxOT9sWwngv15gJFgec7cgO+Q3a+lG84OBXmQ6fwv3eS0Gr2DbziIPaG8bhaltL etVMPMOaeNQV2EiXkSJ6229Jr+EAphe3AInIB/JyeAvGLsFA8jPaly+kdmUTgAKSYvyo ssioxftoKceWcmtG3meb8KRSmi/qY8LxsSe+fwcSbOMoHNlG+4N0W68MnUhice3NFyWZ FZjy8mt2rUHrnLe0k+na8+aIV7SKmdx+Ob8Lp74npVtQ2YNYM3EPq1bNuHM4pyqlEwyE NLYg== X-Gm-Message-State: APjAAAWs78uszMkqnDs+5AiLd32HiKSR8Po+yE2/RdptLuSXewtRzCk0 GkjeS+NYFhx68XFT8ieShZ2QsN9uySsbiw== X-Google-Smtp-Source: APXvYqxHPm0YkIiAZNnuTVExV87nJGdbEXhwkKc0BrtdlJ5ekPWiMB4CYxQKzf92GujjTMKDdTDDDQ== X-Received: by 2002:a1c:7918:: with SMTP id l24mr31471321wme.125.1576494575148; Mon, 16 Dec 2019 03:09:35 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 26/34] tcg: cputlb: Add probe_read Date: Mon, 16 Dec 2019 11:08:56 +0000 Message-Id: <20191216110904.30815-27-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191216110904.30815-1-peter.maydell@linaro.org> References: <20191216110904.30815-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: Beata Michalska Add probe_read alongside the write probing equivalent. Signed-off-by: Beata Michalska Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Message-id: 20191121000843.24844-2-beata.michalska@linaro.org Signed-off-by: Peter Maydell --- include/exec/exec-all.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index d85e610e85b..350c4b451be 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -339,6 +339,12 @@ static inline void *probe_write(CPUArchState *env, tar= get_ulong addr, int size, return probe_access(env, addr, size, MMU_DATA_STORE, mmu_idx, retaddr); } =20 +static inline void *probe_read(CPUArchState *env, target_ulong addr, int s= ize, + 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 >=3D of the size of a icach= e line */ =20 /* Estimated block size for TB allocation. */ --=20 2.20.1