OSDN Git Service

ppc: rs6000_mc: drop usage of memory_region_allocate_system_memory()
authorIgor Mammedov <imammedo@redhat.com>
Tue, 8 Oct 2019 11:33:17 +0000 (07:33 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 24 Oct 2019 02:37:42 +0000 (23:37 -0300)
commit2def24f159c687328ada923d585307c014c2d095
treefd813f2071611f2719adc315104ef261ddf1cc5d
parent6966631c3e1004a1a20bfd01f3c26a403c31f36f
ppc: rs6000_mc: drop usage of memory_region_allocate_system_memory()

rs6000mc_realize() violates memory_region_allocate_system_memory() contract
by calling it multiple times which could break -mem-path. Replace it with
plain memory_region_init_ram() instead.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20191008113318.7012-3-imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/ppc/rs6000_mc.c