All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: qemu-devel@nongnu.org, Blue Swirl <blauwirbel@gmail.com>
Cc: Uri Lublin <ulublin@redhat.com>
Subject: Re: [Qemu-devel] [6136] Register reset handlers
Date: Mon, 05 Jan 2009 17:28:50 +0200	[thread overview]
Message-ID: <49622732.4090908@redhat.com> (raw)
In-Reply-To: <E1LH0M2-0000IN-JG@cvs.savannah.gnu.org>

Blue Swirl wrote:
> Revision: 6136
>           http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6136
> Author:   blueswir1
> Date:     2008-12-28 18:27:10 +0000 (Sun, 28 Dec 2008)
>
> Log Message:
> -----------
> Register reset handlers
>
>
> Modified: trunk/hw/vga.c
> ===================================================================
> --- trunk/hw/vga.c	2008-12-28 15:45:20 UTC (rev 6135)
> +++ trunk/hw/vga.c	2008-12-28 18:27:10 UTC (rev 6136)
> @@ -1826,10 +1826,73 @@
>      s->last_height = -1;
>  }
>  
> -static void vga_reset(VGAState *s)
> +static void vga_reset(void *opaque)
>  {
> -    memset(s, 0, sizeof(VGAState));
> +    memset(s->sr, '\0', sizeof(s->sr));
> +    s->gr_index = 0;
> +    memset(s->gr, '\0', sizeof(s->gr));
> +    s->ar_index = 0;
> +    memset(s->ar, '\0', sizeof(s->ar));
> +    s->ar_flip_flop = 0;
> +    s->cr_index = 0;
> +    memset(s->cr, '\0', sizeof(s->cr));
>   

...

>      }
> +    qemu_register_reset(vga_reset, s);
> +    vga_reset(s);
>  }
>  
>   

This breaks cirrus - the reset handler tramples over some cirrus 
registers, and after reset graphic comes up in 640x480 resolution.  I'll 
follow up with a patch.

-- 
error compiling committee.c: too many arguments to function

      reply	other threads:[~2009-01-05 15:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-28 18:27 [Qemu-devel] [6136] Register reset handlers Blue Swirl
2009-01-05 15:28 ` Avi Kivity [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49622732.4090908@redhat.com \
    --to=avi@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=ulublin@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.