| To: | Richard Sandiford <rdsandiford@googlemail.com> |
|---|---|
| Subject: | Re: [PATCH] MIPS: Handle removal of 'h' constraint in GCC 4.4 |
| From: | Florian Fainelli <florian@openwrt.org> |
| Date: | Thu, 28 May 2009 13:31:40 +0200 |
| Cc: | "Maciej W. Rozycki" <macro@linux-mips.org>, David Daney <ddaney@caviumnetworks.com>, linux-mips@linux-mips.org |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=3hrufnDb8ODh/hfc9DHmEJ+4zGfZqAv09hEFnF0oJh4=; b=xfbBVaD60Y53QIY4uVm2n++kGgi88nqk1JcXUMit0zjmWgxaC+rqKPT2eCQjKkOobF CMQO8kXBs2PxDmkQweeaW1b6csTTaaGhbJ8xLagrWmY/luDdKyVV/CbxQ1w3TuY1jknh gxvX5FS3Wj+fXmcxJMbsVwq7GJm/Dz6Zj32bI= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=kLsmi9jlDyPIiZvmUXVTyVlTjc1Uc61H9jAwsKra6C3LdzlfVF+eRt0WqNchS75ybM hUJxyUAjR44Hc9W5XTbr99acBJWsRE094nNK0Gp7yd/5BGM1UaoQCKTm4yPLsVj95f5E ia3xV5Wfdj0dN3IQ66E6mzlwItiyR1GdKT1rM= |
| In-reply-to: | <87wsdl63xv.fsf@firetop.home> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1229567048-19219-1-git-send-email-ddaney@caviumnetworks.com> <alpine.LFD.1.10.0812190041080.6463@ftp.linux-mips.org> <87wsdl63xv.fsf@firetop.home> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | KMail/1.9.9 |
Le Saturday 27 December 2008 16:19:40 Richard Sandiford, vous avez écrit : > "Maciej W. Rozycki" <macro@linux-mips.org> writes: > > On Wed, 17 Dec 2008, David Daney wrote: > >> This is an incomplete proof of concept that I applied to be able to > >> build a 64 bit kernel with GCC-4.4. It doesn't handle the 32 bit case > >> or the R4000_WAR case. > > > > The R4000_WAR case can use the same C code -- GCC will adjust code > > generated as necessary according to the -mfix-r4000 flag. For the 32-bit > > case I think the conclusion was the only way to get it working is to use > > MFHI explicitly in the asm. > > No, the same sort of cast, multiply and shift should work for 32-bit > code too. I.e.: > > usecs = ((uint64_t)usecs * lpj) >> 32; > > It should work for both -mfix-r4000 and -mno-fix-r4000. Any updates on this ? -- Best regards, Florian Fainelli Email : florian@openwrt.org http://openwrt.org ------------------------------- |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Sindhi Bandhan, priya shrivastava |
|---|---|
| Next by Date: | Re: [PATCH] mips-specific ftrace support, Steven Rostedt |
| Previous by Thread: | Sindhi Bandhan, priya shrivastava |
| Next by Thread: | Re: [PATCH] MIPS: Handle removal of 'h' constraint in GCC 4.4, Wu Zhangjin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |