From patchwork Tue May 6 06:08:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 346020 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E04DC1412E0 for ; Tue, 6 May 2014 16:10:17 +1000 (EST) Received: from localhost ([::1]:33022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhYZz-0002Fk-OS for incoming@patchwork.ozlabs.org; Tue, 06 May 2014 02:10:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhYZZ-0001TI-LF for qemu-devel@nongnu.org; Tue, 06 May 2014 02:09:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhYZT-00087L-N8 for qemu-devel@nongnu.org; Tue, 06 May 2014 02:09:49 -0400 Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:62736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhYZT-00087F-Iu for qemu-devel@nongnu.org; Tue, 06 May 2014 02:09:43 -0400 Received: by mail-qg0-f41.google.com with SMTP id j5so1859269qga.0 for ; Mon, 05 May 2014 23:09:43 -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=cYaCIxQb+dQwwwmPhGDxNDkx/N+gJ3YRvWgTCKznF9g=; b=nYIQ+/9s6RYzyNuBWEEnUrSTOhaQNje3aKgg2U7xeH9lTOZd8mOCGHez2feg6BS66o CoAKwq3DsrWBs7f55tUhgGQYEj8GWyOJc4nFw4+/O7KAIiRWj2hmiRCN1ylxQIaDXX58 neqru95nsphjRfkJIX135TxQqJ2KO7VYa4rHIlTyGz0HYoaZ7LZ84688ISb3DDm5uQRw b9IPcfEScrL36/VIHWISm7OQ/Z5dNNK6YZAnjHFk/BdtjWFxqqasu8sDTJgoNmnYosQs nG203T9aei3IQdUd9uRWkwGwICRARskS0OzivAjgaP0TV0VOJ2CAWiK/TuSwjvCvLIDr uflw== X-Received: by 10.140.19.212 with SMTP id 78mr48077695qgh.84.1399356583308; Mon, 05 May 2014 23:09:43 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id l46sm1534104qga.21.2014.05.05.23.09.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 05 May 2014 23:09:42 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Tue, 6 May 2014 16:08:05 +1000 Message-Id: <1399356506-5609-2-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1399356506-5609-1-git-send-email-edgar.iglesias@gmail.com> References: <1399356506-5609-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:400d:c04::229 Cc: rob.herring@linaro.org, peter.crosthwaite@xilinx.com, john.williams@xilinx.com, alex.bennee@linaro.org, agraf@suse.de Subject: [Qemu-devel] [PATCH v1 01/22] target-arm: A64: Add friendly logging of PSTATE A and I flags 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 --- target-arm/translate-a64.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index b62db4d..4f8246f 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -137,8 +137,10 @@ void aarch64_cpu_dump_state(CPUState *cs, FILE *f, cpu_fprintf(f, " "); } } - cpu_fprintf(f, "PSTATE=%08x (flags %c%c%c%c)\n", + cpu_fprintf(f, "PSTATE=%08x (flags %c%c%c%c%c%c)\n", psr, + psr & PSTATE_A ? 'A' : '-', + psr & PSTATE_I ? 'I' : '-', psr & PSTATE_N ? 'N' : '-', psr & PSTATE_Z ? 'Z' : '-', psr & PSTATE_C ? 'C' : '-',