Revision 3b46e624 exec-all.h
b/exec-all.h | ||
---|---|---|
68 | 68 |
typedef void (GenOpFunc1)(long); |
69 | 69 |
typedef void (GenOpFunc2)(long, long); |
70 | 70 |
typedef void (GenOpFunc3)(long, long, long); |
71 |
|
|
71 |
|
|
72 | 72 |
#if defined(TARGET_I386) |
73 | 73 |
|
74 | 74 |
void optimize_flags_init(void); |
... | ... | |
287 | 287 |
if (!tb->jmp_next[n]) { |
288 | 288 |
/* patch the native jump address */ |
289 | 289 |
tb_set_jmp_target(tb, n, (unsigned long)tb_next->tc_ptr); |
290 |
|
|
290 |
|
|
291 | 291 |
/* add in TB jmp circular list */ |
292 | 292 |
tb->jmp_next[n] = tb_next->jmp_first; |
293 | 293 |
tb_next->jmp_first = (TranslationBlock *)((long)(tb) | (n)); |
... | ... | |
398 | 398 |
static inline int testandset (int *p) |
399 | 399 |
{ |
400 | 400 |
long int readval = 0; |
401 |
|
|
401 |
|
|
402 | 402 |
__asm__ __volatile__ ("lock; cmpxchgl %2, %0" |
403 | 403 |
: "+m" (*p), "+a" (readval) |
404 | 404 |
: "r" (1) |
... | ... | |
409 | 409 |
static inline int testandset (int *p) |
410 | 410 |
{ |
411 | 411 |
long int readval = 0; |
412 |
|
|
412 |
|
|
413 | 413 |
__asm__ __volatile__ ("lock; cmpxchgl %2, %0" |
414 | 414 |
: "+m" (*p), "+a" (readval) |
415 | 415 |
: "r" (1) |
... | ... | |
464 | 464 |
__asm__ __volatile__("swp %0, %1, [%2]" |
465 | 465 |
: "=r"(ret) |
466 | 466 |
: "0"(1), "r"(spinlock)); |
467 |
|
|
467 |
|
|
468 | 468 |
return ret; |
469 | 469 |
} |
470 | 470 |
#elif defined(__mc68000) |
Also available in: Unified diff