Revision cabb4d61
b/cpu-i386.h | ||
---|---|---|
440 | 440 |
#define GEN_FLAG_ST_SHIFT 4 |
441 | 441 |
#define GEN_FLAG_CPL_SHIFT 7 |
442 | 442 |
#define GEN_FLAG_IOPL_SHIFT 9 |
443 |
#define GEN_FLAG_TF_SHIFT 11 |
|
443 | 444 |
|
444 | 445 |
int cpu_x86_gen_code(uint8_t *gen_code_buf, int max_code_size, |
445 | 446 |
int *gen_code_size_ptr, |
b/exec-i386.c | ||
---|---|---|
371 | 371 |
flags |= (3 << GEN_FLAG_CPL_SHIFT); |
372 | 372 |
} |
373 | 373 |
flags |= (env->eflags & IOPL_MASK) >> (12 - GEN_FLAG_IOPL_SHIFT); |
374 |
flags |= (env->eflags & TF_MASK) << (GEN_FLAG_TF_SHIFT - 8); |
|
374 | 375 |
cs_base = env->seg_cache[R_CS].base; |
375 | 376 |
pc = cs_base + env->eip; |
376 | 377 |
tb = tb_find(&ptb, (unsigned long)pc, (unsigned long)cs_base, |
Also available in: Unified diff