Message ID | 20180124232625.30105-34-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp744283ljf; Wed, 24 Jan 2018 15:58:53 -0800 (PST) X-Google-Smtp-Source: AH8x22482u4A9bQDcFdrLkIeTs+X5uB0rmvqS71qOCXq6TDwiMJckeFBuTMJ4aR03zW4ljeaW3Px X-Received: by 10.37.79.195 with SMTP id d186mr6728259ybb.482.1516838333353; Wed, 24 Jan 2018 15:58:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516838333; cv=none; d=google.com; s=arc-20160816; b=O5VaVquE6EdyX5Y6AV5lXKOPu6dzoTh6vMkoy0LxiAtD3uTfMGQrRSSRaz5jANNY0t 2jD3/WGRT2AMxFBOD4ZpqkJxxwJvUt704CtF6A8JGXv2D/nLSUzhXVo/Kw4FOT7OkFbn DoVKdr1CPpzPaurybcIWmj6IkQdTEcGYk69+IaNX4oByuPMJ976+i177Yfya8Z8Vf5zR kDrK/Qvuz/zmbuZQt+zv0dvjkthAtQtjnVuX36UlklfjhkaoxpsE+bsfapxtn0rkVENN BruhWfm7vCJd6dubW6Xol194VFWIrzBL30/XVFCVKZuacsAy88mBl5C3ZWO/moy6TcSN MBpA== 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=xn4bhEwKxjI4xsJWxskbh4FNSmb1M37z+WdKtA6veJo=; b=dSFlJLYScYLlf4DODFpbpdJOLlse0l1GLIXGC6TW5O1REBE0AnQZP7hITOF0++D7VT vm7LPfJVADritvCx1BU0CGSdgwEBLvDVa7VAT8Ji51t4xs7ZazdIij3fSGjkIfiS326j Hg2VJc189APp/AYdettWrx6EbaNJfKBG1h4Izk+dn0ZzcYLt7lCckHdLQTeVM9wuu5HQ zX+lmDYePaFg5rLNDv/dnZq2hWvW32MwhJj6UfDwl6hE5IXfJiwVeadFVWHdwirrZDdp AmNrfjcZqQa5MVZhrODYMiTWJ20L5pXj+Wc/PXpTCfxhqdRt+6j+2KJqSq+U+arnEDHN /+aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DEghSbpF; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id j187si241509ywb.105.2018.01.24.15.58.53 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 24 Jan 2018 15:58:53 -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=DEghSbpF; 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]:55492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1eeUwO-0005Yx-RQ for patch@linaro.org; Wed, 24 Jan 2018 18:58:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eeURs-000512-7H for qemu-devel@nongnu.org; Wed, 24 Jan 2018 18:27:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eeURr-00022k-AK for qemu-devel@nongnu.org; Wed, 24 Jan 2018 18:27:20 -0500 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:42674) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eeURr-00022T-4T for qemu-devel@nongnu.org; Wed, 24 Jan 2018 18:27:19 -0500 Received: by mail-pg0-x242.google.com with SMTP id q67so3809701pga.9 for <qemu-devel@nongnu.org>; Wed, 24 Jan 2018 15:27:19 -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=xn4bhEwKxjI4xsJWxskbh4FNSmb1M37z+WdKtA6veJo=; b=DEghSbpF/OXnjX6M4T4dKm6VlYVd6rSWGo1BrfbCIfqKm+rcCMveG2M3fohA+JQlaQ VQpVVSqXBeElCO5bLB4/uyLRtPYRDg/VPL2oy+Ax89dN7o3Xil7wn1p1Y8nVSJpCNgIQ 6Cuz9ghue/aAc2gNp0mYibdVrQ3wHR1N+OAs4= 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=xn4bhEwKxjI4xsJWxskbh4FNSmb1M37z+WdKtA6veJo=; b=UmyeNNG31mSoTO+VU1zZyQ5MwXk18OL82l+GJ1vExy5J8eSBbuHEutQxOLrelLx0xr 6OA4ZxWMOhVz41W7wHVKWTuW0vbUBB/yuSt45TObW2qZpDytx6WiS+Sg2mPQZ997HK2J OEaFT9UM/L0Vgeu5dtYu7b/U7rZq0pNT1kRM7XiLd+SPKLBs7ZUaZouH8jOWed1Ra4D1 uG0MdCJk7HO74vhNU8O9COFgWY1KOqX+EWkeXpxsUfgCNwWEGDQikkEt2rUukyPJkdml lDm/5RTXeCm0DUNx3+F3+7SPJdG+vKj8RMZxYlu5cGY9Nqs+6MQyLmNlzDvm0E2q9YLV MBxQ== X-Gm-Message-State: AKwxytegqdjGnEgd30LWyCckyIqcYJe9+F9JVfhC/93+CI2iVx8WEEUL aeyoLOs4SuaM52h8AJytyv+wqKamHG0= X-Received: by 2002:a17:902:b947:: with SMTP id h7-v6mr9523874pls.82.1516836437866; Wed, 24 Jan 2018 15:27:17 -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 z19sm9760028pfh.185.2018.01.24.15.27.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2018 15:27:16 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Wed, 24 Jan 2018 15:26:13 -0800 Message-Id: <20180124232625.30105-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180124232625.30105-1-richard.henderson@linaro.org> References: <20180124232625.30105-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::242 Subject: [Qemu-devel] [PATCH v3 33/45] qom: Add MMU_DEBUG_LOAD X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Andreas_F=C3=A4rber?= <afaerber@suse.de> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
hppa-softmmu
|
expand
|
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; diff --git a/target/sh4/op_helper.c b/target/sh4/op_helper.c index d798f239cf..8fa7cb6b42 100644 --- a/target/sh4/op_helper.c +++ b/target/sh4/op_helper.c @@ -36,6 +36,8 @@ void superh_cpu_do_unaligned_access(CPUState *cs, vaddr addr, case MMU_DATA_STORE: cs->exception_index = 0x100; break; + default: + g_assert_not_reached(); } cpu_loop_exit_restore(cs, retaddr); }
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 <afaerber@suse.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- include/qom/cpu.h | 3 ++- target/sh4/op_helper.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.14.3