Commit 77b9435f13238ad4b656f8543cea5498e8a0e2a1

Authored by blueswir1
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,7 +180,11 @@ void cpu_loop(CPUSPARCState *env, enum BSDType bsd_type)
180 trapnr = cpu_sparc_exec (env); 180 trapnr = cpu_sparc_exec (env);
181 181
182 switch (trapnr) { 182 switch (trapnr) {
  183 +#ifndef TARGET_SPARC64
  184 + case 0x80:
  185 +#else
183 case 0x100: 186 case 0x100:
  187 +#endif
184 syscall_nr = env->gregs[1]; 188 syscall_nr = env->gregs[1];
185 #if defined(TARGET_SPARC) 189 #if defined(TARGET_SPARC)
186 syscall_nr &= ~(SYSCALL_G7RFLAG | SYSCALL_G2RFLAG); 190 syscall_nr &= ~(SYSCALL_G7RFLAG | SYSCALL_G2RFLAG);