aboutsummaryrefslogtreecommitdiff
path: root/bsd-user
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 /bsd-user
parent0399bfe0bf949296258f2b182b6e70e49d03408f (diff)
Use correct trap for syscalls on Sparc32
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5726 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'bsd-user')
-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 d2129cc0c1..49776b8733 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);