Revision 09d85fb8 target-i386/translate.c

b/target-i386/translate.c
7502 7502
        switch(op) {
7503 7503
        case 0: /* fxsave */
7504 7504
            if (mod == 3 || !(s->cpuid_features & CPUID_FXSR) ||
7505
                (s->flags & HF_EM_MASK))
7505
                (s->prefix & PREFIX_LOCK))
7506 7506
                goto illegal_op;
7507
            if (s->flags & HF_TS_MASK) {
7507
            if ((s->flags & HF_EM_MASK) || (s->flags & HF_TS_MASK)) {
7508 7508
                gen_exception(s, EXCP07_PREX, pc_start - s->cs_base);
7509 7509
                break;
7510 7510
            }
......
7516 7516
            break;
7517 7517
        case 1: /* fxrstor */
7518 7518
            if (mod == 3 || !(s->cpuid_features & CPUID_FXSR) ||
7519
                (s->flags & HF_EM_MASK))
7519
                (s->prefix & PREFIX_LOCK))
7520 7520
                goto illegal_op;
7521
            if (s->flags & HF_TS_MASK) {
7521
            if ((s->flags & HF_EM_MASK) || (s->flags & HF_TS_MASK)) {
7522 7522
                gen_exception(s, EXCP07_PREX, pc_start - s->cs_base);
7523 7523
                break;
7524 7524
            }

Also available in: Unified diff