aboutsummaryrefslogtreecommitdiff
path: root/hw/etraxfs_dma.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-06-15 21:00:50 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-06-15 21:00:50 +0200
commitba494313d386475e849b536fe0eb1cd05d8dfa68 (patch)
treea3550840454f9c3c5e71a0c4117f14eb82a896bb /hw/etraxfs_dma.c
parente510e05b5d68386a0518e69eaf364a34bdb6283c (diff)
etrax: Don't pass CPUState to peripherals.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/etraxfs_dma.c')
-rw-r--r--hw/etraxfs_dma.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/etraxfs_dma.c b/hw/etraxfs_dma.c
index d465aff1cd..1b65d03459 100644
--- a/hw/etraxfs_dma.c
+++ b/hw/etraxfs_dma.c
@@ -186,8 +186,6 @@ struct fs_dma_channel
struct fs_dma_ctrl
{
int map;
- CPUState *env;
-
int nr_channels;
struct fs_dma_channel *channels;
@@ -741,8 +739,7 @@ static void DMA_run(void *opaque)
qemu_bh_schedule_idle(etraxfs_dmac->bh);
}
-void *etraxfs_dmac_init(CPUState *env,
- target_phys_addr_t base, int nr_channels)
+void *etraxfs_dmac_init(target_phys_addr_t base, int nr_channels)
{
struct fs_dma_ctrl *ctrl = NULL;
@@ -750,7 +747,6 @@ void *etraxfs_dmac_init(CPUState *env,
ctrl->bh = qemu_bh_new(DMA_run, ctrl);
- ctrl->env = env;
ctrl->nr_channels = nr_channels;
ctrl->channels = qemu_mallocz(sizeof ctrl->channels[0] * nr_channels);