Commit 61a2ad53 authored by bellard's avatar bellard
Browse files

refresh clock dummy emulation (netbsd boot fix)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@341 c046a42c-6fe2-441c-8c8c-71466251a162
parent 2c1794c4
...@@ -858,6 +858,7 @@ typedef struct PITChannelState { ...@@ -858,6 +858,7 @@ typedef struct PITChannelState {
PITChannelState pit_channels[3]; PITChannelState pit_channels[3];
int speaker_data_on; int speaker_data_on;
int dummy_refresh_clock;
int pit_min_timer_count = 0; int pit_min_timer_count = 0;
int64_t ticks_per_sec; 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)
{ {
int out; int out;
out = pit_get_out(&pit_channels[2]); 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) void pit_init(void)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment