From patchwork Thu Sep 3 20:14:17 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: 514238 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 E57A314032F for ; Fri, 4 Sep 2015 06:17:06 +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=dqlrJi4z; dkim-atps=neutral Received: from localhost ([::1]:51614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXawT-0003v0-1H for incoming@patchwork.ozlabs.org; Thu, 03 Sep 2015 16:17:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXau7-0000V4-55 for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:14:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXau6-0006pA-8O for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:14:39 -0400 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:33113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXau6-0006ox-2T for qemu-devel@nongnu.org; Thu, 03 Sep 2015 16:14:38 -0400 Received: by pacex6 with SMTP id ex6so639667pac.0 for ; Thu, 03 Sep 2015 13:14:37 -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=JVFnMRwUT/Xj4uomGVyhdrBzJgnUvC1RW5HzOYvxbmI=; b=dqlrJi4zxtiLVKhiNRL7qM659jdVkHKiuq77CH4kgohcc4v/UWHGmr0gm2qkWcaJXs WEadU4sKZocgij2n1m25bOpukRgoaflWPY0foFuXvrsH40XyfQXcWlYPDetHPnAugcrg h5m+fDdWIXOkvaSk+kc2yearfUqEfpRELrt9ywbHpGsShZjidTBE2bXYtM0MILLAmvnq JRFD84Z/NPvTi6+Zmq7R1fMOHswGnGTWKBhKjeQphRX66ihK0QUYCdm6ALSPSndWLe8c 3aysnL/HukyXUGo9NCTpniVlVTj79ykYz/u73TNk8tW+/MAKmaCxijkxFH++TKrRwpKV WScw== X-Received: by 10.67.5.228 with SMTP id cp4mr60898199pad.120.1441311277216; Thu, 03 Sep 2015 13:14:37 -0700 (PDT) Received: from localhost (ec2-52-8-89-49.us-west-1.compute.amazonaws.com. [52.8.89.49]) by smtp.gmail.com with ESMTPSA id qu8sm26431495pab.29.2015.09.03.13.14.35 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Sep 2015 13:14:36 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Thu, 3 Sep 2015 22:14:17 +0200 Message-Id: <1441311266-8644-2-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441311266-8644-1-git-send-email-edgar.iglesias@gmail.com> References: <1441311266-8644-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:400e:c03::234 Cc: edgar.iglesias@xilinx.com, serge.fdrv@gmail.com, alex.bennee@linaro.org, agraf@suse.de Subject: [Qemu-devel] [PATCH v1 01/10] target-arm: Log the target EL when taking exceptions 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" Log the target EL when taking exceptions. This is useful when debugging guest SW or QEMU itself while transitioning through the various ELs. Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis --- target-arm/helper-a64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c index 08c95a3..2e5e356 100644 --- a/target-arm/helper-a64.c +++ b/target-arm/helper-a64.c @@ -478,7 +478,8 @@ void aarch64_cpu_do_interrupt(CPUState *cs) } arm_log_exception(cs->exception_index); - qemu_log_mask(CPU_LOG_INT, "...from EL%d\n", arm_current_el(env)); + qemu_log_mask(CPU_LOG_INT, "...from EL%d to EL%d\n", arm_current_el(env), + new_el); if (qemu_loglevel_mask(CPU_LOG_INT) && !excp_is_internal(cs->exception_index)) { qemu_log_mask(CPU_LOG_INT, "...with ESR 0x%" PRIx32 "\n",