From nobody Sat Feb 7 07:31:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1519852114371242.3766180925237; Wed, 28 Feb 2018 13:08:34 -0800 (PST) Received: from localhost ([::1]:46919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er8xh-0006lY-Ej for importer@patchew.org; Wed, 28 Feb 2018 16:08:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er8vi-0005YU-L2 for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:06:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1er8vh-0000Jk-P3 for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:06:26 -0500 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:46839) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1er8vh-0000IJ-HU; Wed, 28 Feb 2018 16:06:25 -0500 Received: by mail-lf0-x241.google.com with SMTP id r80so5584830lfe.13; Wed, 28 Feb 2018 13:06:25 -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 l8sm547134lfb.19.2018.02.28.13.06.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 13:06: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=lBuIHxBxPuyDGiHj6I1EDaCuIVDElGsvXnSiFD0NAHgkhdcHjWa/LoHnoUYPYMpVT6 PNzgJkv6Uh5t1Ok/9iTWaOy5A5L1BRcKGu7LTAqeA31uQbW34NrNQbYsGaqPzzrF1W1h Qgp3OnwW7fXCR/GNAIOduK797JY9m06FWh3IN+KjEYlq7tteYKig4OOdhQi/sbz/h2yC uZCKFuyhCtzp3BnVYN9QoCVZh3acY8iu6ITgaIItqLqNaDYBG/6BVIhw2pVPVzBAuoGQ A1LZyheBNADsBvX7SIrqSGjb0+9kFfZ0373A8BCUCuvXPSLF0Cf3T9LbZNcjJn6Jqesf 9GBw== 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=OKENYJX+AAOcV1JRiLWDfTIEXijh8QMoT5GancPflaGrHXA/ceYqxyZoQZgOiL3qBg 48F2l2+l8nDtY9x1m0ZHEUu4h8VIskB1SxI33DM0Q9sCEDRQLxgtu38wcv0yexn4oRJj 35kHXTEhD8shyQWp1jb35TGznU3gMdWyJUsrudxMwySbh6iNZaQtv0Sf6Egq2kBqnHs/ JxE1TUmjWCgGe9cEOb8eM5/y/5OHECdr7VG7TnqEGGv9xlCU+lVkwqJee3N+JAMUXxpN mIhmZW/kRRChmo/+wccdSySegOd5LD2S8WDOqz6LjSuHns9GtAP016DvCTg7Ku9gIpzN FU5Q== X-Gm-Message-State: APf1xPABgNal/C1palc7kS+qN6W5qnw9G/ifsCY6M0DA5KgsQd5aqYdb xO7DW78PRb+sqBxadBNPnvUDTA== X-Google-Smtp-Source: AG47ELtelA8hB/gWx+Bi5lhw1vzuHSHO+p6VLxGBsVdlOcSPanXPKajVwHmUoDFZZH6QIrPFAxm4qg== X-Received: by 10.46.92.7 with SMTP id q7mr13783811ljb.21.1519851983922; Wed, 28 Feb 2018 13:06:23 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Wed, 28 Feb 2018 13:06:06 -0800 Message-Id: <20180228210616.2756-2-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180228210616.2756-1-jcmvbkbc@gmail.com> References: <20180228210616.2756-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::241 Subject: [Qemu-devel] [PATCH 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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) =3D=3D 3 ? '\n' : ' '); } =20 + xtensa_sync_phys_from_window(env); cpu_fprintf(f, "\n"); =20 for (i =3D 0; i < env->config->nareg; ++i) { --=20 2.11.0