From patchwork Fri Dec 29 06:31:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 122920 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4341871qgn; Thu, 28 Dec 2017 22:59:40 -0800 (PST) X-Google-Smtp-Source: ACJfBot8+gkmNwnsiSNZ9LXz/vU8Xmi9pU9GFKGFBGdZcsXSSZLuT7j5wmgZkPDwjmtNWtJSHqzV X-Received: by 10.13.240.65 with SMTP id z62mr23037619ywe.398.1514530780938; Thu, 28 Dec 2017 22:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514530780; cv=none; d=google.com; s=arc-20160816; b=nrHysFaxGt8qFxCpFRHM/kkRVfRgESV5SWsjm/AF9aH1I+bvLx/XLDRVfwpFkMI2v9 maZmupnLcLPP7gvfWaBI8d52V0frggZw+1UmrfHaE8LjiuDl8sf/6LBB2vwKnG97p1O0 T9Dy0I69Yg89eRj+Sj7GhpU620zGQ8LjrhNQDKObOAqS+VrZBDdBLIQOBs83iSS0O5pZ nW1QsoNq5bZrm/5HCJxfuNEJizwHXD6dH/nyZCFVucRnzqCtOmA3BhBVK6LiQiakpYTD +eXCzPepI+JS7h3E6AfVw1KWhEGeqYHjS35vgO9nfzjUN6ecQeVlAdkAYxNMioy+G/gF IM+A== 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=lZ5ipaKAjhC0SbwQLFHYQaqfJOFJYM6RPa6c3XEb5a8=; b=QL0D53Klm/bgdjLpmEXBjLFcVmVfoWSSWcxKPHFqrIfo31LENzoOcaixjvhmVf6L+8 2NGqQn8sa2yFi7abYLZWwjcUji4c9RZZdlKe6x4y9YXl94r4lTWTQ0po9ZEJq36bui7l KyOfXSIr+jLhHqncdr3Uc4BPzhNg5vt7toaVLMW6foxRiGLS1krHV0c8xbGDWWZDVV0e JkAr6WZW2ombqJF+suSpZIpiFOLrEGgDDnGL/SdowUMr6pPi/LTURfJPXJgS7mbNSO39 JKBeD5ib0oU9AFgLL/GBidbGZqKYk//nO6Kj2EkCEA1vANmjXR3dkmnlh0q5nEfhIjKE iRsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fbYDxc9j; 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 c126si1419322ybf.371.2017.12.28.22.59.40 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Dec 2017 22:59:40 -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=fbYDxc9j; 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]:57270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUodo-0001De-Fx for patch@linaro.org; Fri, 29 Dec 2017 01:59:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUoDd-0003Px-8k for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUoDc-0004v2-71 for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:37 -0500 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]:43787) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUoDc-0004uo-1e for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:36 -0500 Received: by mail-pl0-x244.google.com with SMTP id z5so22529991plo.10 for ; Thu, 28 Dec 2017 22:32:35 -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=lZ5ipaKAjhC0SbwQLFHYQaqfJOFJYM6RPa6c3XEb5a8=; b=fbYDxc9jWJ8+UVn/C/lSxYwFEs48zWAzaaZSR+LuQHl6Yx6cBum4ACsPy+5uyXsizP fVCWC+TBlSSq1VseFzz90UbAyEqhobhWFOOIKfoj74QLzBh+5NrZcwykPgaZQCaNhZYc 6ApkzgiuWOkvGbywtEfwYmP51X+NyxbkbqlMI= 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=lZ5ipaKAjhC0SbwQLFHYQaqfJOFJYM6RPa6c3XEb5a8=; b=t5jMuiFaor5iM42T/emjtEjlAm51ZZI2Kd9jm1FyMSqEi9Bhj/dCZLzkQOH4HSgb+B Ijt2KmP+4xitxyL7gQHqz0SM0/i/RJLmOrEJ0hZrOvZKMGdZX0pEzGR9MmNML0A/xx5Q aZnQ3Rf/dyKOu9qjq9blME+zh+aBLJPNrUBqfN52BtraPToN9sSo12JHru/EUC2EKaBu QT1JjlQN0JT0F6hiZXxhijCx4gexQME8dr7bLgC4ZWvzLwEGfFMPk0HNXbwJIbWj6Z4t 1MmOlPQhDyDB6urIJ+kkGxPwlLrRTqFaOcMvuDjs8RrVXs9xWqVw/e0lnh4q+GtWrFIC Ousw== X-Gm-Message-State: AKGB3mL66nrs8O4zbwwyn/so59/nownCKKyCLFXuFGwvG22eyrkcUQTN aNUwzoheWBNTJ/+CYxKlH9Iq8eTpnrY= X-Received: by 10.84.133.44 with SMTP id 41mr33177802plf.188.1514529154850; Thu, 28 Dec 2017 22:32:34 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-183-164.tukw.qwest.net. [97.113.183.164]) by smtp.gmail.com with ESMTPSA id c28sm76539063pfe.69.2017.12.28.22.32.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2017 22:32:34 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 28 Dec 2017 22:31:42 -0800 Message-Id: <20171229063145.29167-36-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171229063145.29167-1-richard.henderson@linaro.org> References: <20171229063145.29167-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:c01::244 Subject: [Qemu-devel] [PATCH 35/38] 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: deller@gmx.de, =?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 c2fa151228..d5361ffd0e 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;