From: Robert Reif <reif@earthlink.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] hw/slavio_serial.c read time constant fix
Date: Fri, 11 Apr 2008 08:43:20 -0400 [thread overview]
Message-ID: <47FF5CE8.6070001@earthlink.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
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.
[-- Attachment #2: slavio_serial.c.diff.txt --]
[-- Type: text/plain, Size: 580 bytes --]
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:
reply other threads:[~2008-04-11 12:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=47FF5CE8.6070001@earthlink.net \
--to=reif@earthlink.net \
--cc=qemu-devel@nongnu.org \
/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.