mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
exec: Make ldl_*_phys input an AddressSpace
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
33bde2e13f
commit
fdfba1a298
30 changed files with 186 additions and 145 deletions
|
@ -8,6 +8,7 @@
|
|||
*/
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
||||
#define PL080_MAX_CHANNELS 8
|
||||
#define PL080_CONF_E 0x1
|
||||
|
@ -204,10 +205,10 @@ again:
|
|||
if (size == 0) {
|
||||
/* Transfer complete. */
|
||||
if (ch->lli) {
|
||||
ch->src = ldl_le_phys(ch->lli);
|
||||
ch->dest = ldl_le_phys(ch->lli + 4);
|
||||
ch->ctrl = ldl_le_phys(ch->lli + 12);
|
||||
ch->lli = ldl_le_phys(ch->lli + 8);
|
||||
ch->src = ldl_le_phys(&address_space_memory, ch->lli);
|
||||
ch->dest = ldl_le_phys(&address_space_memory, ch->lli + 4);
|
||||
ch->ctrl = ldl_le_phys(&address_space_memory, ch->lli + 12);
|
||||
ch->lli = ldl_le_phys(&address_space_memory, ch->lli + 8);
|
||||
} else {
|
||||
ch->conf &= ~PL080_CCONF_E;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue