[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5277] Enable same-arch consistency check on x86-64, print
From: |
Andrzej Zaborowski |
Subject: |
[Qemu-devel] [5277] Enable same-arch consistency check on x86-64, print syscall name on error. |
Date: |
Sun, 21 Sep 2008 02:31:20 +0000 |
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");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [5277] Enable same-arch consistency check on x86-64, print syscall name on error.,
Andrzej Zaborowski <=