debuggers.hg
diff tools/ioemu/iodev/dma.cc @ 3680:26a00896163a
bitkeeper revision 1.1159.240.3 (4202bd17uoTYqnlSeqvW9fHjznmCHg)
Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
author | iap10@labyrinth.cl.cam.ac.uk |
---|---|
date | Fri Feb 04 00:08:55 2005 +0000 (2005-02-04) |
parents | 2c56c6b39a48 f89816eaeaad |
children | d3f0465c034e |
line diff
1.1 --- a/tools/ioemu/iodev/dma.cc Thu Feb 03 20:10:48 2005 +0000 1.2 +++ b/tools/ioemu/iodev/dma.cc Fri Feb 04 00:08:55 2005 +0000 1.3 @@ -182,6 +182,14 @@ bx_dma_c::init(void) 1.4 } 1.5 BX_DMA_THIS s[1].chan[0].used = 1; // cascade channel in use 1.6 BX_INFO(("channel 4 used by cascade")); 1.7 + bios_init(); 1.8 +} 1.9 + 1.10 +/* Remove it when guest fw ready*/ 1.11 + void 1.12 +bx_dma_c::bios_init(void){ 1.13 + BX_DMA_THIS s[1].mask[0] = 0; // unmask cascade channel 1.14 + BX_DMA_THIS s[1].chan[0].mode.mode_type = 3; // cascade mode for channel 4 1.15 } 1.16 1.17 void 1.18 @@ -189,6 +197,7 @@ bx_dma_c::reset(unsigned type) 1.19 { 1.20 reset_controller(0); 1.21 reset_controller(1); 1.22 + bios_init(); 1.23 } 1.24 1.25 void