Re: [Qemu-devel] [PATCH] Replace cpu_physical_memory_rw were possible

2011-04-12 Thread Aurelien Jarno
On Sun, Apr 10, 2011 at 06:23:39PM +0200, Stefan Weil wrote: > 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

[Qemu-devel] [PATCH] Replace cpu_physical_memory_rw were possible

2011-04-10 Thread Stefan Weil
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. C