Changeset 13968 in vbox
- Timestamp:
- Nov 7, 2008 3:48:52 PM (16 years ago)
- Location:
- trunk/src/recompiler_new
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/Sun/config.h
r13881 r13968 34 34 /* Uncomment to see emulated CPU state changes */ 35 35 /* #define VBOX_DUMP_STATE */ 36 36 /* Uncomment to see QEMU logging, goes to /tmp/vbox-qemu.log */ 37 /* #define DEBUG_ALL_LOGGING */ 38 /* Uncomment to see generated code */ 39 /* #define DEBUG_DISAS */ -
trunk/src/recompiler_new/VBoxRecompiler.c
r13882 r13968 387 387 #ifdef DEBUG_ALL_LOGGING 388 388 loglevel = ~0; 389 logfile = fopen("/tmp/vbox-qemu.log", "w"); 389 390 #endif 390 391 -
trunk/src/recompiler_new/osdep.h
r13870 r13968 8 8 #include <iprt/stdarg.h> 9 9 #include <iprt/string.h> 10 11 #include "config.h" 10 12 11 13 #ifndef _MSC_VER … … 33 35 #define fflush(file) RTLogFlush(NULL) 34 36 #define printf(...) LogIt(LOG_INSTANCE, 0, LOG_GROUP_REM_PRINTF, (__VA_ARGS__)) 35 #define fprintf(logfile, ...) LogIt(LOG_INSTANCE, 0, LOG_GROUP_REM_PRINTF, (__VA_ARGS__)) 37 /* If DEBUG_ALL_LOGGING - goes to QEMU log file */ 38 #ifndef DEBUG_ALL_LOGGING 39 #define fprintf(logfile, ...) LogIt(LOG_INSTANCE, 0, LOG_GROUP_REM_PRINTF, (__VA_ARGS__)) 40 #endif 36 41 37 42 #define assert(cond) Assert(cond) -
trunk/src/recompiler_new/target-i386/translate.c
r13881 r13968 828 828 829 829 skip_label = gen_new_label(); 830 /* t0 = tcg_temp_local_new(TCG_TYPE_TL); */831 t0 = cpu_tmp0;830 t0 = tcg_temp_local_new(TCG_TYPE_TL); 831 /* t0 = cpu_tmp0; */ 832 832 833 833 tcg_gen_ld32u_tl(t0, cpu_env, offsetof(CPUState, interrupt_request)); … … 840 840 /** @todo: predict branch as taken */ 841 841 tcg_gen_brcondi_i32(TCG_COND_EQ, t0, 0, skip_label); 842 /* tcg_temp_free(t0); */842 tcg_temp_free(t0); 843 843 844 844 tcg_gen_helper_0_0(helper_check_external_event); … … 7849 7849 { 7850 7850 int label1; 7851 TCGv t0, t1, t2 ;7851 TCGv t0, t1, t2, a0; 7852 7852 7853 7853 if (!s->pe || s->vm86) … … 7856 7856 t1 = tcg_temp_local_new(TCG_TYPE_TL); 7857 7857 t2 = tcg_temp_local_new(TCG_TYPE_TL); 7858 #ifdef VBOX 7859 a0 = tcg_temp_local_new(TCG_TYPE_TL); 7860 #endif 7858 7861 ot = OT_WORD; 7859 7862 modrm = ldub_code(s->pc++); … … 7863 7866 if (mod != 3) { 7864 7867 gen_lea_modrm(s, modrm, ®_addr, &offset_addr); 7868 #ifdef VBOX 7869 tcg_gen_mov_tl(a0, cpu_A0); 7870 #endif 7865 7871 gen_op_ld_v(ot + s->mem_index, t0, cpu_A0); 7866 7872 } else { … … 7878 7884 gen_set_label(label1); 7879 7885 if (mod != 3) { 7886 #ifdef VBOX 7887 /* cpu_A0 doesn't survive branch */ 7888 gen_op_st_v(ot + s->mem_index, t0, a0); 7889 #else 7880 7890 gen_op_st_v(ot + s->mem_index, t0, cpu_A0); 7891 #endif 7881 7892 } else { 7882 7893 gen_op_mov_reg_v(ot, rm, t0); … … 7891 7902 tcg_temp_free(t1); 7892 7903 tcg_temp_free(t2); 7904 #ifdef VBOX 7905 tcg_temp_free(a0); 7906 #endif 7893 7907 } 7894 7908 break;
Note:
See TracChangeset
for help on using the changeset viewer.