From e0706c9b7b1c6a1524f8da28325763b6fb7aa296 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herv=C3=A9=20Poussineau?= Date: Sat, 2 Jul 2011 17:23:00 +0200 Subject: [PATCH] esp: correctly fill bus id with requested lun MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This bug showed up after 1455084ea2c48abf23c4e4e15e378ee43457f381, and may be seen only on operating systems *not* using DMA to give commands to SCSI adapter. Signed-off-by: Hervé Poussineau Signed-off-by: Blue Swirl --- hw/esp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/esp.c b/hw/esp.c index 6d3f5d239b..8e95672f0e 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -211,7 +211,7 @@ static uint32_t get_cmd(ESPState *s, uint8_t *buf) } else { dmalen = s->ti_size; memcpy(buf, s->ti_buf, dmalen); - buf[0] = 0; + buf[0] = buf[2] >> 5; } DPRINTF("get_cmd: len %d target %d\n", dmalen, target); -- 2.34.1