Changeset 47328 in vbox for trunk/src/recompiler
- Timestamp:
- Jul 22, 2013 10:50:49 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/target-i386/op_helper.c
r47324 r47328 3660 3660 } else if (reg == 7) { 3661 3661 # else 3662 } else if (reg == 7 || reg == 5) { 3662 } else if (reg == 7 || reg == 5) { /* (DR5 is an alias for DR7.) */ 3663 if (t0 & X86_DR7_MBZ_MASK) 3664 raise_exception_err(EXCP0D_GPF, 0); 3665 t0 |= X86_DR7_RA1_MASK; 3666 t0 &= ~X86_DR7_RAZ_MASK; 3663 3667 # endif 3664 3668 for (i = 0; i < 4; i++) … … 3667 3671 for (i = 0; i < 4; i++) 3668 3672 hw_breakpoint_insert(env, i); 3669 } else 3673 } else { 3670 3674 # ifndef VBOX 3671 3675 env->dr[reg] = t0; 3672 3676 # else 3673 env->dr[6] = (t0 & ~RT_BIT_32(12)) | UINT32_C(0xffff0ff0); /* 4 is an alias for 6. */ 3677 if (t0 & X86_DR6_MBZ_MASK) 3678 raise_exception_err(EXCP0D_GPF, 0); 3679 t0 |= X86_DR6_RA1_MASK; 3680 t0 &= ~X86_DR6_RAZ_MASK; 3681 env->dr[6] = t0; /* (DR4 is an alias for DR6.) */ 3674 3682 # endif 3683 } 3675 3684 } 3676 3685 #endif
Note:
See TracChangeset
for help on using the changeset viewer.