[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] x86: fix expansion of %XV


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 16 Jun 2023 14:33:27 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=klBzpCbgSPj0ni89aaVPSPANxPpV6E2Ix9Zp/2rfEHc=; b=WxqlEgbMnBFtpamqh5UY9IrrHKVwVHuCI+LNIBMHFYKDHfXAFTo3Hm4DvjtPaVoPgkWF+b3q2xFV+5HRTqA6XIvVEKtX/nNfUyO+zwgF7jneoeF21pVRMabEvzHNi51Ki3R6FAp7jkZa0g5ywB8uDABMDUAbSn8vwr0Bcqmlg4vNb80WJZuvkhTaEBMnmAAV/26e8zypUwOPDU2FoMDNPZ10tYcbO4PllHWMefp6L3eYdQf2DpQJ/SxVbarYqur6KeIqV99QCI5OrTV534GqeQFcq+DqYx7fh739VO8044JxgB9grVfoFaU5okfFCBIwFYcdCCfX8ytZTMvvo5WEyw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iJky29xXbm48AD34wVFIGa1G8twKvpWcUC9W7lmDDt5dNrqJE0SqsPOHTxBBeIxJsaiDXf4+PSDavy56zE3qFTdofmFvhxfYRPOqwB0lvXgXaFebL1JHQeFGa9t2jvnt1Ajli6kdBYJq2OVEObM93YZHzfb7nfVyLuyQ1llOhBqXXenfYEiqh0AQYCmFj5/SXmMucmjlrDF0kNzb1ONDC42cMWASynGH5Jpvb6oUiZFhLETnqH22s9vUZlMvXWNHs6hS9UswV1//iztkdBz4RfgpSZJ4yfCYs4vvBuIewF8v4mUP6m7gxqGdw7uOVP8DItZE0VGY4yrti5anIoI48w==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "H.J. Lu" <hjl.tools@xxxxxxxxx>
  • Delivery-date: Fri, 16 Jun 2023 12:33:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Only %LV should continue on to S handling; avoid emitting a stray 'l'
(typically) in suffix-always mode.

--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -11067,19 +11067,20 @@ putop (instr_info *ins, const char *in_t
                  *ins->obufp++ = ' ';
                  break;
                case 'L':
-                 if (!(ins->rex & REX_W))
-                   break;
-                 *ins->obufp++ = 'a';
-                 *ins->obufp++ = 'b';
-                 *ins->obufp++ = 's';
-                 break;
+                 if (ins->rex & REX_W)
+                   {
+                     *ins->obufp++ = 'a';
+                     *ins->obufp++ = 'b';
+                     *ins->obufp++ = 's';
+                   }
+                 goto case_S;
                default:
                  abort ();
                }
            }
          else
            abort ();
-         goto case_S;
+         break;
        case 'W':
          if (l == 0)
            {



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.