From patchwork Wed Jan 24 23:26:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 125741 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp739142ljf; Wed, 24 Jan 2018 15:46:48 -0800 (PST) X-Google-Smtp-Source: AH8x227ryqIK/AGF1bFSNSIoybw40gwm4aYRSYw/DoIPnyqHoznx+G8xnB/o/tSP5cWm24q+f+2U X-Received: by 10.37.6.69 with SMTP id 66mr4554756ybg.139.1516837608378; Wed, 24 Jan 2018 15:46:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516837608; cv=none; d=google.com; s=arc-20160816; b=M8wwlO0bJxkGtp9jRrt/sr9j/D0iBGMoJTUnxejWK64VGydhaukEr7ap0xj0FHmraf 0jsXGWyPAigbA3X5TiEg0rOLsXRMQhaHf8CCmJyK5ISdJDDuQ18Eu9t1xRgTDIlAK+v4 keAWzBwszejo2MMPO/SxNFEmIKYnGhoVN+MtD/HVk5wSXMj2zxbF45KFoCv2r6rNQYzb 8b6y3p2cre0pMVcZEnWoEC+jWm2dPh4x26S5WkenKfNMihk9XQ5DGygOAqn3fG18LFhv Exnh/eNXVp+MnNaYybOVoQTuRpX79C2iualZ0RabBkQSaLb732TBJl/KqHmrnsJL9kC2 rf4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=LP9OHUOYoiZv6JPSNgAYHzOXuxtIZkBZc9DCBZ38R7g=; b=QbLDb8yIhuBFXGbEBLJP1RlJClRW+MMzMADE2w4YKhqj36KvN1Ge+8nGtrwXjC0ROd E8ljugv5x2Sx9vWA6kTB2q83ZDzitquuLVTFC8O2T6OM/7Spp1CFbgX5D1Gea3ZCt5Ex rbIXVOugdrCLdi1IDjeJTexfCIhtu0/XkwW6Ftluyi3bUY/Mz3O5SubQQPd+oSjZLCfd 0NzptDxrno+wlEN/sPXExfNGWiAkimGSVJQGZmtPCk6GSzE3hdhxniUN0XkATev5UFyc OOtEolxTxGmCVLQrmscVgFaRbx/d+UMNBLuaq7/SdpU57daJdR08IlET3tMFS/59r9mU b4Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cczMHoAN; 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 y8si2986355ybk.637.2018.01.24.15.46.48 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 24 Jan 2018 15:46:48 -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=cczMHoAN; 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]:54576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeUkh-0003Bi-N2 for patch@linaro.org; Wed, 24 Jan 2018 18:46:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeURq-00050L-OK 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 1eeURp-000229-SZ for qemu-devel@nongnu.org; Wed, 24 Jan 2018 18:27:18 -0500 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:35174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eeURp-00021z-MP for qemu-devel@nongnu.org; Wed, 24 Jan 2018 18:27:17 -0500 Received: by mail-pg0-x244.google.com with SMTP id o13so3819202pgs.2 for ; Wed, 24 Jan 2018 15:27:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=LP9OHUOYoiZv6JPSNgAYHzOXuxtIZkBZc9DCBZ38R7g=; b=cczMHoANxL2ZJf3qiYCYKv+QXkaw3zb/v68CTfAnSObryxr3D48XkF/VUwdd82fpfy tXzGLn3OWQZCzDU9TUON+102jDW3M8axHfLW1oCoKZNO93gpao2slgDv3v3akzROT7pC jsRWKLO3sDm++fbIKdrsWD4ZZTCoOktqpFiuw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=LP9OHUOYoiZv6JPSNgAYHzOXuxtIZkBZc9DCBZ38R7g=; b=W9//+HtJUIZ4sq9gI2XPH8MnnWMeWe/x3MDEZNHKgBsUzAY6K8zBWjJWtLkUPLeqB2 mqom3y/quppfysOEfgAcsMr1i42FqVu5rKvPy8Sg68m1+m7gRF50v66pOrLibcVl7utr iYZuPPxa8mf7j9/JS91d/2EknZKbwm7cV+saVAh0orm3HqmqG3zu8BWv06jhEeTlm2cQ 07sxDz9DhLI7wmySBaK73u2jPVBGEL/v0BmTo59fNlMQVZjP0bY9rOSw2yusfq2nVLIK fJphb8NYZvKyqe6rbsem7NKDd0W9Kr1neB42pXF0fw9/OAAJh4kjtbqnu04DzEu4kM03 B6Yw== X-Gm-Message-State: AKwxytc8VIMuyd/kc5+bDMmA12aHcw1iUCyHviU/d9NWrmL4l+OECYpK 0MaAYhsvDVOIFWCqcAHfuaw+jWAyoeI= X-Received: by 2002:a17:902:507:: with SMTP id 7-v6mr7968298plf.0.1516836436426; Wed, 24 Jan 2018 15:27:16 -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.15 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2018 15:27:15 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 24 Jan 2018 15:26:12 -0800 Message-Id: <20180124232625.30105-33-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> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::244 Subject: [Qemu-devel] [PATCH v3 32/45] target/hppa: Only use EXCP_DTLB_MISS 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 --- target/hppa/mem_helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.14.3 diff --git a/target/hppa/mem_helper.c b/target/hppa/mem_helper.c index c14317ebef..81bcbe45db 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; }