diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-16 11:38:43 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-16 11:38:43 +0000 |
commit | 77b9435f13238ad4b656f8543cea5498e8a0e2a1 (patch) | |
tree | 963ec8d356f3ca8b4fb726fe3ebd74f488d6632f | |
parent | 0399bfe0bf949296258f2b182b6e70e49d03408f (diff) | |
download | hqemu-77b9435f13238ad4b656f8543cea5498e8a0e2a1.zip hqemu-77b9435f13238ad4b656f8543cea5498e8a0e2a1.tar.gz |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c index d2129cc..49776b8 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); |