aboutsummaryrefslogtreecommitdiff
path: root/include/hw/scsi
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-11-10 16:52:55 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-11-12 10:27:03 +0100
commitc9cf45c1a475e594c560862d9df35b16e3a42702 (patch)
tree549d5e4e36ef8c474c0e778b175004768ac55822 /include/hw/scsi
parented4b43265d4d0c7ecfbbcb4001f61700756f22b9 (diff)
esp: Do not overwrite ESP_TCHI after reset
After a reset ESP_TCHI should contain the unique ID of the chip. This value will be overwritten with the current tranfer count if the transfer count has previously been set. So we should always return the chip id if ESP_TCHI has never been written to. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/scsi')
-rw-r--r--include/hw/scsi/esp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/scsi/esp.h b/include/hw/scsi/esp.h
index e079fb8d16..6c795276c9 100644
--- a/include/hw/scsi/esp.h
+++ b/include/hw/scsi/esp.h
@@ -22,6 +22,7 @@ struct ESPState {
uint8_t wregs[ESP_REGS];
qemu_irq irq;
uint8_t chip_id;
+ bool tchi_written;
int32_t ti_size;
uint32_t ti_rptr, ti_wptr;
uint32_t status;