* [Qemu-devel] [5726] Use correct trap for syscalls on Sparc32
@ 2008-11-16 11:38 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-11-16 11:38 UTC (permalink / raw)
To: qemu-devel
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
===================================================================
--- trunk/bsd-user/main.c 2008-11-16 11:37:18 UTC (rev 5725)
+++ trunk/bsd-user/main.c 2008-11-16 11:38:43 UTC (rev 5726)
@@ -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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-16 11:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-16 11:38 [Qemu-devel] [5726] Use correct trap for syscalls on Sparc32 Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).