Revision 9ddff3d2

b/cpu-exec.c
253 253
    /* prepare setjmp context for exception handling */
254 254
    for(;;) {
255 255
        if (setjmp(env->jmp_env) == 0) {
256
#if defined(__sparc__) && !defined(HOST_SOLARIS)
257
#undef env
258
                    env = cpu_single_env;
259
#define env cpu_single_env
260
#endif
256 261
            env->current_tb = NULL;
257 262
            /* if an exception is pending, we execute it here */
258 263
            if (env->exception_index >= 0) {
......
390 395
                            env->interrupt_request &= ~(CPU_INTERRUPT_HARD | CPU_INTERRUPT_VIRQ);
391 396
                            intno = cpu_get_pic_interrupt(env);
392 397
                            qemu_log_mask(CPU_LOG_TB_IN_ASM, "Servicing hardware INT=0x%02x\n", intno);
398
#if defined(__sparc__) && !defined(HOST_SOLARIS)
399
#undef env
400
                    env = cpu_single_env;
401
#define env cpu_single_env
402
#endif
393 403
                            do_interrupt(intno, 0, 0, 0, 1);
394 404
                            /* ensure that no TB jump will be modified as
395 405
                               the program flow was changed */

Also available in: Unified diff