Revision ee0dc6d3

b/target-alpha/helper.c
467 467

  
468 468
    env->ipr[IPR_EXC_ADDR] = env->pc | 1;
469 469
    excp = env->exception_index;
470
    env->exception_index = 0;
470
    env->exception_index = -1;
471 471
    env->error_code = 0;
472 472
    /* XXX: disable interrupts and memory mapping */
473 473
    if (env->ipr[IPR_PAL_BASE] != -1ULL) {
b/target-s390x/kvm.c
186 186
    }
187 187

  
188 188
    env->halted = 0;
189
    env->exception_index = 0;
189
    env->exception_index = -1;
190 190

  
191 191
    kvmint.type = type;
192 192
    kvmint.parm = parm;
......
325 325
{
326 326
    kvm_s390_interrupt(env, KVM_S390_RESTART, 0);
327 327
    env->halted = 0;
328
    env->exception_index = 0;
328
    env->exception_index = -1;
329 329
    qemu_cpu_kick(env);
330 330
    dprintf("DONE: SIGP cpu restart: %p\n", env);
331 331
    return 0;
b/target-sh4/helper.c
38 38
			     int mmu_idx, int is_softmmu)
39 39
{
40 40
    env->tea = address;
41
    env->exception_index = 0;
41
    env->exception_index = -1;
42 42
    switch (rw) {
43 43
    case 0:
44 44
        env->exception_index = 0x0a0;

Also available in: Unified diff