qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6745] Fix BSD user: there is no NPTL
@ 2009-03-07 18:59 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-03-07 18:59 UTC (permalink / raw)
  To: qemu-devel

Revision: 6745
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6745
Author:   blueswir1
Date:     2009-03-07 18:59:05 +0000 (Sat, 07 Mar 2009)
Log Message:
-----------
Fix BSD user: there is no NPTL

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

Modified: trunk/bsd-user/main.c
===================================================================
--- trunk/bsd-user/main.c	2009-03-07 16:57:53 UTC (rev 6744)
+++ trunk/bsd-user/main.c	2009-03-07 18:59:05 UTC (rev 6745)
@@ -50,6 +50,43 @@
     vfprintf(stderr, fmt, ap);
     va_end(ap);
 }
+
+/* These are no-ops because we are not threadsafe.  */
+static inline void cpu_exec_start(CPUState *env)
+{
+}
+
+static inline void cpu_exec_end(CPUState *env)
+{
+}
+
+static inline void start_exclusive(void)
+{
+}
+
+static inline void end_exclusive(void)
+{
+}
+
+void fork_start(void)
+{
+}
+
+void fork_end(int child)
+{
+    if (child) {
+        gdbserver_fork(thread_env);
+    }
+}
+
+void cpu_list_lock(void)
+{
+}
+
+void cpu_list_unlock(void)
+{
+}
+
 #ifdef TARGET_SPARC
 #define SPARC64_STACK_BIAS 2047
 

Modified: trunk/bsd-user/qemu.h
===================================================================
--- trunk/bsd-user/qemu.h	2009-03-07 16:57:53 UTC (rev 6744)
+++ trunk/bsd-user/qemu.h	2009-03-07 18:59:05 UTC (rev 6745)
@@ -186,6 +186,8 @@
 extern unsigned long last_brk;
 void mmap_lock(void);
 void mmap_unlock(void);
+void cpu_list_lock(void);
+void cpu_list_unlock(void);
 #if defined(USE_NPTL)
 void mmap_fork_start(void);
 void mmap_fork_end(int child);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-07 18:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-07 18:59 [Qemu-devel] [6745] Fix BSD user: there is no NPTL 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).