From patchwork Fri May 29 06:43:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 477597 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 EA5FE14012C for ; Fri, 29 May 2015 16:48:59 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=JGbO/Qvv; dkim-atps=neutral Received: from localhost ([::1]:33875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyE6E-0007Yt-5s for incoming@patchwork.ozlabs.org; Fri, 29 May 2015 02:48:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyE5s-0006tq-NL for qemu-devel@nongnu.org; Fri, 29 May 2015 02:48:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyE5o-0000kY-OJ for qemu-devel@nongnu.org; Fri, 29 May 2015 02:48:36 -0400 Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:35200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyE5o-0000kR-Kb for qemu-devel@nongnu.org; Fri, 29 May 2015 02:48:32 -0400 Received: by oihd6 with SMTP id d6so49810769oih.2 for ; Thu, 28 May 2015 23:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bJQ1oJhfVqJLEU5eF+sIcXNoUGwbXuRpSijXvKfPBWc=; b=JGbO/QvvBoyf5KUQauKX7DdJsqGV+hFv5aRnZMSwMj0ZAEv4OqJHVX3Dwp34ZlEd8Q YkJcmYsp70apAt/9SKI0y57/1NcgHKzMaWXmoW3vHC+IpOb9RAe7t9G6tDXOuVnO9dst 1XnBJ/Tk982C8bEqdER3o7cKcQgOB6lUmVkDitgvPm9oXKp+7lXHgtXSJIXbspx6J8Yj FU08cBuEfKCISRCIJKGQ1oqlSQ8MJOQStWtpRSsLgoDJFBfdG4KsKGsFmGwcTgYwfuH3 jhnsCkbGibIKIlYlFk+of3SKQBC1XOcXTui+jpw4p36Q6BRWrBkofpjR6Lpe2jqwiDcw ffqQ== X-Received: by 10.60.36.165 with SMTP id r5mr5772933oej.84.1432882112219; Thu, 28 May 2015 23:48:32 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id c3sm2509686obo.5.2015.05.28.23.48.31 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 28 May 2015 23:48:31 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Fri, 29 May 2015 16:43:13 +1000 Message-Id: <1432881807-18164-2-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432881807-18164-1-git-send-email-edgar.iglesias@gmail.com> References: <1432881807-18164-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::22e Cc: edgar.iglesias@xilinx.com, serge.fdrv@gmail.com, alex.bennee@linaro.org, agraf@suse.de Subject: [Qemu-devel] [PATCH v3 01/15] target-arm: Correct check for non-EL3 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Reviewed-by: John Snow --- target-arm/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c index 3f5b9ab..7583ae7 100644 --- a/target-arm/op_helper.c +++ b/target-arm/op_helper.c @@ -421,7 +421,7 @@ void HELPER(access_check_cp_reg)(CPUARMState *env, void *rip, uint32_t syndrome) /* Requesting a trap to EL2 when we're in EL3 or S-EL0/1 is * a bug in the access function. */ - assert(!arm_is_secure(env) && !arm_current_el(env) == 3); + assert(!arm_is_secure(env) && arm_current_el(env) != 3); target_el = 2; break; case CP_ACCESS_TRAP_EL3: