Revision dfe5fff3 cpu-exec.c
b/cpu-exec.c | ||
---|---|---|
38 | 38 |
#endif |
39 | 39 |
#endif |
40 | 40 |
|
41 |
#if defined(__sparc__) && !defined(HOST_SOLARIS)
|
|
41 |
#if defined(__sparc__) && !defined(CONFIG_SOLARIS)
|
|
42 | 42 |
// Work around ugly bugs in glibc that mangle global register contents |
43 | 43 |
#undef env |
44 | 44 |
#define env cpu_single_env |
... | ... | |
258 | 258 |
/* prepare setjmp context for exception handling */ |
259 | 259 |
for(;;) { |
260 | 260 |
if (setjmp(env->jmp_env) == 0) { |
261 |
#if defined(__sparc__) && !defined(HOST_SOLARIS)
|
|
261 |
#if defined(__sparc__) && !defined(CONFIG_SOLARIS)
|
|
262 | 262 |
#undef env |
263 | 263 |
env = cpu_single_env; |
264 | 264 |
#define env cpu_single_env |
... | ... | |
414 | 414 |
env->interrupt_request &= ~(CPU_INTERRUPT_HARD | CPU_INTERRUPT_VIRQ); |
415 | 415 |
intno = cpu_get_pic_interrupt(env); |
416 | 416 |
qemu_log_mask(CPU_LOG_TB_IN_ASM, "Servicing hardware INT=0x%02x\n", intno); |
417 |
#if defined(__sparc__) && !defined(HOST_SOLARIS)
|
|
417 |
#if defined(__sparc__) && !defined(CONFIG_SOLARIS)
|
|
418 | 418 |
#undef env |
419 | 419 |
env = cpu_single_env; |
420 | 420 |
#define env cpu_single_env |
... | ... | |
644 | 644 |
while (env->current_tb) { |
645 | 645 |
tc_ptr = tb->tc_ptr; |
646 | 646 |
/* execute the generated code */ |
647 |
#if defined(__sparc__) && !defined(HOST_SOLARIS)
|
|
647 |
#if defined(__sparc__) && !defined(CONFIG_SOLARIS)
|
|
648 | 648 |
#undef env |
649 | 649 |
env = cpu_single_env; |
650 | 650 |
#define env cpu_single_env |
... | ... | |
1435 | 1435 |
siginfo_t *info = pinfo; |
1436 | 1436 |
int is_write; |
1437 | 1437 |
uint32_t insn; |
1438 |
#if !defined(__arch64__) || defined(HOST_SOLARIS)
|
|
1438 |
#if !defined(__arch64__) || defined(CONFIG_SOLARIS)
|
|
1439 | 1439 |
uint32_t *regs = (uint32_t *)(info + 1); |
1440 | 1440 |
void *sigmask = (regs + 20); |
1441 | 1441 |
/* XXX: is there a standard glibc define ? */ |
Also available in: Unified diff