mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Replace cpu_physical_memory_rw were possible
Using cpu_physical_memory_read, cpu_physical_memory_write and ldub_phys improves readability and allows removing some type casts. lduw_phys and ldl_phys were not used because both require aligned addresses. Therefore it is not possible to simply replace existing calls by one of these functions. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
b8b79323d0
commit
54f7b4a396
8 changed files with 19 additions and 21 deletions
|
@ -230,8 +230,8 @@ static void s390_init(ram_addr_t ram_size,
|
|||
}
|
||||
|
||||
if (kernel_cmdline) {
|
||||
cpu_physical_memory_rw(KERN_PARM_AREA, (uint8_t *)kernel_cmdline,
|
||||
strlen(kernel_cmdline), 1);
|
||||
cpu_physical_memory_write(KERN_PARM_AREA, kernel_cmdline,
|
||||
strlen(kernel_cmdline));
|
||||
}
|
||||
|
||||
/* Create VirtIO network adapters */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue