Commit 658c8bdadc04fc3d66bad80c1234fea8cc7cca41

Authored by bellard
1 parent 5fef40fb

added ffree - added cpu log option


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@919 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 6 additions and 0 deletions
target-i386/translate.c
@@ -3166,6 +3166,9 @@ static uint8_t *disas_insn(DisasContext *s, uint8_t *pc_start) @@ -3166,6 +3166,9 @@ static uint8_t *disas_insn(DisasContext *s, uint8_t *pc_start)
3166 gen_op_fcomi_ST0_FT0(); 3166 gen_op_fcomi_ST0_FT0();
3167 s->cc_op = CC_OP_EFLAGS; 3167 s->cc_op = CC_OP_EFLAGS;
3168 break; 3168 break;
  3169 + case 0x28: /* ffree sti */
  3170 + gen_op_ffree_STN(opreg);
  3171 + break;
3169 case 0x2a: /* fst sti */ 3172 case 0x2a: /* fst sti */
3170 gen_op_fmov_STN_ST0(opreg); 3173 gen_op_fmov_STN_ST0(opreg);
3171 break; 3174 break;
@@ -4635,6 +4638,9 @@ static inline int gen_intermediate_code_internal(CPUState *env, @@ -4635,6 +4638,9 @@ static inline int gen_intermediate_code_internal(CPUState *env,
4635 } 4638 }
4636 4639
4637 #ifdef DEBUG_DISAS 4640 #ifdef DEBUG_DISAS
  4641 + if (loglevel & CPU_LOG_TB_CPU) {
  4642 + cpu_dump_state(env, logfile, X86_DUMP_CCOP);
  4643 + }
4638 if (loglevel & CPU_LOG_TB_IN_ASM) { 4644 if (loglevel & CPU_LOG_TB_IN_ASM) {
4639 fprintf(logfile, "----------------\n"); 4645 fprintf(logfile, "----------------\n");
4640 fprintf(logfile, "IN: %s\n", lookup_symbol(pc_start)); 4646 fprintf(logfile, "IN: %s\n", lookup_symbol(pc_start));