From nobody Mon Nov 25 02:59:41 2024 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1719037173; cv=none; d=zohomail.com; s=zohoarc; b=gGknwGLn0fm4odEm/mSYHPhQyH4SzuNS/BT+B9QpM7wTh1CMgdZGSf4cBzUh44dR+muJU+b/OXhQ8H8Q7GZlonmc5t6UY00h7TEzRutMEEmOJRAG68ATW2e15uHjWAkjVLaMGWlBZcbmFL5L8hOKoAtTSEIjGnfLrs+MH0TFkBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1719037173; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=UpEB8RKh0nHTTV4SYs2ZNSxWI14Dka7ndAM1DOHLcLk=; b=nq15tu6VzUJZ9ieZ+oG4yMZtcGtV57mRozy2wzb1mqsA05E95iaIwRLt/TsXKfojauSLryZca5feQf0feqzuqHHl6BsnM44TmVD1za3w3m3T9/C4EehtcNouMlPOXUMLHvloW5an50is4G6Ln7hhs3jmGwNwFirk6JYqOjaPXFw= 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 1719037172992286.98545967854363; Fri, 21 Jun 2024 23:19:32 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKu2q-0008Mf-SI; Sat, 22 Jun 2024 02:16:16 -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 1sKu2m-0008KA-C8 for qemu-devel@nongnu.org; Sat, 22 Jun 2024 02:16:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKu2k-0006NQ-S4 for qemu-devel@nongnu.org; Sat, 22 Jun 2024 02:16:12 -0400 Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-538-BTbVEsR5PXeofSSRdZu8Og-1; Sat, 22 Jun 2024 02:16:06 -0400 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a706f279c56so4969566b.3 for ; Fri, 21 Jun 2024 23:16:06 -0700 (PDT) Received: from avogadro.local ([151.62.196.71]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6fcf428c67sm157489766b.2.2024.06.21.23.16.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 23:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1719036970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UpEB8RKh0nHTTV4SYs2ZNSxWI14Dka7ndAM1DOHLcLk=; b=S4eYNUpXdbpinc1CPymRENEpMAUIRY8G0AtzgJcCms26/L+LMbzf6KsDxLF86a24qHF87T UuW24q8ENEdmXCJa8t0BLbjkLTN9Tq7wU13oy7PkSOIFJ5z5LZEtp+kn1alH0qBEX3JAXs nwHNiqkLdiVzuNiA3LNTGdhMGXG7iw0= X-MC-Unique: BTbVEsR5PXeofSSRdZu8Og-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719036964; x=1719641764; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UpEB8RKh0nHTTV4SYs2ZNSxWI14Dka7ndAM1DOHLcLk=; b=nyolh35fqKGAk4Rh2TcYeoSH0oIl05wuLZQEI0WnJ1ymWSiVgt5gRl2g18Pv57JCz2 B7F48BRXqi+U1VIaMU9aux3MBqLlHaWbJZbGO4XzAKxlo+za8a+n9W4gcJHjOnuPCVXr KiuUcj0Ib12ElsmwONy9BByk2sjN9qVgALIere0JOSQ23ZksoeMZh4GIJosaWIzqVZfz 7jFKgYiyM6Rv8IzNEu3Pf0jYOI+HvCumPpVAywBr7ftP+KpoR6YKJx0OVbtmjO+MpV23 5Y8+FP47Cki/6eFxKX14KRUptwEBr3B9LfUS5Y5vYxYHrWQJcA3KEIE5GMr5yJU7yyb8 TMqQ== X-Gm-Message-State: AOJu0Yy8LVYKu/Jd4SvZMTZlDgY/OfB4XyqgbcCns5TnT9bm0Q57+a+r Xeme8zRij53klgayS/ti0X/10eIFrpoDFVgD8zn4pnzGDddUnw3MnYC1j1DxkJ6Ir4h5W2YJjwc /FP7HApJSZ6Nzy3AyjGoV+s2IonYn4WAsGAlYbgxhV7nXNF3Sx+3QRLS0eMmMkiZT4P5oLC6bJD D+RdylS0aIohTytkj9roY4j48vzetjUbtpdJNU X-Received: by 2002:a17:907:c5c7:b0:a6f:e5f2:e67c with SMTP id a640c23a62f3a-a6fe5f2e746mr45574666b.38.1719036964374; Fri, 21 Jun 2024 23:16:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEuGmYTA+qyNNitAFYGppTdJRHvB3tWpfLyyOXSt20kGS2uQAI6gDsrZnE64aVNOEHRlwsSTw== X-Received: by 2002:a17:907:c5c7:b0:a6f:e5f2:e67c with SMTP id a640c23a62f3a-a6fe5f2e746mr45573166b.38.1719036963750; Fri, 21 Jun 2024 23:16:03 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 02/23] target/i386: fix CC_OP dump Date: Sat, 22 Jun 2024 08:15:36 +0200 Message-ID: <20240622061558.530543-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240622061558.530543-1-pbonzini@redhat.com> References: <20240622061558.530543-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.145, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UPPERCASE_50_75=0.008 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 @redhat.com) X-ZM-MESSAGEID: 1719037173779100002 Content-Type: text/plain; charset="utf-8" POPCNT was missing, and the entries were all out of order after ADCX/ADOX/ADCOX were moved close to EFLAGS. Just use designated initializers. Fixes: 4885c3c4953 ("target-i386: Use ctpop helper", 2017-01-10) Fixes: cc155f19717 ("target/i386: rewrite flags writeback for ADCX/ADOX", 2= 024-06-11) Signed-off-by: Paolo Bonzini --- target/i386/cpu-dump.c | 101 +++++++++++++++++++++-------------------- 1 file changed, 51 insertions(+), 50 deletions(-) diff --git a/target/i386/cpu-dump.c b/target/i386/cpu-dump.c index 40697064d92..3bb8e440916 100644 --- a/target/i386/cpu-dump.c +++ b/target/i386/cpu-dump.c @@ -28,69 +28,70 @@ /* x86 debug */ =20 static const char *cc_op_str[CC_OP_NB] =3D { - "DYNAMIC", - "EFLAGS", + [CC_OP_DYNAMIC] =3D "DYNAMIC", =20 - "MULB", - "MULW", - "MULL", - "MULQ", + [CC_OP_EFLAGS] =3D "EFLAGS", + [CC_OP_ADCX] =3D "ADCX", + [CC_OP_ADOX] =3D "ADOX", + [CC_OP_ADCOX] =3D "ADCOX", =20 - "ADDB", - "ADDW", - "ADDL", - "ADDQ", + [CC_OP_MULB] =3D "MULB", + [CC_OP_MULW] =3D "MULW", + [CC_OP_MULL] =3D "MULL", + [CC_OP_MULQ] =3D "MULQ", =20 - "ADCB", - "ADCW", - "ADCL", - "ADCQ", + [CC_OP_ADDB] =3D "ADDB", + [CC_OP_ADDW] =3D "ADDW", + [CC_OP_ADDL] =3D "ADDL", + [CC_OP_ADDQ] =3D "ADDQ", =20 - "SUBB", - "SUBW", - "SUBL", - "SUBQ", + [CC_OP_ADCB] =3D "ADCB", + [CC_OP_ADCW] =3D "ADCW", + [CC_OP_ADCL] =3D "ADCL", + [CC_OP_ADCQ] =3D "ADCQ", =20 - "SBBB", - "SBBW", - "SBBL", - "SBBQ", + [CC_OP_SUBB] =3D "SUBB", + [CC_OP_SUBW] =3D "SUBW", + [CC_OP_SUBL] =3D "SUBL", + [CC_OP_SUBQ] =3D "SUBQ", =20 - "LOGICB", - "LOGICW", - "LOGICL", - "LOGICQ", + [CC_OP_SBBB] =3D "SBBB", + [CC_OP_SBBW] =3D "SBBW", + [CC_OP_SBBL] =3D "SBBL", + [CC_OP_SBBQ] =3D "SBBQ", =20 - "INCB", - "INCW", - "INCL", - "INCQ", + [CC_OP_LOGICB] =3D "LOGICB", + [CC_OP_LOGICW] =3D "LOGICW", + [CC_OP_LOGICL] =3D "LOGICL", + [CC_OP_LOGICQ] =3D "LOGICQ", =20 - "DECB", - "DECW", - "DECL", - "DECQ", + [CC_OP_INCB] =3D "INCB", + [CC_OP_INCW] =3D "INCW", + [CC_OP_INCL] =3D "INCL", + [CC_OP_INCQ] =3D "INCQ", =20 - "SHLB", - "SHLW", - "SHLL", - "SHLQ", + [CC_OP_DECB] =3D "DECB", + [CC_OP_DECW] =3D "DECW", + [CC_OP_DECL] =3D "DECL", + [CC_OP_DECQ] =3D "DECQ", =20 - "SARB", - "SARW", - "SARL", - "SARQ", + [CC_OP_SHLB] =3D "SHLB", + [CC_OP_SHLW] =3D "SHLW", + [CC_OP_SHLL] =3D "SHLL", + [CC_OP_SHLQ] =3D "SHLQ", =20 - "BMILGB", - "BMILGW", - "BMILGL", - "BMILGQ", + [CC_OP_SARB] =3D "SARB", + [CC_OP_SARW] =3D "SARW", + [CC_OP_SARL] =3D "SARL", + [CC_OP_SARQ] =3D "SARQ", =20 - "ADCX", - "ADOX", - "ADCOX", + [CC_OP_BMILGB] =3D "BMILGB", + [CC_OP_BMILGW] =3D "BMILGW", + [CC_OP_BMILGL] =3D "BMILGL", + [CC_OP_BMILGQ] =3D "BMILGQ", =20 - "CLR", + [CC_OP_POPCNT] =3D "POPCNT", + [CC_OP_CLR] =3D "CLR", }; =20 static void --=20 2.45.2