[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] migration: Don't use *_to_cpup() and cpu_to_
Re: [Qemu-devel] [PATCH v2] migration: Don't use *_to_cpup() and cpu_to_*w()
Mon, 13 Jun 2016 10:08:53 +0530
On (Fri) 10 Jun 2016 [17:09:22], Peter Maydell wrote:
> The *_to_cpup() and cpu_to_*w() functions just compose a pointer
> dereference with a byteswap. Instead use ld*_p() and st*_p(),
> which handle potential pointer misalignment and avoid the need
> to cast the pointer.
> Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Amit Shah <address@hidden>
I'll pick this up, thanks.