- Timestamp:
- Jan 19, 2009 7:19:02 PM (16 years ago)
- Location:
- trunk/src/recompiler_new
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/Makefile.kmk
r15761 r16056 110 110 $(REM_MOD)_DEFS += VBOX_WITH_NEW_RECOMPILER 111 111 #$(REM_MOD)_DEFS += DEBUG_ALL_LOGGING DEBUG_DISAS DEBUG_PCALL DEBUG_EXEC DEBUG_FLUSH DEBUG_IOPORT DEBUG_SIGNAL DEBUG_TLB_CHECK DEBUG_TB_INVALIDATE DEBUG_TLB # Enables huge amounts of debug logging. 112 #$(REM_MOD)_DEFS += DEBUG_TMP_LOGGING # log qemu parts to "/tmp/vbox-qemu.log" - does not work with VBoxREM2. 112 113 $(REM_MOD)_DEFS.linux = _GNU_SOURCE 113 114 ifdef VBOX_SOLARIS_10 … … 125 126 $(PATH_ROOT)/src/VBox/VMM \ 126 127 . 128 ifn1of ($($(REM_MOD)_DEFS),DEBUG_TMP_LOGGING) 129 $(REM_MOD)_INCS <= \ 130 Sun/crt 131 endif 127 132 128 133 $(REM_MOD)_SOURCES = \ -
trunk/src/recompiler_new/Sun/crt/stdio.h
r15452 r16056 68 68 #define fprintf(logfile, ...) LogIt(LOG_INSTANCE, 0, LOG_GROUP_REM_PRINTF, (__VA_ARGS__)) 69 69 70 #ifdef DEBUG_TMP_LOGGING 71 # error "DEBUG_TMP_LOGGING doesn't work with the Sun/crt/stdio.h wrapper." 72 #endif 70 73 71 74 __END_DECLS -
trunk/src/recompiler_new/VBoxRecompiler.c
r15920 r16056 390 390 #ifdef DEBUG_ALL_LOGGING 391 391 loglevel = ~0; 392 # ifdef DEBUG_TMP_LOGGING 392 393 logfile = fopen("/tmp/vbox-qemu.log", "w"); 394 # endif 393 395 #endif 394 396 … … 2974 2976 * @param pTLBEntry The TLB entry. 2975 2977 */ 2976 target_ulong remR3PhysGetPhysicalAddressCode(CPUState* env, 2977 target_ulong addr, 2978 target_ulong remR3PhysGetPhysicalAddressCode(CPUState* env, 2979 target_ulong addr, 2978 2980 CPUTLBEntry* pTLBEntry, 2979 2981 target_phys_addr_t ioTLBEntry) … … 2983 2985 if ((ioTLBEntry & ~TARGET_PAGE_MASK) == pVM->rem.s.iHandlerMemType) 2984 2986 { 2985 /* If code memory is being monitored, appropriate IOTLB entry will have 2986 handler IO type, and addend will provide real physical address, no 2987 /* If code memory is being monitored, appropriate IOTLB entry will have 2988 handler IO type, and addend will provide real physical address, no 2987 2989 matter if we store VA in TLB or not, as handlers are always passed PA */ 2988 2990 target_ulong ret = (ioTLBEntry & TARGET_PAGE_MASK) + addr; … … 3677 3679 void disas(FILE *phFile, void *pvCode, unsigned long cb) 3678 3680 { 3679 #ifdef DEBUG_ ALL_LOGGING3680 # define DISAS_PRINTF(x...) fprintf(phFile, x)3681 #ifdef DEBUG_TMP_LOGGING 3682 # define DISAS_PRINTF(x...) fprintf(phFile, x) 3681 3683 #else 3682 # define DISAS_PRINTF(x...) RTLogPrintf(x)3684 # define DISAS_PRINTF(x...) RTLogPrintf(x) 3683 3685 if (LogIs2Enabled()) 3684 3686 #endif … … 3727 3729 void target_disas(FILE *phFile, target_ulong uCode, target_ulong cb, int fFlags) 3728 3730 { 3729 #ifdef DEBUG_ ALL_LOGGING3730 # define DISAS_PRINTF(x...) fprintf(phFile, x)3731 #ifdef DEBUG_TMP_LOGGING 3732 # define DISAS_PRINTF(x...) fprintf(phFile, x) 3731 3733 #else 3732 # define DISAS_PRINTF(x...) RTLogPrintf(x)3734 # define DISAS_PRINTF(x...) RTLogPrintf(x) 3733 3735 if (LogIs2Enabled()) 3734 3736 #endif -
trunk/src/recompiler_new/osdep.h
r14763 r16056 37 37 #define fflush(file) RTLogFlush(NULL) 38 38 #define printf(...) LogIt(LOG_INSTANCE, 0, LOG_GROUP_REM_PRINTF, (__VA_ARGS__)) 39 /* If DEBUG_ ALL_LOGGING - goes to QEMU log file */40 #ifndef DEBUG_ ALL_LOGGING41 #define fprintf(logfile, ...)LogIt(LOG_INSTANCE, 0, LOG_GROUP_REM_PRINTF, (__VA_ARGS__))39 /* If DEBUG_TMP_LOGGING - goes to QEMU log file */ 40 #ifndef DEBUG_TMP_LOGGING 41 # define fprintf(logfile, ...) LogIt(LOG_INSTANCE, 0, LOG_GROUP_REM_PRINTF, (__VA_ARGS__)) 42 42 #endif 43 43 … … 126 126 #ifdef _MSC_VER 127 127 /** @todo: maybe wrong, or slow */ 128 #define REGPARM 128 #define REGPARM 129 129 #else 130 130 #define REGPARM __attribute((regparm(3))) … … 165 165 #ifdef _MSC_VER 166 166 #define ALIGNED_MEMBER(type, name, bytes) type name 167 #define ALIGNED_MEMBER_DEF(type, name) type name 167 #define ALIGNED_MEMBER_DEF(type, name) type name 168 168 #define PACKED_STRUCT(name) struct name 169 169 #define REGISTER_BOUND_GLOBAL(type, var, reg) type var
Note:
See TracChangeset
for help on using the changeset viewer.