mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
esp.c: remove unneeded ti_cmd field
According to the datasheet the previous ESP command remains in the ESP_CMD register, which caused a problem when consecutive TI commands were issued as it becomes impossible for the state machine to know when the first TI command finishes. This was the original reason for introducing the ti_cmd field which kept track of the last written command for this purpose. However closer reading of the datasheet shows that a TI command that terminates due to a change of SCSI target phase resets the ESP_CMD register to zero which solves this problem. Now that this has been fixed in the previous commit, remove the unneeded ti_cmd field and access the ESP_CMD register directly instead. Bump the vmstate_esp version to indicate that the ti_cmd field is no longer included. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Tested-by: Helge Deller <deller@gmx.de> Tested-by: Thomas Huth <thuth@redhat.com> Message-Id: <20240112125420.514425-64-mark.cave-ayland@ilande.co.uk> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
cb22ce5038
commit
8200345066
2 changed files with 15 additions and 7 deletions
|
@ -41,7 +41,6 @@ struct ESPState {
|
|||
uint32_t do_cmd;
|
||||
|
||||
bool data_ready;
|
||||
uint8_t ti_cmd;
|
||||
int dma_enabled;
|
||||
|
||||
uint32_t async_len;
|
||||
|
@ -62,6 +61,8 @@ struct ESPState {
|
|||
uint8_t mig_ti_buf[ESP_FIFO_SZ];
|
||||
uint8_t mig_cmdbuf[ESP_CMDFIFO_SZ];
|
||||
uint32_t mig_cmdlen;
|
||||
|
||||
uint8_t mig_ti_cmd;
|
||||
};
|
||||
|
||||
#define TYPE_SYSBUS_ESP "sysbus-esp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue