- Timestamp:
- Oct 9, 2008 10:08:00 AM (16 years ago)
- Location:
- trunk/src/recompiler
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxRecompiler.c
r13034 r13117 954 954 } 955 955 956 Log2(("REMR3EmulateInstruction: returns %Vrc (cs:eip=%04x:% 08x)\n",956 Log2(("REMR3EmulateInstruction: returns %Vrc (cs:eip=%04x:%VGv)\n", 957 957 rc, pVM->rem.s.Env.segs[R_CS].selector, pVM->rem.s.Env.eip)); 958 958 return rc; … … 974 974 REMR3DECL(int) REMR3Run(PVM pVM) 975 975 { 976 Log2(("REMR3Run: (cs:eip=%04x:% 08x)\n", pVM->rem.s.Env.segs[R_CS].selector, pVM->rem.s.Env.eip));976 Log2(("REMR3Run: (cs:eip=%04x:%VGv)\n", pVM->rem.s.Env.segs[R_CS].selector, pVM->rem.s.Env.eip)); 977 977 Assert(pVM->rem.s.fInREM); 978 978 … … 1082 1082 } 1083 1083 1084 Log2(("REMR3Run: returns %Vrc (cs:eip=%04x:% 08x)\n", rc, pVM->rem.s.Env.segs[R_CS].selector, pVM->rem.s.Env.eip));1084 Log2(("REMR3Run: returns %Vrc (cs:eip=%04x:%VGv)\n", rc, pVM->rem.s.Env.segs[R_CS].selector, pVM->rem.s.Env.eip)); 1085 1085 return rc; 1086 1086 } … … 1439 1439 if (!fGlobal && !(env->cr[4] & X86_CR4_PGE)) 1440 1440 fGlobal = true; 1441 Log(("remR3FlushTLB: CR0=% VGp CR3=%VGp CR4=%VGp%s\n", env->cr[0], env->cr[3], env->cr[4], fGlobal ? " global" : ""));1441 Log(("remR3FlushTLB: CR0=%RGr CR3=%RGr CR4=%RGr %s\n", env->cr[0], env->cr[3], env->cr[4], fGlobal ? " global" : "")); 1442 1442 1443 1443 /* … … 1563 1563 if(pVM->rem.s.uPendingException == uTrap && ++pVM->rem.s.cPendingExceptions > 512) 1564 1564 { 1565 LogRel(("VERR_REM_TOO_MANY_TRAPS -> uTrap=%x error=%x next_eip=%VGv eip=%VGv cr2=% 08x\n", uTrap, uErrorCode, pvNextEIP, env->eip, env->cr[2]));1565 LogRel(("VERR_REM_TOO_MANY_TRAPS -> uTrap=%x error=%x next_eip=%VGv eip=%VGv cr2=%VGv\n", uTrap, uErrorCode, pvNextEIP, env->eip, env->cr[2])); 1566 1566 remR3RaiseRC(env->pVM, VERR_REM_TOO_MANY_TRAPS); 1567 1567 return VERR_REM_TOO_MANY_TRAPS; … … 4618 4618 default: 4619 4619 if (uEAX < ELEMENTS(apsz)) 4620 Log(("REM: linux syscall %3d: %s (eip=% VGvebx=%08x ecx=%08x edx=%08x esi=%08x edi=%08x ebp=%08x)\n",4620 Log(("REM: linux syscall %3d: %s (eip=%08x ebx=%08x ecx=%08x edx=%08x esi=%08x edi=%08x ebp=%08x)\n", 4621 4621 uEAX, apsz[uEAX], CPUMGetGuestEIP(pVM), CPUMGetGuestEBX(pVM), CPUMGetGuestECX(pVM), 4622 4622 CPUMGetGuestEDX(pVM), CPUMGetGuestESI(pVM), CPUMGetGuestEDI(pVM), CPUMGetGuestEBP(pVM))); -
trunk/src/recompiler/cpu-exec.c
r11982 r13117 362 362 double or triple faults yet. */ 363 363 RAWEx_ProfileStart(env, STATS_IRQ_HANDLING); 364 Log(("do_interrupt %d %d % 08x\n", env->exception_index, env->exception_is_int, env->exception_next_eip));364 Log(("do_interrupt %d %d %VGv\n", env->exception_index, env->exception_is_int, env->exception_next_eip)); 365 365 do_interrupt(env->exception_index, 366 366 env->exception_is_int, … … 388 388 env->exception_index = EXCP_SINGLE_INSTR; 389 389 if (emulate_single_instr(env) == -1) 390 AssertMsgFailed(("REM: emulate_single_instr failed for EIP=% 08x!!\n", env->eip));390 AssertMsgFailed(("REM: emulate_single_instr failed for EIP=%VGv!!\n", env->eip)); 391 391 392 392 /* When we receive an external interrupt during execution of this single … … 507 507 if(env->eflags & VM_MASK) 508 508 { 509 Log(("EMV86: %04X:% 04X IF=%d TF=%d CPL=%d CR0=%08X\n", env->segs[R_CS].selector, env->eip, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3, env->cr[0]));509 Log(("EMV86: %04X:%VGv IF=%d TF=%d CPL=%d CR0=%RGr\n", env->segs[R_CS].selector, env->eip, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3, env->cr[0])); 510 510 } 511 511 else 512 512 { 513 Log(("EMR3: %VGv ESP=%VGv IF=%d TF=%d CPL=%d IOPL=%d CR0=% 08X\n", env->eip, ESP, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3, ((env->eflags >> IOPL_SHIFT) & 3), env->cr[0]));513 Log(("EMR3: %VGv ESP=%VGv IF=%d TF=%d CPL=%d IOPL=%d CR0=%RGr\n", env->eip, ESP, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3, ((env->eflags >> IOPL_SHIFT) & 3), env->cr[0])); 514 514 } 515 515 } … … 518 518 { 519 519 /* Seriously slows down realmode booting. */ 520 LogFlow(("EMRM: %04X:% RGr SS:ESP=%04X:%RGrIF=%d TF=%d CPL=%d PE=%d PG=%d\n", env->segs[R_CS].selector, env->eip, env->segs[R_SS].selector, ESP, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3, env->cr[0] & X86_CR0_PE, env->cr[0] & X86_CR0_PG));520 LogFlow(("EMRM: %04X:%VGv SS:ESP=%04X:%VGv IF=%d TF=%d CPL=%d PE=%d PG=%d\n", env->segs[R_CS].selector, env->eip, env->segs[R_SS].selector, ESP, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3, env->cr[0] & X86_CR0_PE, env->cr[0] & X86_CR0_PG)); 521 521 } 522 522 #endif /* !DEBUG_bird */ … … 542 542 if(emulate_single_instr(env) == -1) 543 543 { 544 Log(("emulate_single_instr failed for EIP=% 08X!!\n", env->eip));544 Log(("emulate_single_instr failed for EIP=%VGv!!\n", env->eip)); 545 545 } 546 546 } … … 802 802 env->exception_index = EXCP_SINGLE_INSTR; 803 803 if (emulate_single_instr(env) == -1) 804 AssertMsgFailed(("REM: emulate_single_instr failed for EIP=% 08x!!\n", env->eip));804 AssertMsgFailed(("REM: emulate_single_instr failed for EIP=%VGv!!\n", env->eip)); 805 805 806 806 /* When we receive an external interrupt during execution of this single … … 1201 1201 if(!(env->state & CPU_EMULATE_SINGLE_STEP)) 1202 1202 { 1203 Log(("EMR0: % 08XIF=%d TF=%d CPL=%d\n", env->eip, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3));1203 Log(("EMR0: %VGv IF=%d TF=%d CPL=%d\n", env->eip, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3)); 1204 1204 } 1205 1205 } … … 1211 1211 if(env->eflags & VM_MASK) 1212 1212 { 1213 Log(("EMV86: % 08X IF=%d TF=%d CPL=%d flags=%08X CR0=%08X\n", env->eip, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3, flags, env->cr[0]));1213 Log(("EMV86: %VGv IF=%d TF=%d CPL=%d flags=%08X CR0=%RGr\n", env->eip, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3, flags, env->cr[0])); 1214 1214 } 1215 1215 else 1216 1216 { 1217 Log(("EMR3: % 08X IF=%d TF=%d CPL=%d IOPL=%d flags=%08X CR0=%08X\n", env->eip, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3, ((env->eflags >> IOPL_SHIFT) & 3), flags, env->cr[0]));1217 Log(("EMR3: %VGv IF=%d TF=%d CPL=%d IOPL=%d flags=%08X CR0=%RGr\n", env->eip, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3, ((env->eflags >> IOPL_SHIFT) & 3), flags, env->cr[0])); 1218 1218 } 1219 1219 } … … 1240 1240 if(emulate_single_instr(env) == -1) 1241 1241 { 1242 printf("emulate_single_instr failed for EIP=% 08X!!\n", env->eip);1242 printf("emulate_single_instr failed for EIP=%VGv!!\n", env->eip); 1243 1243 } 1244 1244 } … … 1422 1422 if (ret == 1) { 1423 1423 #if 0 1424 printf("PF exception: EIP=0x% 08x CR2=0x%08xerror=0x%x\n",1424 printf("PF exception: EIP=0x%VGv CR2=0x%VGv error=0x%x\n", 1425 1425 env->eip, env->cr[2], env->error_code); 1426 1426 #endif -
trunk/src/recompiler/target-i386/helper.c
r13022 r13117 1389 1389 { 1390 1390 #if defined(VBOX) && defined(DEBUG) 1391 NOT_DMIK(Log2(("raise_interrupt: %x %x %x % 08x\n", intno, is_int, error_code, env->eip + next_eip_addend)));1391 NOT_DMIK(Log2(("raise_interrupt: %x %x %x %VGv\n", intno, is_int, error_code, env->eip + next_eip_addend))); 1392 1392 #endif 1393 1393 env->exception_index = intno;
Note:
See TracChangeset
for help on using the changeset viewer.