mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 12:38:16 +00:00
target/i386/bpt_helper: Perform comparison pass with qemu
Keep formatting and code in sync where applicable
This commit is contained in:
parent
fc7eaf7f77
commit
e9d9ed5eaa
1 changed files with 6 additions and 6 deletions
|
@ -138,16 +138,16 @@ void cpu_x86_update_dr7(CPUX86State *env, uint32_t new_dr7)
|
|||
|
||||
for (i = 0; i < DR7_MAX_BP; i++) {
|
||||
if ((mod & (2 << i * 2)) && !hw_breakpoint_enabled(new_dr7, i)) {
|
||||
iobpt |= hw_breakpoint_insert(env, i);
|
||||
} else if (hw_breakpoint_type(new_dr7, i) == DR7_TYPE_IO_RW
|
||||
&& hw_breakpoint_enabled(new_dr7, i)) {
|
||||
iobpt |= HF_IOBPT_MASK;
|
||||
hw_breakpoint_remove(env, i);
|
||||
}
|
||||
}
|
||||
env->dr[7] = new_dr7;
|
||||
for (i = 0; i < DR7_MAX_BP; i++) {
|
||||
if (mod & (2 << i * 2) && hw_breakpoint_enabled(new_dr7, i)) {
|
||||
hw_breakpoint_insert(env, i);
|
||||
iobpt |= hw_breakpoint_insert(env, i);
|
||||
} else if (hw_breakpoint_type(new_dr7, i) == DR7_TYPE_IO_RW
|
||||
&& hw_breakpoint_enabled(new_dr7, i)) {
|
||||
iobpt |= HF_IOBPT_MASK;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -270,7 +270,7 @@ void helper_set_dr(CPUX86State *env, int reg, target_ulong t0)
|
|||
}
|
||||
/* fallthru */
|
||||
case 6:
|
||||
env->dr[6] = t0;
|
||||
env->dr[6] = t0 | DR6_FIXED_1;
|
||||
return;
|
||||
case 5:
|
||||
if (env->cr[4] & CR4_DE_MASK) {
|
||||
|
|
Loading…
Reference in a new issue