mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -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
|
@ -53,16 +53,21 @@ hwaddr lm32_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
|
|||
|
||||
void lm32_breakpoint_insert(CPULM32State *env, int idx, target_ulong address)
|
||||
{
|
||||
cpu_breakpoint_insert(env, address, BP_CPU, &env->cpu_breakpoint[idx]);
|
||||
LM32CPU *cpu = lm32_env_get_cpu(env);
|
||||
|
||||
cpu_breakpoint_insert(CPU(cpu), address, BP_CPU,
|
||||
&env->cpu_breakpoint[idx]);
|
||||
}
|
||||
|
||||
void lm32_breakpoint_remove(CPULM32State *env, int idx)
|
||||
{
|
||||
LM32CPU *cpu = lm32_env_get_cpu(env);
|
||||
|
||||
if (!env->cpu_breakpoint[idx]) {
|
||||
return;
|
||||
}
|
||||
|
||||
cpu_breakpoint_remove_by_ref(env, env->cpu_breakpoint[idx]);
|
||||
cpu_breakpoint_remove_by_ref(CPU(cpu), env->cpu_breakpoint[idx]);
|
||||
env->cpu_breakpoint[idx] = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue