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:
parent
0399bfe0bf
commit
77b9435f13
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user