* [Qemu-devel] [5277] Enable same-arch consistency check on x86-64, print syscall name on error.
@ 2008-09-21  2:31 Andrzej Zaborowski
  0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-09-21  2:31 UTC (permalink / raw)
  To: qemu-devel
Revision: 5277
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5277
Author:   balrog
Date:     2008-09-21 02:31:19 +0000 (Sun, 21 Sep 2008)
Log Message:
-----------
Enable same-arch consistency check on x86-64, print syscall name on error.
Also disable testing instructions unsupported by 64-bit binutils in 
test-i386.c
Modified Paths:
--------------
    trunk/linux-user/syscall.c
    trunk/tests/test-i386.c
Modified: trunk/linux-user/syscall.c
===================================================================
--- trunk/linux-user/syscall.c	2008-09-20 09:05:49 UTC (rev 5276)
+++ trunk/linux-user/syscall.c	2008-09-21 02:31:19 UTC (rev 5277)
@@ -3075,10 +3075,11 @@
                 target_to_host_errno_table[host_to_target_errno_table[i]] = i;
 
         /* automatic consistency check if same arch */
-#if defined(__i386__) && defined(TARGET_I386) && defined(TARGET_ABI32)
-        if (ie->target_cmd != ie->host_cmd) {
-            fprintf(stderr, "ERROR: ioctl: target=0x%x host=0x%x\n",
-                    ie->target_cmd, ie->host_cmd);
+#if (defined(__i386__) && defined(TARGET_I386) && defined(TARGET_ABI32)) || \
+    (defined(__x86_64__) && defined(TARGET_X86_64))
+        if (unlikely(ie->target_cmd != ie->host_cmd)) {
+            fprintf(stderr, "ERROR: ioctl(%s): target=0x%x host=0x%x\n",
+                    ie->name, ie->target_cmd, ie->host_cmd);
         }
 #endif
         ie++;
Modified: trunk/tests/test-i386.c
===================================================================
--- trunk/tests/test-i386.c	2008-09-20 09:05:49 UTC (rev 5276)
+++ trunk/tests/test-i386.c	2008-09-21 02:31:19 UTC (rev 5277)
@@ -489,10 +489,12 @@
     };
     int i, res;
 
+#if !defined(__x86_64__)
     TEST_LOOP("jcxz");
     TEST_LOOP("loopw");
     TEST_LOOP("loopzw");
     TEST_LOOP("loopnzw");
+#endif
 
     TEST_LOOP("jecxz");
     TEST_LOOP("loopl");
^ permalink raw reply	[flat|nested] only message in thread
only message in thread, other threads:[~2008-09-21  2:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-21  2:31 [Qemu-devel] [5277] Enable same-arch consistency check on x86-64, print syscall name on error Andrzej Zaborowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).