Changeset 41658 in vbox for trunk/src/recompiler
- Timestamp:
- Jun 11, 2012 10:21:44 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78464
- Location:
- trunk/src/recompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/VBoxREMWrapper.cpp
r40907 r41658 654 654 static const REMPARMDESC g_aArgsDISInstr[] = 655 655 { 656 { REMPARMDESC_FLAGS_INT, sizeof(PVM), NULL },657 656 { REMPARMDESC_FLAGS_INT, sizeof(RTUINTPTR), NULL }, 658 { REMPARMDESC_FLAGS_INT, sizeof(uint32_t), NULL }, 657 { REMPARMDESC_FLAGS_INT, sizeof(DISCPUMODE), NULL }, 658 { REMPARMDESC_FLAGS_INT, sizeof(PDISCPUSTATE), NULL }, 659 659 { REMPARMDESC_FLAGS_INT, sizeof(uint32_t *), NULL }, 660 660 { REMPARMDESC_FLAGS_INT, sizeof(char *), NULL } -
trunk/src/recompiler/VBoxRecompiler.c
r41436 r41658 4071 4071 char szOutput[256]; 4072 4072 DISCPUSTATE Cpu; 4073 4074 memset(&Cpu, 0, sizeof(Cpu));4075 4073 #ifdef RT_ARCH_X86 4076 Cpu.mode = CPUMODE_32BIT;4074 DISCPUMODE enmCpuMode = CPUMODE_32BIT; 4077 4075 #else 4078 Cpu.mode = CPUMODE_64BIT;4076 DISCPUMODE enmCpuMode = CPUMODE_64BIT; 4079 4077 #endif 4080 4078 … … 4083 4081 { 4084 4082 uint32_t cbInstr; 4085 if (RT_SUCCESS(DISInstr(&Cpu, (uintptr_t)pvCode + off, 0, &cbInstr, szOutput))) 4083 int rc = DISInstr((uintptr_t)pvCode + off, enmCpuMode, &Cpu, &cbInstr, szOutput); 4084 if (RT_SUCCESS(rc)) 4086 4085 RTLogPrintf("%s", szOutput); 4087 4086 else 4088 4087 { 4089 RTLogPrintf("disas error \n");4088 RTLogPrintf("disas error %Rrc\n", rc); 4090 4089 cbInstr = 1; 4091 #ifdef RT_ARCH_AMD64 /** @todo remove when DISInstr starts supporting 64-bit code. */4092 break;4093 #endif4094 4090 } 4095 4091 off += cbInstr;
Note:
See TracChangeset
for help on using the changeset viewer.