mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
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>
This commit is contained in:
parent
ad6011775a
commit
c92458538f
4 changed files with 8 additions and 5 deletions
|
@ -277,7 +277,6 @@ struct CPUAlphaState {
|
|||
#endif
|
||||
|
||||
/* This alarm doesn't exist in real hardware; we wish it did. */
|
||||
struct QEMUTimer *alarm_timer;
|
||||
uint64_t alarm_expire;
|
||||
|
||||
/* Those resources are used only in QEMU core */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue