|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 2/3] softfloat: extract softfloat-target.h |
Date: | Fri, 20 May 2011 21:45:09 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 |
On 05/20/2011 09:38 PM, Blue Swirl wrote:
On Thu, May 19, 2011 at 4:47 PM, Paolo Bonzini<address@hidden> wrote: > Most definitions in softfloat.h are really target-independent. Split > the few that stand out as target-dependent, to allow including > softfloat.h from files that are not compiled per-target. Maybe the next step should be (or in place of this patch) to move the various defines to target-xyz/cpu.h?
Not sure... Adding (or increasing, I haven't checked) the dependency of softfloat on */cpu.h is bad, but a new file target-xyz/softfloat-target.h would be feasible. You'd miss the classification in the two big groups (sNAN sign bit = 0/1), but that's not a big deal.
Regarding "in place of this patch" however I disagree, since this patch is a naive split of a file in two big pieces, while your proposal requires more thought.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |