X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fcga.c;h=d99275eeedf5369eb5c0d94ab69603598147dadb;hb=e784113618800cede961f9a86084a96d20179e1c;hp=3fe374337ad423b63bd0e05660fca17b7b8887a2;hpb=c30d1b88a60c3a8df426ce81553675bbe4afef52;p=palacios.releases.git diff --git a/palacios/src/devices/cga.c b/palacios/src/devices/cga.c index 3fe3743..d99275e 100644 --- a/palacios/src/devices/cga.c +++ b/palacios/src/devices/cga.c @@ -612,8 +612,10 @@ static int inp_status1_read(struct guest_info * core, uint16_t port, void * dest /* next write to attrc selects the index rather than data */ video_state->attrc_index_flipflop = 0; + memset(dest, 0x0, length); - return notimpl_port_read(priv_data, __FUNCTION__, port, dest, length); + handle_port_read(priv_data, __FUNCTION__, port, dest, length, 1); + return length; } static int feat_ctrl_read(struct guest_info * core, uint16_t port, void * dest, uint_t length, void * priv_data) {