mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-04 07:52:00 -06:00
target-i386: drop usage of prev_debug_excp_handler
Chains of exception handlers are currently unused feature, drop it for now so as not to expose prev_debug_excp_handler at global scope when moving tcg initialization into target-i386/cpu.c Later we probably could re-invent better interface for this. Signed-off-by: Igor Mammedov <imammedo@redhat.com>
This commit is contained in:
parent
cfee021849
commit
130a038550
1 changed files with 1 additions and 6 deletions
|
@ -941,8 +941,6 @@ int check_hw_breakpoints(CPUX86State *env, int force_dr6_update)
|
||||||
return hit_enabled;
|
return hit_enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
static CPUDebugExcpHandler *prev_debug_excp_handler;
|
|
||||||
|
|
||||||
static void breakpoint_handler(CPUX86State *env)
|
static void breakpoint_handler(CPUX86State *env)
|
||||||
{
|
{
|
||||||
CPUBreakpoint *bp;
|
CPUBreakpoint *bp;
|
||||||
|
@ -965,8 +963,6 @@ static void breakpoint_handler(CPUX86State *env)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (prev_debug_excp_handler)
|
|
||||||
prev_debug_excp_handler(env);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct MCEInjectionParams {
|
typedef struct MCEInjectionParams {
|
||||||
|
@ -1166,7 +1162,6 @@ X86CPU *cpu_x86_init(const char *cpu_model)
|
||||||
inited = 1;
|
inited = 1;
|
||||||
optimize_flags_init();
|
optimize_flags_init();
|
||||||
#ifndef CONFIG_USER_ONLY
|
#ifndef CONFIG_USER_ONLY
|
||||||
prev_debug_excp_handler =
|
|
||||||
cpu_set_debug_excp_handler(breakpoint_handler);
|
cpu_set_debug_excp_handler(breakpoint_handler);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue