diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-07-27 22:19:00 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-07-27 22:19:00 +0000 |
commit | 61a2ad53cb6337eb2c535984f65f1cb531ccc452 (patch) | |
tree | 928d15554a9a1979a821f3fc2b217efe7dd06798 /vl.c | |
parent | 2c1794c42ef9d23dc6aeb5e07673f2fcd885b9eb (diff) |
refresh clock dummy emulation (netbsd boot fix)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@341 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -858,6 +858,7 @@ typedef struct PITChannelState { PITChannelState pit_channels[3]; int speaker_data_on; +int dummy_refresh_clock; int pit_min_timer_count = 0; int64_t ticks_per_sec; @@ -1115,7 +1116,9 @@ uint32_t speaker_ioport_read(CPUX86State *env, uint32_t addr) { int out; out = pit_get_out(&pit_channels[2]); - return (speaker_data_on << 1) | pit_channels[2].gate | (out << 5); + dummy_refresh_clock ^= 1; + return (speaker_data_on << 1) | pit_channels[2].gate | (out << 5) | + (dummy_refresh_clock << 4); } void pit_init(void) |