Changeset 13839 in vbox for trunk/src/recompiler/cpu-exec.c
- Timestamp:
- Nov 5, 2008 3:27:47 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/cpu-exec.c
r13117 r13839 362 362 double or triple faults yet. */ 363 363 RAWEx_ProfileStart(env, STATS_IRQ_HANDLING); 364 Log(("do_interrupt %d %d % VGv\n", env->exception_index, env->exception_is_int, env->exception_next_eip));364 Log(("do_interrupt %d %d %RGv\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=% VGv!!\n", env->eip));390 AssertMsgFailed(("REM: emulate_single_instr failed for EIP=%RGv!!\n", env->eip)); 391 391 392 392 /* When we receive an external interrupt during execution of this single … … 497 497 if(!(env->state & CPU_EMULATE_SINGLE_STEP)) 498 498 { 499 Log(("EMR0: % VGv ESP=%VGv IF=%d TF=%d CPL=%d\n", env->eip, ESP, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3));499 Log(("EMR0: %RGv ESP=%RGv IF=%d TF=%d CPL=%d\n", env->eip, ESP, (env->eflags & IF_MASK) ? 1 : 0, (env->eflags & TF_MASK) ? 1 : 0, (env->hflags >> HF_CPL_SHIFT) & 3)); 500 500 } 501 501 } … … 507 507 if(env->eflags & VM_MASK) 508 508 { 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]));509 Log(("EMV86: %04X:%RGv 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=%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]));513 Log(("EMR3: %RGv ESP=%RGv 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:% 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));520 LogFlow(("EMRM: %04X:%RGv SS:ESP=%04X:%RGv 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=% VGv!!\n", env->eip));544 Log(("emulate_single_instr failed for EIP=%RGv!!\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=% VGv!!\n", env->eip));804 AssertMsgFailed(("REM: emulate_single_instr failed for EIP=%RGv!!\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: % 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));1203 Log(("EMR0: %RGv 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: % 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]));1213 Log(("EMV86: %RGv 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: % 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]));1217 Log(("EMR3: %RGv 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=% VGv!!\n", env->eip);1242 printf("emulate_single_instr failed for EIP=%RGv!!\n", env->eip); 1243 1243 } 1244 1244 } … … 1422 1422 if (ret == 1) { 1423 1423 #if 0 1424 printf("PF exception: EIP=0x% VGv CR2=0x%VGv error=0x%x\n",1424 printf("PF exception: EIP=0x%RGv CR2=0x%RGv error=0x%x\n", 1425 1425 env->eip, env->cr[2], env->error_code); 1426 1426 #endif
Note:
See TracChangeset
for help on using the changeset viewer.