Re: [Qemu-devel] [PATCH 3/3] prep: improve Raven PCI host emulation

2013-09-02 Thread Peter Maydell
On 2 September 2013 22:18, Hervé Poussineau wrote: > Yes, aliases should probably work, but it won't be handy to create lots of > them. Moreover, this function needs to be expanded later to handle an > additional endianness switch, which will change both addresses and values... FWIW, I think the

Re: [Qemu-devel] [PATCH 3/3] prep: improve Raven PCI host emulation

2013-09-02 Thread Hervé Poussineau
Peter Maydell a écrit : On 23 August 2013 19:52, Hervé Poussineau wrote: - let it load a firmware (raw or elf image) - add a GPIO to let it handle the non-contiguous I/O address space - provide a bus master address space Also move isa_mem_base from PCI host to machine board. Simplify pre

Re: [Qemu-devel] [PATCH 3/3] prep: improve Raven PCI host emulation

2013-09-02 Thread Peter Maydell
On 23 August 2013 19:52, Hervé Poussineau wrote: > - let it load a firmware (raw or elf image) > - add a GPIO to let it handle the non-contiguous I/O address space > - provide a bus master address space > Also move isa_mem_base from PCI host to machine board. > Simplify prep board code by relyi

Re: [Qemu-devel] [PATCH 3/3] prep: improve Raven PCI host emulation

2013-09-02 Thread Peter Maydell
On 2 September 2013 21:26, Hervé Poussineau wrote: > Richard Henderson a écrit : > >> On 08/23/2013 11:52 AM, Hervé Poussineau wrote: >>> >>> +uint8_t buf[4]; >>> +uint64_t val; >>> + >>> +if (s->contiguous_map == 0) { >>> +/* 64 KB contiguous space for IOs */ >>> +addr

Re: [Qemu-devel] [PATCH 3/3] prep: improve Raven PCI host emulation

2013-09-02 Thread Hervé Poussineau
Richard Henderson a écrit : On 08/23/2013 11:52 AM, Hervé Poussineau wrote: +uint8_t buf[4]; +uint64_t val; + +if (s->contiguous_map == 0) { +/* 64 KB contiguous space for IOs */ +addr &= 0x; +} else { +/* 8 MB non-contiguous space for IOs */ +

Re: [Qemu-devel] [PATCH 3/3] prep: improve Raven PCI host emulation

2013-08-23 Thread Richard Henderson
On 08/23/2013 11:52 AM, Hervé Poussineau wrote: > +uint8_t buf[4]; > +uint64_t val; > + > +if (s->contiguous_map == 0) { > +/* 64 KB contiguous space for IOs */ > +addr &= 0x; > +} else { > +/* 8 MB non-contiguous space for IOs */ > +addr = (addr

[Qemu-devel] [PATCH 3/3] prep: improve Raven PCI host emulation

2013-08-23 Thread Hervé Poussineau
- let it load a firmware (raw or elf image) - add a GPIO to let it handle the non-contiguous I/O address space - provide a bus master address space Missing part is dynamic endianness change, which is required for IBM AIX and MS Windows NT/PPC. Also move isa_mem_base from PCI host to machine board