Changeset 41658 in vbox for trunk/src/recompiler/VBoxRecompiler.c
- Timestamp:
- Jun 11, 2012 10:21:44 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78464
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.