diff options
author | Artyom Tarasenko <atar4qemu@googlemail.com> | 2009-08-31 19:03:51 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-31 17:12:11 +0000 |
commit | 4e2a68c1e1b296bca8a60b480ac935527cd87953 (patch) | |
tree | 6bab79161c5681028916c506638f158e8c4d8c45 /hw | |
parent | 9e3a95ef4752dc86bf30a578be4a579a7c6c04e6 (diff) | |
download | hqemu-4e2a68c1e1b296bca8a60b480ac935527cd87953.zip hqemu-4e2a68c1e1b296bca8a60b480ac935527cd87953.tar.gz |
esp (sparc32) Extra scsi data.
> ESP: Message Accepted (12)
> ESP: Transfer status (sense=0)
> ESP: read reg[5]: 0x20
> ESP: read reg[4]: 0x07
> ESP: read reg[7]: 0x02
> Extra scsi data. Fatal error.
It looks like "Message Accepted" shouldn't write a response. At least
ESP_RFLAGS must definetely be 0. With the following fix OBP goes one
step further:
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/esp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -528,9 +528,10 @@ static void esp_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) break; case CMD_MSGACC: DPRINTF("Message Accepted (%2.2x)\n", val); - write_response(s); s->rregs[ESP_RINTR] = INTR_DC; s->rregs[ESP_RSEQ] = 0; + s->rregs[ESP_RFLAGS] = 0; + esp_raise_irq(s); break; case CMD_PAD: DPRINTF("Transfer padding (%2.2x)\n", val); |