mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
Remove more redundant ram size checks.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7089 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
94a6b54fd6
commit
a0b753dfd3
6 changed files with 1 additions and 37 deletions
12
hw/gumstix.c
12
hw/gumstix.c
|
@ -52,12 +52,6 @@ static void connex_init(ram_addr_t ram_size, int vga_ram_size,
|
|||
uint32_t connex_rom = 0x01000000;
|
||||
uint32_t connex_ram = 0x04000000;
|
||||
|
||||
if (ram_size < (connex_ram + connex_rom + PXA2XX_INTERNAL_SIZE)) {
|
||||
fprintf(stderr, "This platform requires %i bytes of memory\n",
|
||||
connex_ram + connex_rom + PXA2XX_INTERNAL_SIZE);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
cpu = pxa255_init(connex_ram);
|
||||
|
||||
index = drive_get_index(IF_PFLASH, 0, 0);
|
||||
|
@ -92,12 +86,6 @@ static void verdex_init(ram_addr_t ram_size, int vga_ram_size,
|
|||
uint32_t verdex_rom = 0x02000000;
|
||||
uint32_t verdex_ram = 0x10000000;
|
||||
|
||||
if (ram_size < (verdex_ram + verdex_rom + PXA2XX_INTERNAL_SIZE)) {
|
||||
fprintf(stderr, "This platform requires %i bytes of memory\n",
|
||||
verdex_ram + verdex_rom + PXA2XX_INTERNAL_SIZE);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
cpu = pxa270_init(verdex_ram, cpu_model ?: "pxa270-c0");
|
||||
|
||||
index = drive_get_index(IF_PFLASH, 0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue