summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-16 11:38:43 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-16 11:38:43 +0000
commit77b9435f13238ad4b656f8543cea5498e8a0e2a1 (patch)
tree963ec8d356f3ca8b4fb726fe3ebd74f488d6632f
parentFix warnings caused by timer_t, it is 32 bits on Sparc64 (diff)
downloadqemu-kvm-77b9435f13238ad4b656f8543cea5498e8a0e2a1.tar.gz
qemu-kvm-77b9435f13238ad4b656f8543cea5498e8a0e2a1.tar.bz2
qemu-kvm-77b9435f13238ad4b656f8543cea5498e8a0e2a1.zip
Use correct trap for syscalls on Sparc32
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5726 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--bsd-user/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c
index d2129cc0c..49776b873 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -180,7 +180,11 @@ void cpu_loop(CPUSPARCState *env, enum BSDType bsd_type)
trapnr = cpu_sparc_exec (env);
switch (trapnr) {
+#ifndef TARGET_SPARC64
+ case 0x80:
+#else
case 0x100:
+#endif
syscall_nr = env->gregs[1];
#if defined(TARGET_SPARC)
syscall_nr &= ~(SYSCALL_G7RFLAG | SYSCALL_G2RFLAG);