Commit 9399f095bd742ef8dc0f1b08baa3893d9bdbeebc

Authored by blueswir1
1 parent 88103cfe

Fix BSD user: there is no NPTL

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6745 c046a42c-6fe2-441c-8c8c-71466251a162
bsd-user/main.c
@@ -50,6 +50,43 @@ void gemu_log(const char *fmt, ...) @@ -50,6 +50,43 @@ void gemu_log(const char *fmt, ...)
50 vfprintf(stderr, fmt, ap); 50 vfprintf(stderr, fmt, ap);
51 va_end(ap); 51 va_end(ap);
52 } 52 }
  53 +
  54 +/* These are no-ops because we are not threadsafe. */
  55 +static inline void cpu_exec_start(CPUState *env)
  56 +{
  57 +}
  58 +
  59 +static inline void cpu_exec_end(CPUState *env)
  60 +{
  61 +}
  62 +
  63 +static inline void start_exclusive(void)
  64 +{
  65 +}
  66 +
  67 +static inline void end_exclusive(void)
  68 +{
  69 +}
  70 +
  71 +void fork_start(void)
  72 +{
  73 +}
  74 +
  75 +void fork_end(int child)
  76 +{
  77 + if (child) {
  78 + gdbserver_fork(thread_env);
  79 + }
  80 +}
  81 +
  82 +void cpu_list_lock(void)
  83 +{
  84 +}
  85 +
  86 +void cpu_list_unlock(void)
  87 +{
  88 +}
  89 +
53 #ifdef TARGET_SPARC 90 #ifdef TARGET_SPARC
54 #define SPARC64_STACK_BIAS 2047 91 #define SPARC64_STACK_BIAS 2047
55 92
bsd-user/qemu.h
@@ -186,6 +186,8 @@ int target_msync(abi_ulong start, abi_ulong len, int flags); @@ -186,6 +186,8 @@ int target_msync(abi_ulong start, abi_ulong len, int flags);
186 extern unsigned long last_brk; 186 extern unsigned long last_brk;
187 void mmap_lock(void); 187 void mmap_lock(void);
188 void mmap_unlock(void); 188 void mmap_unlock(void);
  189 +void cpu_list_lock(void);
  190 +void cpu_list_unlock(void);
189 #if defined(USE_NPTL) 191 #if defined(USE_NPTL)
190 void mmap_fork_start(void); 192 void mmap_fork_start(void);
191 void mmap_fork_end(int child); 193 void mmap_fork_end(int child);