Re: [Qemu-devel] [PATCHv3 12/14] unicore32-softmmu: Add puv3 dma support

2012-06-24 Thread guanxuetao
> On Wed, Jun 20, 2012 at 2:10 AM, Guan Xuetao wrote: >> On Mon, 2012-06-18 at 19:59 +, Blue Swirl wrote: >> [snip] >>> >>> hw_error() also aborts, it would be nice to avoid that. However, the >>> situation is somewhat different from the instruction case, since only >>> privileged guest code (

Re: [Qemu-devel] [PATCHv3 12/14] unicore32-softmmu: Add puv3 dma support

2012-06-21 Thread Blue Swirl
On Wed, Jun 20, 2012 at 2:10 AM, Guan Xuetao wrote: > On Mon, 2012-06-18 at 19:59 +, Blue Swirl wrote: > [snip] >> > + >> > +#define PUV3_DMA_CH_NR          (6) >> > +#define PUV3_DMA_CH_MASK        (0xff) >> > +#define PUV3_DMA_CH(offset)     ((offset) >> 8) >> > + >> > +typedef struct { >> >

Re: [Qemu-devel] [PATCHv3 12/14] unicore32-softmmu: Add puv3 dma support

2012-06-19 Thread Guan Xuetao
On Mon, 2012-06-18 at 19:59 +, Blue Swirl wrote: [snip] > > + > > +#define PUV3_DMA_CH_NR (6) > > +#define PUV3_DMA_CH_MASK(0xff) > > +#define PUV3_DMA_CH(offset) ((offset) >> 8) > > + > > +typedef struct { > > +SysBusDevice busdev; > > +MemoryRegion iomem; > > +

Re: [Qemu-devel] [PATCHv3 12/14] unicore32-softmmu: Add puv3 dma support

2012-06-18 Thread Blue Swirl
On Mon, Jun 18, 2012 at 9:25 AM, Guan Xuetao wrote: > This patch adds puv3 dma (Direct Memory Access) support, > include dma device simulation for kernel booting. > > Signed-off-by: Guan Xuetao > --- >  hw/Makefile.objs |    1 + >  hw/puv3.c        |    1 + >  hw/puv3_dma.c    |  109 > +

[Qemu-devel] [PATCHv3 12/14] unicore32-softmmu: Add puv3 dma support

2012-06-18 Thread Guan Xuetao
This patch adds puv3 dma (Direct Memory Access) support, include dma device simulation for kernel booting. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_dma.c| 109 ++ 3 files changed, 111 ins