Attempt to fix HPET reset in legacy mode (issue #218).
This commit is contained in:
parent
540c7bbf64
commit
7e7c7c45ef
@ -9,7 +9,7 @@
|
||||
//
|
||||
// Authors: Beth Kon <bkon@us.ibm.com>
|
||||
//
|
||||
// Copyright (C) 2017-2021 The Bochs Project
|
||||
// Copyright (C) 2017-2024 The Bochs Project
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
@ -229,6 +229,8 @@ void bx_hpet_c::reset(unsigned type)
|
||||
s.hpet_reference_value = BX_CONST64(0);
|
||||
s.hpet_reference_time = BX_CONST64(0);
|
||||
s.config = BX_CONST64(0);
|
||||
DEV_pit_enable_irq(1);
|
||||
DEV_cmos_enable_irq(1);
|
||||
}
|
||||
|
||||
void bx_hpet_c::register_state(void)
|
||||
|
Loading…
Reference in New Issue
Block a user