mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13: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
|
@ -10,7 +10,6 @@
|
|||
#include "boards.h"
|
||||
#include "loader.h"
|
||||
#include "elf.h"
|
||||
#include "exec-memory.h"
|
||||
|
||||
#define KERNEL_LOAD_ADDR 0x10000
|
||||
|
||||
|
@ -22,8 +21,6 @@ static void dummy_m68k_init(ram_addr_t ram_size,
|
|||
const char *initrd_filename, const char *cpu_model)
|
||||
{
|
||||
CPUState *env;
|
||||
MemoryRegion *address_space_mem = get_system_memory();
|
||||
MemoryRegion *ram = g_new(MemoryRegion, 1);
|
||||
int kernel_size;
|
||||
uint64_t elf_entry;
|
||||
target_phys_addr_t entry;
|
||||
|
@ -40,8 +37,8 @@ static void dummy_m68k_init(ram_addr_t ram_size,
|
|||
env->vbr = 0;
|
||||
|
||||
/* RAM at address zero */
|
||||
memory_region_init_ram(ram, NULL, "dummy_m68k.ram", ram_size);
|
||||
memory_region_add_subregion(address_space_mem, 0, ram);
|
||||
cpu_register_physical_memory(0, ram_size,
|
||||
qemu_ram_alloc(NULL, "dummy_m68k.ram", ram_size) | IO_MEM_RAM);
|
||||
|
||||
/* Load kernel. */
|
||||
if (kernel_filename) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue