Commit 61a2ad53cb6337eb2c535984f65f1cb531ccc452
1 parent
2c1794c4
refresh clock dummy emulation (netbsd boot fix)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@341 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
1 deletions
vl.c
@@ -858,6 +858,7 @@ typedef struct PITChannelState { | @@ -858,6 +858,7 @@ typedef struct PITChannelState { | ||
858 | 858 | ||
859 | PITChannelState pit_channels[3]; | 859 | PITChannelState pit_channels[3]; |
860 | int speaker_data_on; | 860 | int speaker_data_on; |
861 | +int dummy_refresh_clock; | ||
861 | int pit_min_timer_count = 0; | 862 | int pit_min_timer_count = 0; |
862 | 863 | ||
863 | int64_t ticks_per_sec; | 864 | int64_t ticks_per_sec; |
@@ -1115,7 +1116,9 @@ uint32_t speaker_ioport_read(CPUX86State *env, uint32_t addr) | @@ -1115,7 +1116,9 @@ uint32_t speaker_ioport_read(CPUX86State *env, uint32_t addr) | ||
1115 | { | 1116 | { |
1116 | int out; | 1117 | int out; |
1117 | out = pit_get_out(&pit_channels[2]); | 1118 | out = pit_get_out(&pit_channels[2]); |
1118 | - return (speaker_data_on << 1) | pit_channels[2].gate | (out << 5); | 1119 | + dummy_refresh_clock ^= 1; |
1120 | + return (speaker_data_on << 1) | pit_channels[2].gate | (out << 5) | | ||
1121 | + (dummy_refresh_clock << 4); | ||
1119 | } | 1122 | } |
1120 | 1123 | ||
1121 | void pit_init(void) | 1124 | void pit_init(void) |