Home
last modified time | relevance | path

Searched refs:new_dr7 (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/target/i386/tcg/sysemu/
H A Dbpt_helper.c124 void cpu_x86_update_dr7(CPUX86State *env, uint32_t new_dr7) in cpu_x86_update_dr7() argument
130 new_dr7 |= DR7_FIXED_1; in cpu_x86_update_dr7()
134 if (((old_dr7 ^ new_dr7) & ~0xff) == 0) { in cpu_x86_update_dr7()
138 int mod = ((old_dr7 | old_dr7 * 2) ^ (new_dr7 | new_dr7 * 2)) & 0xff; in cpu_x86_update_dr7()
141 if ((mod & (2 << i * 2)) && !hw_breakpoint_enabled(new_dr7, i)) { in cpu_x86_update_dr7()
145 env->dr[7] = new_dr7; in cpu_x86_update_dr7()
147 if (mod & (2 << i * 2) && hw_breakpoint_enabled(new_dr7, i)) { in cpu_x86_update_dr7()
149 } else if (hw_breakpoint_type(new_dr7, i) == DR7_TYPE_IO_RW in cpu_x86_update_dr7()
150 && hw_breakpoint_enabled(new_dr7, i)) { in cpu_x86_update_dr7()
158 env->dr[7] = new_dr7; in cpu_x86_update_dr7()
H A Dsvm_helper.c167 uint64_t new_dr7; in helper_vmrun() local
374 new_dr7 = x86_ldq_phys(cs, env->vm_vmcb + offsetof(struct vmcb, save.dr7)); in helper_vmrun()
378 if (new_dr7 & DR_RESERVED_MASK) { in helper_vmrun()
386 cpu_x86_update_dr7(env, new_dr7); in helper_vmrun()
/openbmc/qemu/target/i386/
H A Dcpu.h2470 void cpu_x86_update_dr7(CPUX86State *env, uint32_t new_dr7);