From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JkIcE-0003Fz-9W for qemu-devel@nongnu.org; Fri, 11 Apr 2008 08:44:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JkIc9-00038q-C7 for qemu-devel@nongnu.org; Fri, 11 Apr 2008 08:44:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkIc9-00038V-0e for qemu-devel@nongnu.org; Fri, 11 Apr 2008 08:44:21 -0400 Received: from pop-scotia.atl.sa.earthlink.net ([207.69.195.65]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JkIc8-0006w8-55 for qemu-devel@nongnu.org; Fri, 11 Apr 2008 08:44:20 -0400 Received: from user-142h2k8.cable.mindspring.com ([72.40.138.136] helo=[192.168.0.90]) by pop-scotia.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1JkIc7-0001C2-00 for qemu-devel@nongnu.org; Fri, 11 Apr 2008 08:44:19 -0400 Message-ID: <47FF5CE8.6070001@earthlink.net> Date: Fri, 11 Apr 2008 08:43:20 -0400 From: Robert Reif MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030107050405090203050509" Subject: [Qemu-devel] [PATCH] hw/slavio_serial.c read time constant fix Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------030107050405090203050509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The ss-600mp openboot prom does a self test on the time constant registers by writing and reading them and comparing the values. This patch makes the time constant registers return what was written. --------------030107050405090203050509 Content-Type: text/plain; name="slavio_serial.c.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="slavio_serial.c.diff.txt" Index: hw/slavio_serial.c =================================================================== --- hw/slavio_serial.c (revision 4186) +++ hw/slavio_serial.c (working copy) @@ -514,9 +514,13 @@ break; case W_TXCTRL1: case W_TXCTRL2: + s->wregs[s->reg] = val; + slavio_serial_update_parameters(s); + break; case W_BRGLO: case W_BRGHI: s->wregs[s->reg] = val; + s->rregs[s->reg] = val; slavio_serial_update_parameters(s); break; case W_MINTR: --------------030107050405090203050509--