From nobody Wed Feb 11 02:08:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516838391206169.37071111888145; Wed, 24 Jan 2018 15:59:51 -0800 (PST) Received: from localhost ([::1]:55516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeUxK-0006DR-FY for importer@patchew.org; Wed, 24 Jan 2018 18:59:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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 ) 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 ; Wed, 24 Jan 2018 15:27:19 -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) 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-Google-Smtp-Source: AH8x227iI16qZF/M+weFDJ3KEuK3OXefpw2INPLm5rL3LUiJXyj9u7l5j9zU+nfE7GonYJZJ7mvNQA== X-Received: by 2002:a17:902:b947:: with SMTP id h7-v6mr9523874pls.82.1516836437866; Wed, 24 Jan 2018 15:27:17 -0800 (PST) From: Richard Henderson 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: quoted-printable 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 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=C3=A4rber Signed-off-by: Richard Henderson --- include/qom/cpu.h | 3 ++- target/sh4/op_helper.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 =3D 0, MMU_DATA_STORE =3D 1, - MMU_INST_FETCH =3D 2 + MMU_INST_FETCH =3D 2, + MMU_DEBUG_LOAD =3D 3 } MMUAccessType; =20 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 a= ddr, case MMU_DATA_STORE: cs->exception_index =3D 0x100; break; + default: + g_assert_not_reached(); } cpu_loop_exit_restore(cs, retaddr); } --=20 2.14.3