From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcOnZ-0006iI-Rv for qemu-devel@nongnu.org; Thu, 30 Jun 2011 17:29:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcOnQ-0000ly-Gb for qemu-devel@nongnu.org; Thu, 30 Jun 2011 17:29:20 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]:44351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcOnP-0000lX-Si for qemu-devel@nongnu.org; Thu, 30 Jun 2011 17:29:12 -0400 Received: by pvg3 with SMTP id 3so2434757pvg.4 for ; Thu, 30 Jun 2011 14:29:10 -0700 (PDT) MIME-Version: 1.0 Sender: anthony.perard@gmail.com In-Reply-To: References: <1309462094-12348-1-git-send-email-anthony.perard@citrix.com> From: Anthony PERARD Date: Thu, 30 Jun 2011 22:28:40 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH V2] e1000: Handle IO Port. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU-devel On Thu, Jun 30, 2011 at 22:09, Peter Maydell wro= te: > On 30 June 2011 20:28, Anthony PERARD wrote: >> @@ -202,6 +201,11 @@ rxbufsize(uint32_t v) >> =C2=A0static void >> =C2=A0set_ctrl(E1000State *s, int index, uint32_t val) >> =C2=A0{ >> + =C2=A0 =C2=A0DBGOUT(IO, "set ctrl =3D %08x\n", val); >> + =C2=A0 =C2=A0if (val & E1000_CTRL_RST) { >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0s->mac_reg[CTRL] =3D val; >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0e1000_reset(s); >> + =C2=A0 =C2=A0} >> =C2=A0 =C2=A0 /* RST is self clearing */ >> =C2=A0 =C2=A0 s->mac_reg[CTRL] =3D val & ~E1000_CTRL_RST; >> =C2=A0} > > This is still not right -- you want something like: :(, sorry, I'll resend the patch with that. > =C2=A0 =C2=A0if (val & E1000_CTRL_RST) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0e1000_reset(s); > =C2=A0 =C2=A0 =C2=A0 =C2=A0return; > =C2=A0 =C2=A0} > =C2=A0 =C2=A0s->mac_reg[CTRL] =3D val; Thanks, --=20 Anthony PERARD