hppa: drop usage of memory_region_allocate_system_memory() for ROM
commit6a3a2e828220d9c86425930178445b868ea3c3c4
authorIgor Mammedov <imammedo@redhat.com>
Tue, 8 Oct 2019 11:33:18 +0000 (8 07:33 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 24 Oct 2019 02:37:42 +0000 (23 23:37 -0300)
tree0bb6b12eb820a6d57b0f22bd811d75108264032e
parent2def24f159c687328ada923d585307c014c2d095
hppa: drop usage of memory_region_allocate_system_memory() for ROM

machine_hppa_init() violates memory_region_allocate_system_memory() contract
by calling it multiple times which could break with -mem-path. Replace
the second usage (for 'rom') with memory_region_init_ram() instead.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20191008113318.7012-4-imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/hppa/machine.c