From patchwork Mon Jan 22 03:42:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 125320 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp950903ljf; Sun, 21 Jan 2018 20:09:36 -0800 (PST) X-Google-Smtp-Source: AH8x225NNLKyDLbtadR5OhP90nOL00fY9oV06d5taY4r4DJPJMFqmmEZCf9asPaY9MO9U7/7d+41 X-Received: by 10.37.49.134 with SMTP id x128mr6436931ybx.388.1516594176693; Sun, 21 Jan 2018 20:09:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516594176; cv=none; d=google.com; s=arc-20160816; b=cocwGZdbg70yKlcPWeLHDTvrb+ugDTARgO8NH9zbYbPoWYqu0MJegezeFcq6yZp2tt ZrFhM+gKcsnm43SsnnY2cx5mudsk1BN/BixmnMToE0SETSYQ7WzUT84yoWfV9xVsEa7B tMBSBqZa9jmR54Fk3zSgURkXP3gdE/sqdIRcVw8ZPM8LlPkqH4Ia5f4NQM46Zy0qcOXu pvmwThLSOMRhkbbxwB2Psi7QpFwiB6+8mCbO2h21b8SPlrmiRcKlHxiXzYqnjFgjx8UU eHWqk0bIEmOxZ1Swoahfmdx3D4Av6MRWkOOW/JpQHX1q/so5ZQdP1eHqPMKl+JQWbLCx cnuQ== 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:arc-authentication-results; bh=Vti81VcYGKqh4UY2jYTWy88W87kMYI3hQYWy+iTEQXk=; b=OGcT1bS2i+0Cjgs5mLAbvXjOEbYpfg06v8ZQ9weIPMJWj63N0JNC5VpEOmzAodZbiD tXtlsChAo9DpudeGEktiOjniLRT6cnfbxXCZEfeWLnzbPuSyicr5GxJcipMTa8QcaTu3 9QQW/emStIRrkMdv26F56lbj6xvEbapM+wCwOeE3ib2ZZFwx8EvOjuQDXL9cYhTQZsCo RS3/7WBSCHkHWsGmYp9UC98/61bbb+ErixGng8CkWIBTyRuLUkUsdTk6sVeSSrbfwHXu MG874qsv+bt+vOIfF0CAeEgSpyhCKumD74VQiwt576MAOlXyuVmRPeFKC4tGEUjBHA0b Eu2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OSZdIz5P; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id u7si1746434ybf.332.2018.01.21.20.09.36 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 21 Jan 2018 20:09:36 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=OSZdIz5P; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:41802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edTQO-0000aG-1p for patch@linaro.org; Sun, 21 Jan 2018 23:09:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edT0p-0005w1-Lp for qemu-devel@nongnu.org; Sun, 21 Jan 2018 22:43:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edT0m-0006l1-JW for qemu-devel@nongnu.org; Sun, 21 Jan 2018 22:43:11 -0500 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:35400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edT0m-0006ik-Cv for qemu-devel@nongnu.org; Sun, 21 Jan 2018 22:43:08 -0500 Received: by mail-pf0-x244.google.com with SMTP id t12so6084819pfg.2 for ; Sun, 21 Jan 2018 19:43:08 -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=Vti81VcYGKqh4UY2jYTWy88W87kMYI3hQYWy+iTEQXk=; b=OSZdIz5PMSYe88TwizTE/y0mteNGFRKRVshlmAqVz11NUf2CEHPh6RcWSVC6FKroGC AaozhtwJoRTSbRRYc6FiLvcYNoy3F3ohlWmQHkezpYV41FakscCmjemqAtz4RV60agvL dcBen36OXkXRPcc6baasYmfj314cmqO/RohvQ= 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=Vti81VcYGKqh4UY2jYTWy88W87kMYI3hQYWy+iTEQXk=; b=S/PrCR4a9WaycAxwXeR4BKfv0h+XnYMZuQxtxKxGKwHJSAJRC/kTcL94jPyOxegtoE 2/w+/PK+7xTk9ZPfXY9PFLx52HaaijiENvAh/hMvuFU94dpBHhODTH/4G5/xcf295jsu RYJqZ2n6TR6QRIsIb8gZZobIZM/QQ9Uq8MHU2CToUpBqWjmEYvsUr6suWcTpQtnNdeap qfy5WNIvW+sxhfvsHtKHj4kxGEq2dfAxf+2P8S3BWjNgNOqtotVs0++KvitNV/57olur raZspa5+1m73UaJI6su+tRvUZG94394zsuA3WkSvNrdfVLBEUf7a7u5Rpk+9JASRjgPS E45w== X-Gm-Message-State: AKwxytdtj+FENn+aVm+eTj8O4Q0uwsv1QbwpLdlFc+k2GWUWvgyfF8Pw 1KGKnNygPXEE5/W2fRHniOg7STxVhno= X-Received: by 10.99.171.78 with SMTP id k14mr6014540pgp.287.1516592587075; Sun, 21 Jan 2018 19:43:07 -0800 (PST) Received: from cloudburst.twiddle.net (174-21-6-47.tukw.qwest.net. [174.21.6.47]) by smtp.gmail.com with ESMTPSA id z125sm182023pfz.27.2018.01.21.19.43.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Jan 2018 19:43:06 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 21 Jan 2018 19:42:07 -0800 Message-Id: <20180122034217.19593-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180122034217.19593-1-richard.henderson@linaro.org> References: <20180122034217.19593-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:400e:c00::244 Subject: [Qemu-devel] [PULL 33/43] qom: Add MMU_DEBUG_LOAD X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, =?utf-8?q?Andreas_F=C3=A4rber?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This lets us tell bottom levels of virtual memory translation routines that the access is from within QEMU itself and bypass certain tests. Cc: Andreas Färber Signed-off-by: Richard Henderson --- include/qom/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.14.3 diff --git a/include/qom/cpu.h b/include/qom/cpu.h index 93bd546879..6367acca97 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -64,7 +64,8 @@ typedef uint64_t vaddr; typedef enum MMUAccessType { MMU_DATA_LOAD = 0, MMU_DATA_STORE = 1, - MMU_INST_FETCH = 2 + MMU_INST_FETCH = 2, + MMU_DEBUG_LOAD = 3 } MMUAccessType; typedef struct CPUWatchpoint CPUWatchpoint;