mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Revert "Merge remote-tracking branch 'qemu-kvm/memory/batch' into staging"
This reverts commit8ef9ea85a2
, reversing changes made to444dc48298
. From Avi: Please revert the entire pull (git revert8ef9ea85a2
) while I work this out - it isn't trivial. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f065aa0a00
commit
01e0451a08
49 changed files with 657 additions and 637 deletions
15
hw/leon3.c
15
hw/leon3.c
|
@ -29,7 +29,6 @@
|
|||
#include "loader.h"
|
||||
#include "elf.h"
|
||||
#include "trace.h"
|
||||
#include "exec-memory.h"
|
||||
|
||||
#include "grlib.h"
|
||||
|
||||
|
@ -101,9 +100,7 @@ static void leon3_generic_hw_init(ram_addr_t ram_size,
|
|||
const char *cpu_model)
|
||||
{
|
||||
CPUState *env;
|
||||
MemoryRegion *address_space_mem = get_system_memory();
|
||||
MemoryRegion *ram = g_new(MemoryRegion, 1);
|
||||
MemoryRegion *prom = g_new(MemoryRegion, 1);
|
||||
ram_addr_t ram_offset, prom_offset;
|
||||
int ret;
|
||||
char *filename;
|
||||
qemu_irq *cpu_irqs = NULL;
|
||||
|
@ -142,14 +139,14 @@ static void leon3_generic_hw_init(ram_addr_t ram_size,
|
|||
exit(1);
|
||||
}
|
||||
|
||||
memory_region_init_ram(ram, NULL, "leon3.ram", ram_size);
|
||||
memory_region_add_subregion(address_space_mem, 0x40000000, ram);
|
||||
ram_offset = qemu_ram_alloc(NULL, "leon3.ram", ram_size);
|
||||
cpu_register_physical_memory(0x40000000, ram_size, ram_offset | IO_MEM_RAM);
|
||||
|
||||
/* Allocate BIOS */
|
||||
prom_size = 8 * 1024 * 1024; /* 8Mb */
|
||||
memory_region_init_ram(prom, NULL, "Leon3.bios", prom_size);
|
||||
memory_region_set_readonly(prom, true);
|
||||
memory_region_add_subregion(address_space_mem, 0x00000000, prom);
|
||||
prom_offset = qemu_ram_alloc(NULL, "Leon3.bios", prom_size);
|
||||
cpu_register_physical_memory(0x00000000, prom_size,
|
||||
prom_offset | IO_MEM_ROM);
|
||||
|
||||
/* Load boot prom */
|
||||
if (bios_name == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue