mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Emulate address wrap in CFI02 chips mapping (Jan Kiszka).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4219 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
6725070d8d
commit
4fbd24ba35
3 changed files with 39 additions and 25 deletions
|
@ -235,8 +235,8 @@ static void ref405ep_init (int ram_size, int vga_ram_size,
|
|||
bdrv_get_device_name(drives_table[index].bdrv), fl_sectors);
|
||||
#endif
|
||||
pflash_cfi02_register((uint32_t)(-bios_size), bios_offset,
|
||||
drives_table[index].bdrv, 65536, fl_sectors, 2,
|
||||
0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA);
|
||||
drives_table[index].bdrv, 65536, fl_sectors, 1,
|
||||
2, 0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA);
|
||||
fl_idx++;
|
||||
} else
|
||||
#endif
|
||||
|
@ -552,8 +552,8 @@ static void taihu_405ep_init(int ram_size, int vga_ram_size,
|
|||
bdrv_get_device_name(drives_table[index].bdrv), fl_sectors);
|
||||
#endif
|
||||
pflash_cfi02_register((uint32_t)(-bios_size), bios_offset,
|
||||
drives_table[index].bdrv, 65536, fl_sectors, 4,
|
||||
0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA);
|
||||
drives_table[index].bdrv, 65536, fl_sectors, 1,
|
||||
4, 0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA);
|
||||
fl_idx++;
|
||||
} else
|
||||
#endif
|
||||
|
@ -588,8 +588,8 @@ static void taihu_405ep_init(int ram_size, int vga_ram_size,
|
|||
bdrv_get_device_name(drives_table[index].bdrv));
|
||||
#endif
|
||||
pflash_cfi02_register(0xfc000000, bios_offset,
|
||||
drives_table[index].bdrv, 65536, fl_sectors, 4,
|
||||
0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA);
|
||||
drives_table[index].bdrv, 65536, fl_sectors, 1,
|
||||
4, 0x0001, 0x22DA, 0x0000, 0x0000, 0x555, 0x2AA);
|
||||
fl_idx++;
|
||||
}
|
||||
/* Register CLPD & LCD display */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue