qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [Qemu-devel] [PATCH v4] target-ppc: gdbstub allow byte sw


From: Richard Henderson
Subject: Re: [Qemu-ppc] [Qemu-devel] [PATCH v4] target-ppc: gdbstub allow byte swapping for reading/writing registers
Date: Fri, 28 Feb 2014 12:08:16 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 02/28/2014 11:28 AM, Thomas Falcon wrote:
> How about this instead?
> 
> int len = ppc_cpu_gdb_register_len(n);
> if (len==4) {
>     bswap32s((uint32_t *)mem_buf);
> } else {
>     bswap64s((uint64_t *)mem_buf);
> }

Looks much better, thanks.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]