mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
exec: Change cpu_breakpoint_{insert,remove{,_by_ref,_all}} argument
Use CPUState. Allows to clean up CPUArchState in gdbstub. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
75a34036d4
commit
b3310ab338
9 changed files with 43 additions and 46 deletions
|
@ -999,7 +999,7 @@ void hw_breakpoint_insert(CPUX86State *env, int index)
|
|||
switch (hw_breakpoint_type(env->dr[7], index)) {
|
||||
case DR7_TYPE_BP_INST:
|
||||
if (hw_breakpoint_enabled(env->dr[7], index)) {
|
||||
err = cpu_breakpoint_insert(env, env->dr[index], BP_CPU,
|
||||
err = cpu_breakpoint_insert(cs, env->dr[index], BP_CPU,
|
||||
&env->cpu_breakpoint[index]);
|
||||
}
|
||||
break;
|
||||
|
@ -1036,7 +1036,7 @@ void hw_breakpoint_remove(CPUX86State *env, int index)
|
|||
switch (hw_breakpoint_type(env->dr[7], index)) {
|
||||
case DR7_TYPE_BP_INST:
|
||||
if (hw_breakpoint_enabled(env->dr[7], index)) {
|
||||
cpu_breakpoint_remove_by_ref(env, env->cpu_breakpoint[index]);
|
||||
cpu_breakpoint_remove_by_ref(cs, env->cpu_breakpoint[index]);
|
||||
}
|
||||
break;
|
||||
case DR7_TYPE_DATA_WR:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue