Commit 9399f095bd742ef8dc0f1b08baa3893d9bdbeebc
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
Showing
2 changed files
with
39 additions
and
0 deletions
bsd-user/main.c
... | ... | @@ -50,6 +50,43 @@ void gemu_log(const char *fmt, ...) |
50 | 50 | vfprintf(stderr, fmt, ap); |
51 | 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 | 90 | #ifdef TARGET_SPARC |
54 | 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 | 186 | extern unsigned long last_brk; |
187 | 187 | void mmap_lock(void); |
188 | 188 | void mmap_unlock(void); |
189 | +void cpu_list_lock(void); | |
190 | +void cpu_list_unlock(void); | |
189 | 191 | #if defined(USE_NPTL) |
190 | 192 | void mmap_fork_start(void); |
191 | 193 | void mmap_fork_end(int child); | ... | ... |