Changeset 13562 in vbox
- Timestamp:
- Oct 24, 2008 4:29:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstInstrEmul.cpp
r13561 r13562 55 55 return -1; 56 56 } 57 val = UINT64_C(0x123456789); 57 58 eflags = EMEmulateLockCmpXchg8b(&val, &eax, &edx, ebx, ecx); 58 if (eflags & X86_EFL_ZF) 59 if ( (eflags & X86_EFL_ZF) 60 || eax != 0x23456789 61 || edx != 0x1) 59 62 { 60 63 printf("Lock cmpxchg8b failed the non-equal case! (val=%x%x)\n", val); … … 75 78 return -1; 76 79 } 80 val = UINT64_C(0x123456789); 77 81 eflags = EMEmulateCmpXchg8b(&val, &eax, &edx, ebx, ecx); 78 if (eflags & X86_EFL_ZF) 82 if ( (eflags & X86_EFL_ZF) 83 || eax != 0x23456789 84 || edx != 0x1) 79 85 { 80 86 printf("Cmpxchg8b failed the non-equal case! (val=%x%x)\n", val);
Note:
See TracChangeset
for help on using the changeset viewer.