Skip to contentSkip to conversation

[5726] Use correct trap for syscalls on Sparc32

Qemu-devel Blue Swirl 1 participant 1 message Nov 16, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 5726

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5726
Author:   blueswir1
Date:     2008-11-16 11:38:43 +0000 (Sun, 16 Nov 2008)

Log Message:
-----------
Use correct trap for syscalls on Sparc32

Modified Paths:
--------------
trunk/bsd-user/main.c

Modified: trunk/bsd-user/main.c
===================================================================

bsd-user/main.c +4 -0
@@ -180,7 +180,11 @@
         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);