mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
esp: use in-built TC to determine PDMA transfer length
Real hardware simply counts down using the in-built TC to determine when the the PDMA request is complete. Use the TC to determine the PDMA transfer length which then enables us to remove the redundant pdma_len variable. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20210304221103.6369-25-mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
ad7f468c42
commit
3c421400ff
2 changed files with 13 additions and 16 deletions
|
@ -57,7 +57,6 @@ struct ESPState {
|
|||
void *dma_opaque;
|
||||
void (*dma_cb)(ESPState *s);
|
||||
int pdma_origin;
|
||||
uint32_t pdma_len;
|
||||
void (*pdma_cb)(ESPState *s);
|
||||
|
||||
uint8_t mig_version_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue