summaryrefslogtreecommitdiffstats
path: root/hw/esp.c
diff options
context:
space:
mode:
authorHervé Poussineau2011-07-02 17:23:00 +0200
committerBlue Swirl2011-07-02 20:50:19 +0200
commit75ef849696830fc2ddeff8bb90eea5887ff50df6 (patch)
tree7c4f7291ecf4631a2301370a3e61b28a6fc64fac /hw/esp.c
parentTCG/PPC: use stack for TCG temps (diff)
downloadqemu-75ef849696830fc2ddeff8bb90eea5887ff50df6.tar.gz
qemu-75ef849696830fc2ddeff8bb90eea5887ff50df6.tar.xz
qemu-75ef849696830fc2ddeff8bb90eea5887ff50df6.zip
esp: correctly fill bus id with requested lun
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 <hpoussin@reactos.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/esp.c')
-rw-r--r--hw/esp.c2
1 files changed, 1 insertions, 1 deletions
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);