qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/13] Memory API conversion, batch 8
@ 2011-09-18 14:15 Avi Kivity
  2011-09-18 14:15 ` [Qemu-devel] [PATCH 01/13] mips_jazz: convert to memory API Avi Kivity
                   ` (13 more replies)
  0 siblings, 14 replies; 21+ messages in thread
From: Avi Kivity @ 2011-09-18 14:15 UTC (permalink / raw)
  To: qemu-devel

Batch 7 has some issues due to the ISA conversion, so I reordered some
patches and am posting this for your review and testing.  It should be
straightforward but this stuff never is.

Also available on git://github.com/avikivity/qemu.git memory/batch

Avi Kivity (13):
  mips_jazz: convert to memory API
  mips_malta: convert to memory API
  mips_mipssim: convert to memory API
  mips_r4k: convert to memory API
  musicpal: convert to memory API
  omap1: convert to memory API (part I)
  omap1: convert to memory API (part II)
  omap1: convert to memory API (part III)
  omap1: convert to memory API (part IV)
  omap1: convert to memory API (part V)
  omap_lcdc: remove imif, emiff from structure
  soc_dma: drop soc_dma_port_add_mem_ram()
  omap1: convert to memory API (part VI)

 hw/mips_jazz.c    |   90 +++---
 hw/mips_malta.c   |   53 ++--
 hw/mips_mipssim.c |   15 +-
 hw/mips_r4k.c     |   39 +--
 hw/musicpal.c     |  243 ++++++---------
 hw/omap.h         |   32 ++-
 hw/omap1.c        |  859 +++++++++++++++++++++++++++++------------------------
 hw/omap2.c        |    6 +-
 hw/omap_lcdc.c    |    7 +-
 hw/omap_sx1.c     |    4 +-
 hw/palm.c         |    4 +-
 hw/soc_dma.h      |    8 +-
 12 files changed, 705 insertions(+), 655 deletions(-)

-- 
1.7.6.3

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Qemu-devel] [PULL 00/13] Memory API conversion, batch 8
@ 2011-09-21  8:19 Avi Kivity
  2011-09-21  8:19 ` [Qemu-devel] [PATCH 01/13] mips_jazz: convert to memory API Avi Kivity
  0 siblings, 1 reply; 21+ messages in thread
From: Avi Kivity @ 2011-09-21  8:19 UTC (permalink / raw)
  To: Anthony Liguori, qemu-devel

Available on

  git://github.com/avikivity/qemu.git memory/batch

Please pull.

Avi Kivity (13):
  mips_jazz: convert to memory API
  mips_malta: convert to memory API
  mips_mipssim: convert to memory API
  mips_r4k: convert to memory API
  musicpal: convert to memory API
  omap1: convert to memory API (part I)
  omap1: convert to memory API (part II)
  omap1: convert to memory API (part III)
  omap1: convert to memory API (part IV)
  omap1: convert to memory API (part V)
  omap_lcdc: remove imif, emiff from structure
  soc_dma: drop soc_dma_port_add_mem_ram()
  omap1: convert to memory API (part VI)

 hw/mips_jazz.c    |   90 +++---
 hw/mips_malta.c   |   53 ++--
 hw/mips_mipssim.c |   15 +-
 hw/mips_r4k.c     |   39 +--
 hw/musicpal.c     |  243 ++++++---------
 hw/omap.h         |   32 ++-
 hw/omap1.c        |  859 +++++++++++++++++++++++++++++------------------------
 hw/omap2.c        |    6 +-
 hw/omap_lcdc.c    |    7 +-
 hw/omap_sx1.c     |    4 +-
 hw/palm.c         |    4 +-
 hw/soc_dma.h      |    8 +-
 12 files changed, 705 insertions(+), 655 deletions(-)

-- 
1.7.6.3

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [Qemu-devel] [PATCH 01/13] mips_jazz: convert to memory API
@ 2011-09-24  8:29 Hervé Poussineau
  2011-09-25  9:18 ` Avi Kivity
  0 siblings, 1 reply; 21+ messages in thread
From: Hervé Poussineau @ 2011-09-24  8:29 UTC (permalink / raw)
  To: avi; +Cc: QEMU Developers

Avi Kivity wrote:

 > Signed-off-by: Avi Kivity <avi@redhat.com>
 > ---
 >
 > hw/mips_jazz.c | 90 
++++++++++++++++++++++++++++----------------------------
 > 1 files changed, 45 insertions(+), 45 deletions(-)
 >
 > diff --git a/hw/mips_jazz.c b/hw/mips_jazz.c
 > index f3c9f93..7cac5da 100644
 > --- a/hw/mips_jazz.c
 > +++ b/hw/mips_jazz.c
 >@@ -203,10 +203,11 @@ void mips_jazz_init (ram_addr_t ram_size,
 >         sysbus_connect_irq(sysbus, 0, rc4030[3]);
 >         {
 >             /* Simple ROM, so user doesn't have to provide one */
 > -            ram_addr_t rom_offset = qemu_ram_alloc(NULL, "g364fb.rom",
 >                                                     0x80000);
 > -            uint8_t *rom = qemu_get_ram_ptr(rom_offset);
 > -            cpu_register_physical_memory(0x60000000, 0x80000,
 > -                                         rom_offset | IO_MEM_ROM);
 > +            MemoryRegion *rom_mr = g_new(MemoryRegion, 1);
 > +            memory_region_init_ram(rom_mr, NULL, "g364fb.rom", 0x80000);
 > +            memory_region_set_readonly(rom_mr, true);
 > +            uint8_t *rom = memory_region_get_ram_ptr(rom_mr);
 > +            memory_region_add_subregion(address_space, 0x60000000, 
rom_mr);
 >              rom[0] = 0x10; /* Mips G364 */
 >          }
 >          break;

This part breaks Magnum emulation, where firmware writes to 0x60000000, 
and then checks if value has been modified.
This is not working as expected (value is modified) because 
memory_region_set_readonly() is unimplemented...

Hervé

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2011-09-25 12:38 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-18 14:15 [Qemu-devel] [PATCH 00/13] Memory API conversion, batch 8 Avi Kivity
2011-09-18 14:15 ` [Qemu-devel] [PATCH 01/13] mips_jazz: convert to memory API Avi Kivity
2011-09-18 14:15 ` [Qemu-devel] [PATCH 02/13] mips_malta: " Avi Kivity
2011-09-18 14:15 ` [Qemu-devel] [PATCH 03/13] mips_mipssim: " Avi Kivity
2011-09-18 14:15 ` [Qemu-devel] [PATCH 04/13] mips_r4k: " Avi Kivity
2011-09-18 14:15 ` [Qemu-devel] [PATCH 05/13] musicpal: " Avi Kivity
2011-09-18 14:15 ` [Qemu-devel] [PATCH 06/13] omap1: convert to memory API (part I) Avi Kivity
2011-09-18 14:15 ` [Qemu-devel] [PATCH 07/13] omap1: convert to memory API (part II) Avi Kivity
2011-09-18 14:15 ` [Qemu-devel] [PATCH 08/13] omap1: convert to memory API (part III) Avi Kivity
2011-09-18 14:16 ` [Qemu-devel] [PATCH 09/13] omap1: convert to memory API (part IV) Avi Kivity
2011-09-18 14:16 ` [Qemu-devel] [PATCH 10/13] omap1: convert to memory API (part V) Avi Kivity
2011-09-18 14:16 ` [Qemu-devel] [PATCH 11/13] omap_lcdc: remove imif, emiff from structure Avi Kivity
2011-09-18 14:16 ` [Qemu-devel] [PATCH 12/13] soc_dma: drop soc_dma_port_add_mem_ram() Avi Kivity
2011-09-18 14:16 ` [Qemu-devel] [PATCH 13/13] omap1: convert to memory API (part VI) Avi Kivity
2011-09-20 16:47 ` [Qemu-devel] [PATCH 00/13] Memory API conversion, batch 8 Peter Maydell
2011-09-20 16:53   ` Peter Maydell
  -- strict thread matches above, loose matches on Subject: below --
2011-09-21  8:19 [Qemu-devel] [PULL " Avi Kivity
2011-09-21  8:19 ` [Qemu-devel] [PATCH 01/13] mips_jazz: convert to memory API Avi Kivity
2011-09-24  8:29 Hervé Poussineau
2011-09-25  9:18 ` Avi Kivity
2011-09-25 11:51   ` Avi Kivity
2011-09-25 12:37     ` Hervé Poussineau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).