Commit 77b9435f13238ad4b656f8543cea5498e8a0e2a1
1 parent
0399bfe0
Use correct trap for syscalls on Sparc32
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5726 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
0 deletions
bsd-user/main.c
... | ... | @@ -180,7 +180,11 @@ void cpu_loop(CPUSPARCState *env, enum BSDType bsd_type) |
180 | 180 | trapnr = cpu_sparc_exec (env); |
181 | 181 | |
182 | 182 | switch (trapnr) { |
183 | +#ifndef TARGET_SPARC64 | |
184 | + case 0x80: | |
185 | +#else | |
183 | 186 | case 0x100: |
187 | +#endif | |
184 | 188 | syscall_nr = env->gregs[1]; |
185 | 189 | #if defined(TARGET_SPARC) |
186 | 190 | syscall_nr &= ~(SYSCALL_G7RFLAG | SYSCALL_G2RFLAG); | ... | ... |