From: Jack Lange Date: Thu, 5 Jan 2012 22:50:38 +0000 (-0500) Subject: fix CGA status byte bug X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=23d960abbf316e9b33c99bfb51c6159b1eeeff07;p=palacios.git fix CGA status byte bug --- 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) {