]> git.proxmox.com Git - qemu.git/commit
target-alpha: Avoid leaking the alarm timer over reset
authorAndreas Färber <afaerber@suse.de>
Wed, 31 Oct 2012 01:41:11 +0000 (02:41 +0100)
committerAndreas Färber <afaerber@suse.de>
Wed, 19 Dec 2012 00:01:36 +0000 (01:01 +0100)
commitc92458538f501eda585b4b774c50644aed391a8a
treef808d560f27889dbb807be4598056f55425ad18d
parentad6011775a324d7c3e2a8bd824e03c5e576dda48
target-alpha: Avoid leaking the alarm timer over reset

Move the timer from CPUAlphaState to AlphaCPU to avoid the pointer being
zero'ed once we implement reset. Would cause a segfault in
sys_helper.c:helper_set_alarm().

This also simplifies timer initialization in Typhoon.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: Richard Henderson <rth@twiddle.net>
hw/alpha_typhoon.c
target-alpha/cpu-qom.h
target-alpha/cpu.h
target-alpha/sys_helper.c