qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [SH4] Fix swap.b


From: Aurelien Jarno
Subject: Re: [Qemu-devel] [SH4] Fix swap.b
Date: Mon, 13 Oct 2008 01:31:59 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Sun, Oct 12, 2008 at 07:21:05PM +0400, Vladimir Prus wrote:
> 
> The SH4 manual documents the swap.b instruction as follows:
> 
>       SWAP.B Rm,Rn
>               Rm → swap lower 2 bytes → Rn
> 
> Current QEMU code, in addition to the above, also clears the high
> 16 bits. The immediate breakage I saw is that htonl function applied 
> to  netmask of 255.255.255.0 gives 0, which breaks all networking.
> Attached patch fixes the problem.
> 

Thanks, applied.

-- 
  .''`.  Aurelien Jarno             | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   address@hidden         | address@hidden
   `-    people.debian.org/~aurel32 | www.aurel32.net




reply via email to

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