From patchwork Thu Nov 8 16:33:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 150535 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1041131ljp; Thu, 8 Nov 2018 08:40:13 -0800 (PST) X-Google-Smtp-Source: AJdET5ceGV5nkCDieVSgmxl/FM51SCcaRESCDp/rC4P49ydDphlZH7z6ZCoiUZfGcSrJvsIAUpUA X-Received: by 2002:a0c:aa84:: with SMTP id f4mr5030437qvb.243.1541695213082; Thu, 08 Nov 2018 08:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541695213; cv=none; d=google.com; s=arc-20160816; b=gE4oTNN1D+B2hZNQJtFbKv7m9HjYTiKyPRzavxtz1a6I7bX2toP/45eUiam9fbhu4a KhdPeiqorDdeTRDYvWQXuxhdzA7H9+1XZDeAVnyqU54wIPKaFMrJRXF6tFy6DropTTW1 kI1XGW0WRHQFvLuPmMgQddudolp5cMluxw+LSC5FVxJctxWtpZ2FTZ3t6Rel+SFa4TMA tGoWY1zYJ2LUNHJ9H2vUVV7aZv8TLVWrECz46eTv8b6yXEifPzGqjMkCY4hAVz1nm2D2 YHIynjuhwIjjD19axEItYVf9wXL3GC9j8jZqR/XlVfmUFDhulwJwLyfwgCgt9Nfp18od aJBg== 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; bh=vp2a0usUuu0rRONaQzTjUyLAtFtoZz3yAS8fqPJZuds=; b=vDvwrAVjltXgxN0Ng0dbq3KVU3Zjz3v7QWX7iWp5xgOK9Uquf1ur6zolN/Sk6M9+Pg ELfag26A+C2Jrh8QzH2mCBR2WntCarrLbWDxaGsWkcz3h7C9f1/xipL7l7HLD+v8vRVm SIViQ83OzXwyvXweeWBCv0wFjR+JUJAhhlpecn0QiVvZvPbwX4P1i6GsMzGZHODTNeGj SJtPKpWW5HDpJek7jiSdrhh41UXsLsyClLXUQcpBNycT/8Fns0OO/rSfVjrh66qTjN35 4GDXnckO/kza3oLUbtcBXczlCkWDf4LTFXOxQVp/D+kirWOCsC9gc9nkyoA2tAry3Qfs IPXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=h9YwOg+4; 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 52-v6si2078789qtv.79.2018.11.08.08.40.12 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 08 Nov 2018 08:40:13 -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=h9YwOg+4; 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]:57850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKnLo-0006IL-Fq for patch@linaro.org; Thu, 08 Nov 2018 11:40:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKnFf-00083T-VO for qemu-devel@nongnu.org; Thu, 08 Nov 2018 11:33:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKnFe-0004ux-O9 for qemu-devel@nongnu.org; Thu, 08 Nov 2018 11:33:51 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:50195) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKnFe-0004kr-EO for qemu-devel@nongnu.org; Thu, 08 Nov 2018 11:33:50 -0500 Received: by mail-wm1-x341.google.com with SMTP id 124-v6so1919690wmw.0 for ; Thu, 08 Nov 2018 08:33: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=vp2a0usUuu0rRONaQzTjUyLAtFtoZz3yAS8fqPJZuds=; b=h9YwOg+4hcj+ZrFNhUqeRGK1uRQuXj1PLvnzZk1ofo90xxogb3EWNaslRrbsDtXlR6 vpwTVXWitlWpTtJzYjifVclUtjRhoKLM7egwxNKrrH8s1WWN01OO/RCvCrGPd2f9rcsh VvTaj/EoC5VSIveG9QSByZU4/1Nvb1e3lvc+s= 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=vp2a0usUuu0rRONaQzTjUyLAtFtoZz3yAS8fqPJZuds=; b=qDKSpUK3gy8r5mw6Gc3/pKwji9dhUY36DoL/KSR/L1Mv9OQPGhNmFCsgIhvoPp42GQ qnsgaQcEKfQAFvBMFaUqilj646CiUveVm0UC/OBOST2Amly5scNFdOBv91hs3g53MHV6 Ezs3NAlge4an8kO7acaJ7xVPcT2cmDp/tXTfeKt2ubMZNESGAw1yRGu5rIBKvKsUjne0 87togAUJUFY0TCJqHVDYPzVFyuDvuGahFQEn+jgvqRBwv2r0fKkUIvDwoHuRQp2C228l 3MG7LizHHSlnZQxHa0eVe468xdnJxGjrlJYUD3zO5QbQxPQVxedVu1ZKd/61taYPHyFY LQjg== X-Gm-Message-State: AGRZ1gLIQfFhk/9gUsY82bDY3XQ5IEd3dYLsC51wVQe6JTIogmEXEXZB AKdfsdVykouuR4Znw1WAtaoN5V4Cy1I= X-Received: by 2002:a1c:4d2:: with SMTP id 201-v6mr1737853wme.133.1541694814654; Thu, 08 Nov 2018 08:33:34 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id k4sm6288158wrx.91.2018.11.08.08.33.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Nov 2018 08:33:32 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 476673E0593; Thu, 8 Nov 2018 16:33:30 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 8 Nov 2018 16:33:28 +0000 Message-Id: <20181108163329.19940-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181108163329.19940-1-alex.bennee@linaro.org> References: <20181108163329.19940-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 Subject: [Qemu-devel] [PATCH v2 5/6] arm: use symbolic MDCR_TDE in arm_debug_target_el 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: peter.maydell@linaro.org, qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We already have this symbol defined so lets use it. Signed-off-by: Alex Bennée --- target/arm/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Richard Henderson diff --git a/target/arm/cpu.h b/target/arm/cpu.h index b5eff79f73..1efff21a18 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -2743,7 +2743,7 @@ static inline int arm_debug_target_el(CPUARMState *env) if (arm_feature(env, ARM_FEATURE_EL2) && !secure) { route_to_el2 = env->cp15.hcr_el2 & HCR_TGE || - env->cp15.mdcr_el2 & (1 << 8); + env->cp15.mdcr_el2 & MDCR_TDE; } if (route_to_el2) {