aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-07 18:59:05 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-07 18:59:05 +0000
commit9399f095bd742ef8dc0f1b08baa3893d9bdbeebc (patch)
tree043fa2d18712434d698010a34bfa33c54c1582a1
parent88103cfecf5666237fb2e55a7dd666fa66d316ec (diff)
downloadqemu-9399f095bd742ef8dc0f1b08baa3893d9bdbeebc.zip
qemu-9399f095bd742ef8dc0f1b08baa3893d9bdbeebc.tar.gz
qemu-9399f095bd742ef8dc0f1b08baa3893d9bdbeebc.tar.bz2
Fix BSD user: there is no NPTL
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6745 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--bsd-user/main.c37
-rw-r--r--bsd-user/qemu.h2
2 files changed, 39 insertions, 0 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 74a1ba6..0dc9b99 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -50,6 +50,43 @@ void gemu_log(const char *fmt, ...)
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
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 3ea0044..d411bbb 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -186,6 +186,8 @@ int target_msync(abi_ulong start, abi_ulong len, int flags);
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);