Message ID | 20171229063145.29167-35-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="DK1lJpPb"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z7HXZ3DDBz9ryT for <incoming@patchwork.ozlabs.org>; Fri, 29 Dec 2017 18:00:14 +1100 (AEDT) Received: from localhost ([::1]:57494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1eUoeK-0002QS-FV for incoming@patchwork.ozlabs.org; Fri, 29 Dec 2017 02:00:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eUoDd-0003Q0-8w 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 <richard.henderson@linaro.org>) id 1eUoDa-0004uS-UG for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:37 -0500 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:39705) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1eUoDa-0004u7-Pg for qemu-devel@nongnu.org; Fri, 29 Dec 2017 01:32:34 -0500 Received: by mail-pl0-x242.google.com with SMTP id bi12so22518165plb.6 for <qemu-devel@nongnu.org>; Thu, 28 Dec 2017 22:32:34 -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; bh=DiACuF9fSwjx/ljspLFoCBRlabayy+kU1qcoqcfzFP4=; b=DK1lJpPbH5Uc/ODNAgRJ3z+yrOmdB/b6sRR9Sdpe4v2X+eruC0hqeyuEWlr1nARPJt 8VaQZgecMtDlyJe4Fh9Vfnw7Tp8OW7MenWUyMIx3WnD8+d/WwJHmuik/jqMFYRKLWm3J XA90STLdQx6PkYdM74kyadaYPoAfSG/Xbgt1U= 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; bh=DiACuF9fSwjx/ljspLFoCBRlabayy+kU1qcoqcfzFP4=; b=t4Il2Vwc3Q4QRnUhR/X0gfF/MIL1c/Shs9Hm+xmH7/SIMoBNDzpQTLIv9A3MhvZiRB lWTUEXGDtXm0tzrK/qsjeyU3bMEW/8Aw8jRhfzU/dMDuRrbT/S5DbVfWRGIofjXvx9Z1 8NfbV1Lrvb8Z63wRsKXMIqZJ21Kd9kpbRP6dTmoONIe2X1Up1R8kuAP20j9MnvFW4v9q CEwWxO1q9mf5LafGcPEDNxSYlOghmt7Evv1iLuEI3q4ZqD3ihrlrqMe1ySq7kTlyj8fI ed4b1R6HF94Xsdcn8/lz/5fFrz4xPgHe4xoNE8fDDsJvSIfBaWnJ5qSPMXSvqa5C/peA Ok6g== X-Gm-Message-State: AKGB3mI9cykiGExbEUXoU5etJVheLm9JLdKktJHGtSNWiN0G+Tp8gLFp nK0MZiMPDI1v2fTPatGIlq9XmlDgOSQ= X-Google-Smtp-Source: ACJfBovxhUHwYmHflefe5XUPOOASxxcg7dt5uC44VWhbYzfEyIPS+MtGieDVxVYviTcBj1wHNqS6/A== X-Received: by 10.84.174.131 with SMTP id r3mr34267234plb.358.1514529153585; Thu, 28 Dec 2017 22:32:33 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2017 22:32:32 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Thu, 28 Dec 2017 22:31:41 -0800 Message-Id: <20171229063145.29167-35-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> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::242 Subject: [Qemu-devel] [PATCH 34/38] target/hppa: Only use EXCP_DTLB_MISS 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: deller@gmx.de Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
Add hppa-softmmu
|
expand
|
diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c index e2f94faab5..a0a385cb54 100644 --- a/target/hppa/mem_helper.c +++ b/target/hppa/mem_helper.c @@ -97,7 +97,9 @@ int hppa_get_physical_address(CPUHPPAState *env, vaddr addr, int mmu_idx, if (ent == NULL || !ent->entry_valid) { phys = 0; prot = 0; - ret = (ifetch ? EXCP_ITLB_MISS : EXCP_DTLB_MISS); + /* ??? Unconditionally report data tlb miss, + even if this is an instruction fetch. */ + ret = EXCP_DTLB_MISS; goto egress; }
Unknown why this works, but if we return EXCP_ITLB_MISS we will triple-fault the first userland instruction fetch. Is it something to do with having a combined I/DTLB? Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/hppa/mem_helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)