mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-28 04:21:50 -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
|
@ -28,7 +28,6 @@
|
|||
#include "elf.h"
|
||||
#include "lm32_hwsetup.h"
|
||||
#include "lm32.h"
|
||||
#include "exec-memory.h"
|
||||
|
||||
typedef struct {
|
||||
CPUState *env;
|
||||
|
@ -77,9 +76,8 @@ static void lm32_evr_init(ram_addr_t ram_size_not_used,
|
|||
{
|
||||
CPUState *env;
|
||||
DriveInfo *dinfo;
|
||||
MemoryRegion *address_space_mem = get_system_memory();
|
||||
MemoryRegion *phys_ram = g_new(MemoryRegion, 1);
|
||||
MemoryRegion *phys_flash = g_new(MemoryRegion, 1);
|
||||
ram_addr_t phys_ram;
|
||||
ram_addr_t phys_flash;
|
||||
qemu_irq *cpu_irq, irq[32];
|
||||
ResetInfo *reset_info;
|
||||
int i;
|
||||
|
@ -107,17 +105,16 @@ static void lm32_evr_init(ram_addr_t ram_size_not_used,
|
|||
|
||||
reset_info->flash_base = flash_base;
|
||||
|
||||
memory_region_init_ram(phys_ram, NULL, "lm32_evr.sdram", ram_size);
|
||||
memory_region_add_subregion(address_space_mem, ram_base, phys_ram);
|
||||
phys_ram = qemu_ram_alloc(NULL, "lm32_evr.sdram", ram_size);
|
||||
cpu_register_physical_memory(ram_base, ram_size, phys_ram | IO_MEM_RAM);
|
||||
|
||||
memory_region_init_rom_device(phys_flash, &pflash_cfi02_ops_be,
|
||||
NULL, "lm32_evr.flash", flash_size);
|
||||
phys_flash = qemu_ram_alloc(NULL, "lm32_evr.flash", flash_size);
|
||||
dinfo = drive_get(IF_PFLASH, 0, 0);
|
||||
/* Spansion S29NS128P */
|
||||
pflash_cfi02_register(flash_base, phys_flash,
|
||||
dinfo ? dinfo->bdrv : NULL, flash_sector_size,
|
||||
flash_size / flash_sector_size, 1, 2,
|
||||
0x01, 0x7e, 0x43, 0x00, 0x555, 0x2aa);
|
||||
0x01, 0x7e, 0x43, 0x00, 0x555, 0x2aa, 1);
|
||||
|
||||
/* create irq lines */
|
||||
cpu_irq = qemu_allocate_irqs(cpu_irq_handler, env, 1);
|
||||
|
@ -167,9 +164,8 @@ static void lm32_uclinux_init(ram_addr_t ram_size_not_used,
|
|||
{
|
||||
CPUState *env;
|
||||
DriveInfo *dinfo;
|
||||
MemoryRegion *address_space_mem = get_system_memory();
|
||||
MemoryRegion *phys_ram = g_new(MemoryRegion, 1);
|
||||
MemoryRegion *phys_flash = g_new(MemoryRegion, 1);
|
||||
ram_addr_t phys_ram;
|
||||
ram_addr_t phys_flash;
|
||||
qemu_irq *cpu_irq, irq[32];
|
||||
HWSetup *hw;
|
||||
ResetInfo *reset_info;
|
||||
|
@ -204,17 +200,16 @@ static void lm32_uclinux_init(ram_addr_t ram_size_not_used,
|
|||
|
||||
reset_info->flash_base = flash_base;
|
||||
|
||||
memory_region_init_ram(phys_ram, NULL, "lm32_uclinux.sdram", ram_size);
|
||||
memory_region_add_subregion(address_space_mem, ram_base, phys_ram);
|
||||
phys_ram = qemu_ram_alloc(NULL, "lm32_uclinux.sdram", ram_size);
|
||||
cpu_register_physical_memory(ram_base, ram_size, phys_ram | IO_MEM_RAM);
|
||||
|
||||
memory_region_init_rom_device(phys_flash, &pflash_cfi01_ops_be,
|
||||
NULL, "lm32_uclinux.flash", flash_size);
|
||||
phys_flash = qemu_ram_alloc(NULL, "lm32_uclinux.flash", flash_size);
|
||||
dinfo = drive_get(IF_PFLASH, 0, 0);
|
||||
/* Spansion S29NS128P */
|
||||
pflash_cfi02_register(flash_base, phys_flash,
|
||||
dinfo ? dinfo->bdrv : NULL, flash_sector_size,
|
||||
flash_size / flash_sector_size, 1, 2,
|
||||
0x01, 0x7e, 0x43, 0x00, 0x555, 0x2aa);
|
||||
0x01, 0x7e, 0x43, 0x00, 0x555, 0x2aa, 1);
|
||||
|
||||
/* create irq lines */
|
||||
cpu_irq = qemu_allocate_irqs(cpu_irq_handler, env, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue