From nobody Wed Dec 17 09:06:30 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=univ-grenoble-alpes.fr ARC-Seal: i=1; a=rsa-sha256; t=1718872762; cv=none; d=zohomail.com; s=zohoarc; b=Jeh/hF4Bizt+L9YFLXAvaXr4kDa8Zer/Wucxbm8yHbDy7BMADqYphbrPs6zHQTnz8biHmPcIBBJ+NVDkttHhWVLoHE6ExVYa0qY1+nBZu0uBI9itRNEJlNMzHH4YdIgVjjZy2b1d3QcD7bOwRLLHcd0zmckiKnL91SJc7aSKmv4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1718872762; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=FRSRZy4YHr8OeqMm32GxkUytCIk0CBIAggvChd0ZV5E=; b=R4bMgu1zlBwjITKy5jttlTUxleGSfZD1t3o4MP/17IIQHsgMWntTnDA7DriPS2TTvRVqcgI6bWb/SqMqN3ir146aAof6SBKVs1K1QG2XbWlBCwx4mmyXaHCaayTXWKKl2NLpMXSUF4ZMb2bN9KZhpGa0oRyYRjn3+kNCheElKLk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1718872762624939.8821891922072; Thu, 20 Jun 2024 01:39:22 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKDJK-0006HK-Oz; Thu, 20 Jun 2024 04:38:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKDJJ-0006GC-0O for qemu-devel@nongnu.org; Thu, 20 Jun 2024 04:38:25 -0400 Received: from zm-mta-out-3.u-ga.fr ([152.77.200.56]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKDJG-0006kG-Af for qemu-devel@nongnu.org; Thu, 20 Jun 2024 04:38:24 -0400 Received: from mailhub.u-ga.fr (mailhub-1.u-ga.fr [129.88.178.98]) by zm-mta-out-3.u-ga.fr (Postfix) with ESMTP id 0B2B1402BB; Thu, 20 Jun 2024 10:38:15 +0200 (CEST) Received: from smtps.univ-grenoble-alpes.fr (smtps3.u-ga.fr [195.83.24.62]) by mailhub.u-ga.fr (Postfix) with ESMTP id 07D05100067; Thu, 20 Jun 2024 10:38:15 +0200 (CEST) Received: from ravenala.reseau.jussieu.fr (fw-pmc.sorbonne-universite.fr [134.157.254.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: petrotf@univ-grenoble-alpes.fr) by smtps.univ-grenoble-alpes.fr (Postfix) with ESMTPSA id 9E1D04007F; Thu, 20 Jun 2024 10:38:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=univ-grenoble-alpes.fr; s=2020; t=1718872695; bh=4SowQBkGId3dXNyYt4Q/U5N0XFaxSViHih8U7VqRzdM=; h=From:To:Cc:Subject:Date:From; b=OZjnydu0Jarg8j7fL5YShcCrYx6E3jPCQOPR3R5natCNb0f3LyK+DirW2dkd28pjq +nRoLASmmLZIQHlbZo1Ci315bsYK5a4H2k+i/vWUQxCl+S9mr3ydp4PIwuHIZnXCIu A7SIMRTppt0eKZE/LgakbAaqT3nzAcOV4MH/w0LIxv5Hz9f+Wm8ShQNLWQEACMoTwG y8Sw67vTd8l0yz9lvuTL07mDYuXynm/aHmSmKUvwn+UmZSUZ2F1D5Rd0Z+1wiARwuO lBAIk6iKhQM4uWTONogZERJCLIRY3g8SEjvLZN1TrMiuLg46ZxSQgatLWdBqlhZIkm a0B84gNUHAlXA== From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9trot?= To: alex.bennee@linaro.org, erdnaxe@crans.org, ma.mandourr@gmail.com, pierrick.bouvier@linaro.org Cc: qemu-devel@nongnu.org, =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9trot?= Subject: [PATCH] plugins/execlog.c: correct dump of registers values Date: Thu, 20 Jun 2024 10:38:05 +0200 Message-Id: <20240620083805.73603-1-frederic.petrot@univ-grenoble-alpes.fr> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Greylist: Whitelist-UGA SMTP Authentifie (petrotf@univ-grenoble-alpes.fr) via submission-587 ACL (41) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=152.77.200.56; envelope-from=frederic.petrot@univ-grenoble-alpes.fr; helo=zm-mta-out-3.u-ga.fr X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @univ-grenoble-alpes.fr) X-ZM-MESSAGEID: 1718872764217100003 Register values are dumped as 'sz' chunks of two nibbles in the execlog plugin, sz was 1 too big. Signed-off-by: Fr=C3=A9d=C3=A9ric P=C3=A9trot Reviewed-by: Pierrick Bouvier --- contrib/plugins/execlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/plugins/execlog.c b/contrib/plugins/execlog.c index 371db97eb1..1c1601cc0b 100644 --- a/contrib/plugins/execlog.c +++ b/contrib/plugins/execlog.c @@ -101,7 +101,7 @@ static void insn_check_regs(CPU *cpu) GByteArray *temp =3D reg->last; g_string_append_printf(cpu->last_exec, ", %s -> 0x", reg->name= ); /* TODO: handle BE properly */ - for (int i =3D sz; i >=3D 0; i--) { + for (int i =3D sz - 1; i >=3D 0; i--) { g_string_append_printf(cpu->last_exec, "%02x", reg->new->data[i]); } --=20 2.39.2