aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-21 02:31:19 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-21 02:31:19 +0000
commit872ea0c098f63a36de8c49eb2cf348cd111292b9 (patch)
tree54d2468ce804efff32def58ce831f333993c969c /linux-user
parentf0d5e47183fa0cbea650944b41e0241e336b697b (diff)
downloadqemu-872ea0c098f63a36de8c49eb2cf348cd111292b9.zip
qemu-872ea0c098f63a36de8c49eb2cf348cd111292b9.tar.gz
qemu-872ea0c098f63a36de8c49eb2cf348cd111292b9.tar.bz2
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 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5277 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/syscall.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 0260756..64d700d 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3075,10 +3075,11 @@ void syscall_init(void)
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++;