From patchwork Mon Dec 16 11:08:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 1210304 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="LSMlUMSN"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47bzjS4cSRz9sPT for ; Mon, 16 Dec 2019 22:35:40 +1100 (AEDT) Received: from localhost ([::1]:51852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igof4-0007Zc-2p for incoming@patchwork.ozlabs.org; Mon, 16 Dec 2019 06:35:38 -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) 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) 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) 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 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Beata Michalska Add probe_read alongside the write probing equivalent. Signed-off-by: Beata Michalska Reviewed-by: Alex Bennée 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, 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. */