aboutsummaryrefslogtreecommitdiff
path: root/hw/lsi53c895a.c
diff options
context:
space:
mode:
authorLaszlo Ast <laszlo.ast@siemens-enterprise.com>2009-11-19 11:07:12 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 09:41:40 -0600
commitcc9f28bc2a95eb96959c39ce498800bbd95cc77b (patch)
tree8e2fd5dcbbae2aeee29bccf9e6900032e1f4197e /hw/lsi53c895a.c
parenta15fdf861976d0c4a7358e4ddd729116bcd34348 (diff)
downloadqemu-cc9f28bc2a95eb96959c39ce498800bbd95cc77b.zip
qemu-cc9f28bc2a95eb96959c39ce498800bbd95cc77b.tar.gz
qemu-cc9f28bc2a95eb96959c39ce498800bbd95cc77b.tar.bz2
lsi53c895a: Add support for LSI53C700 Family Compatibility bit
Signed-off-by: Laszlo Ast <laszlo.ast@siemens-enterprise.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/lsi53c895a.c')
-rw-r--r--hw/lsi53c895a.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index f0e8be9..0c5e50a 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -585,6 +585,10 @@ static void lsi_reselect(LSIState *s, uint32_t tag)
}
id = (tag >> 8) & 0xf;
s->ssid = id | 0x80;
+ /* LSI53C700 Family Compatibility, see LSI53C895A 4-73 */
+ if (!s->dcntl & LSI_DCNTL_COM) {
+ s->sfbr = 1 << (id & 0x7);
+ }
DPRINTF("Reselected target %d\n", id);
s->current_dev = s->bus.devs[id];
s->current_tag = tag;