From patchwork Wed Feb 28 22:15:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 879452 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ed+jZOWq"; dkim-atps=neutral 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 3zs9421F5sz9s23 for ; Thu, 1 Mar 2018 09:20:18 +1100 (AEDT) Received: from localhost ([::1]:47327 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erA5A-0005jo-7k for incoming@patchwork.ozlabs.org; Wed, 28 Feb 2018 17:20:16 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erA1R-0003Am-RL for qemu-devel@nongnu.org; Wed, 28 Feb 2018 17:16:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erA1P-0002zn-Pi for qemu-devel@nongnu.org; Wed, 28 Feb 2018 17:16:25 -0500 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:38248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erA1P-0002xg-7S; Wed, 28 Feb 2018 17:16:23 -0500 Received: by mail-lf0-x244.google.com with SMTP id i80so5873450lfg.5; Wed, 28 Feb 2018 14:16:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ipS4ybx6mBlPV3T+Ro5/B6yLHepUgJ2jO52IONUFpz8=; b=ed+jZOWq39WFrRnIp9oAN40IF9ZQ25NXf9UmP7UEv7Q4xoCt1vm8oVEI/7dzymGqt8 ctngu8yKTwB8gravat12nrBiCccwxPEuPqKpDzlxloF+MZTfJaFGi1f3IMQ3uFzBSAK9 WfN755qI4zXs47+VwBJTBFTLDDuc+x9mdeNAnUipNUgr9QGXya1tauhxOz/JAhh/4Zzb dSRsthJnZBFfP/45eW4Me/nC52b6o1RNOStb07o8SIwsvNia2HkfPa8q9vlfcrDjPjp0 KgI2XOrtYPz8ahZagQ5OlwUN68ttj8zzZzSxb8PpoRpQUNH7wwr85bd7Uc7iVzTFKjZ1 6Idw== 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; bh=ipS4ybx6mBlPV3T+Ro5/B6yLHepUgJ2jO52IONUFpz8=; b=jYoKkvLCaxAEdCQdEJrfIGbT7LSXwpB9FYQu+1KMNhZ/wJuGgxbqYABbaxq01ImXOD +ErpequRzSJ1BqV5r2mwnqg6J1QB5PEnzV9qtzRrzSwN07VtqDOB6nwRBI9FUbEF5zwB iSTLgR/8Ao7n6EXlUYDSeHFtxaSfmJxeHn46GWvbp1YXWfRuaJAFaQtqpgzahS2b7TRI KDrlGKXgsv/8H8Es15/W+1L6RqdkDa8CJJdcZsXxsLBxOVe9zfrMY6zBm2aKLXCgXh4k hJW6WhjDs0RXlLxgOSDRWEnjS8yluchHAYM84SECYLk1Nw2b7TWSyQAebJc9N6KWu7kc jBPA== X-Gm-Message-State: APf1xPBf+xUBYCZT+ENuQWVhpKMyw6hAI4HrLtm6z4Xgy5KVjXxg7q3/ haf++nX/dCtQUDA99JZK700zHA== X-Google-Smtp-Source: AG47ELuYi9fpu04BqH2TR62j2yRy5vn0hxKM+eXn2y6P5L1NEt6T9AealgUeMOUao+myZpCEzkUcgw== X-Received: by 10.46.127.4 with SMTP id a4mr13621723ljd.71.1519856181726; Wed, 28 Feb 2018 14:16:21 -0800 (PST) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id s82sm566984lja.7.2018.02.28.14.16.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 14:16:21 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Wed, 28 Feb 2018 14:15:59 -0800 Message-Id: <20180228221609.11265-2-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180228221609.11265-1-jcmvbkbc@gmail.com> References: <20180228221609.11265-1-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::244 Subject: [Qemu-devel] [PATCH v2 01/11] target/xtensa: dump correct physical registers 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: Max Filippov , qemu-stable@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" xtensa_cpu_dump_state outputs CPU physical registers as is, without synchronization from current window. That may result in different values printed for the current window and corresponding physical registers. Synchronize physical registers from window before dumping. Cc: qemu-stable@nongnu.org Signed-off-by: Max Filippov --- target/xtensa/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 671d934ff424..3ad86d4508e4 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -1215,6 +1215,7 @@ void xtensa_cpu_dump_state(CPUState *cs, FILE *f, (i % 4) == 3 ? '\n' : ' '); } + xtensa_sync_phys_from_window(env); cpu_fprintf(f, "\n"); for (i = 0; i < env->config->nareg; ++i) {