Skip to content

Commit

Permalink
Fix BSD user: there is no NPTL
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6745 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
blueswir1 committed Mar 7, 2009
1 parent 88103cf commit 9399f09
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions bsd-user/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions bsd-user/qemu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9399f09

Please sign in to comment.