mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
Log reset events (Jan Kiszka)
Original idea&code by Kevin Wolf, split-up in two patches and added more archs. This patch introduces a flag to log CPU resets. Useful for tracing unexpected resets (such as those triggered by x86 triple faults). Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6452 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
2f5f899631
commit
eca1bdf415
10 changed files with 45 additions and 2 deletions
|
@ -159,6 +159,12 @@ static void cpu_reset_model_id(CPUARMState *env, uint32_t id)
|
|||
void cpu_reset(CPUARMState *env)
|
||||
{
|
||||
uint32_t id;
|
||||
|
||||
if (qemu_loglevel_mask(CPU_LOG_RESET)) {
|
||||
qemu_log("CPU Reset (CPU %d)\n", env->cpu_index);
|
||||
log_cpu_state(env, 0);
|
||||
}
|
||||
|
||||
id = env->cp15.c0_cpuid;
|
||||
memset(env, 0, offsetof(CPUARMState, breakpoints));
|
||||
if (id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue