Diff for /qemu/translate-all.c between versions 1.1.1.7 and 1.1.1.8

version 1.1.1.7, 2018/04/24 18:23:44 version 1.1.1.8, 2018/04/24 18:56:00
Line 26 Line 26
   
 #define NO_CPU_IO_DEFS  #define NO_CPU_IO_DEFS
 #include "cpu.h"  #include "cpu.h"
 #include "exec-all.h"  
 #include "disas.h"  #include "disas.h"
 #include "tcg.h"  #include "tcg.h"
 #include "qemu-timer.h"  #include "qemu-timer.h"
Line 44  uint8_t gen_opc_instr_start[OPC_BUF_SIZE Line 43  uint8_t gen_opc_instr_start[OPC_BUF_SIZE
 void cpu_gen_init(void)  void cpu_gen_init(void)
 {  {
     tcg_context_init(&tcg_ctx);       tcg_context_init(&tcg_ctx); 
     tcg_set_frame(&tcg_ctx, TCG_AREG0, offsetof(CPUState, temp_buf),  
                   CPU_TEMP_BUF_NLONGS * sizeof(long));  
 }  }
   
 /* return non zero if the very first instruction is invalid so that  /* return non zero if the very first instruction is invalid so that
Line 112  int cpu_gen_code(CPUState *env, Translat Line 109  int cpu_gen_code(CPUState *env, Translat
 /* The cpu state corresponding to 'searched_pc' is restored.  /* The cpu state corresponding to 'searched_pc' is restored.
  */   */
 int cpu_restore_state(TranslationBlock *tb,  int cpu_restore_state(TranslationBlock *tb,
                       CPUState *env, unsigned long searched_pc,                        CPUState *env, unsigned long searched_pc)
                       void *puc)  
 {  {
     TCGContext *s = &tcg_ctx;      TCGContext *s = &tcg_ctx;
     int j;      int j;
Line 157  int cpu_restore_state(TranslationBlock * Line 153  int cpu_restore_state(TranslationBlock *
         j--;          j--;
     env->icount_decr.u16.low -= gen_opc_icount[j];      env->icount_decr.u16.low -= gen_opc_icount[j];
   
     gen_pc_load(env, tb, searched_pc, j, puc);      restore_state_to_opc(env, tb, j);
   
 #ifdef CONFIG_PROFILER  #ifdef CONFIG_PROFILER
     s->restore_time += profile_getclock() - ti;      s->restore_time += profile_getclock() - ti;

Removed from v.1.1.1.7  
changed lines
  Added in v.1.1.1.8


unix.superglobalmegacorp.com