diff options
author | Hervé Poussineau | 2011-07-02 17:23:00 +0200 |
---|---|---|
committer | Blue Swirl | 2011-07-02 20:50:19 +0200 |
commit | 75ef849696830fc2ddeff8bb90eea5887ff50df6 (patch) | |
tree | 7c4f7291ecf4631a2301370a3e61b28a6fc64fac /hw/esp.c | |
parent | TCG/PPC: use stack for TCG temps (diff) | |
download | qemu-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |