]> git.proxmox.com Git - qemu.git/blobdiff - hw/lsi53c895a.c
lsi53c895a: Add support for LSI53C700 Family Compatibility bit
[qemu.git] / hw / lsi53c895a.c
index f0e8be9303e1707f0e60a5253e82e56e05e8d79b..0c5e50ab3e743c6854880977f4750d9ac69ff717 100644 (file)
@@ -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;