Use correct trap for syscalls on Sparc32

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5726 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2008-11-16 11:38:43 +00:00
parent 0399bfe0bf
commit 77b9435f13

View File

@ -180,7 +180,11 @@ void cpu_loop(CPUSPARCState *env, enum BSDType bsd_type)
trapnr = cpu_sparc_exec (env); trapnr = cpu_sparc_exec (env);
switch (trapnr) { switch (trapnr) {
#ifndef TARGET_SPARC64
case 0x80:
#else
case 0x100: case 0x100:
#endif
syscall_nr = env->gregs[1]; syscall_nr = env->gregs[1];
#if defined(TARGET_SPARC) #if defined(TARGET_SPARC)
syscall_nr &= ~(SYSCALL_G7RFLAG | SYSCALL_G2RFLAG); syscall_nr &= ~(SYSCALL_G7RFLAG | SYSCALL_G2RFLAG);