Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KhEjK-0007k1-FA for qemu-devel@nongnu.org; Sat, 20 Sep 2008 22:31:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhEjJ-0007jn-FR for qemu-devel@nongnu.org; Sat, 20 Sep 2008 22:31:21 -0400 Received: from [199.232.76.173] (port=46538 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhEjJ-0007jk-AS for qemu-devel@nongnu.org; Sat, 20 Sep 2008 22:31:21 -0400 Received: from savannah.gnu.org ([199.232.41.3]:58373 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KhEjJ-0000QA-97 for qemu-devel@nongnu.org; Sat, 20 Sep 2008 22:31:21 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KhEjI-0008LH-L2 for qemu-devel@nongnu.org; Sun, 21 Sep 2008 02:31:20 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KhEjI-0008LD-9a for qemu-devel@nongnu.org; Sun, 21 Sep 2008 02:31:20 +0000 MIME-Version: 1.0 Errors-To: balrog Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andrzej Zaborowski Message-Id: Date: Sun, 21 Sep 2008 02:31:20 +0000 Subject: [Qemu-devel] [5277] Enable same-arch consistency check on x86-64, print syscall name on error. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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");