[kaffe] PATCH: support for PowerPCs w/o FPU
Marius Groeger
mgroeger@sysgo.com
Wed Feb 25 09:46:15 2004
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--380373511-2095421959-1077716786=:11578
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hello all,
here is a patch for kaffe V1.3 to add support for PPCs without an FPU.
I've tested it on an IBM440GP (IBM Ebony) with gcc 3.2.3 and glibc
2.3.2, kernel 2.4.21-pre3. The patch should also work of 8xx CPUs. I
haven't tried the patch on kaffe 1.4, but I'm pretty confident it
works (famous last words :-)
ChangeLog entry:
2004-02-25 Marius Groeger <mgroeger@sysgo.com>
* config/powerpc/sysdepCallMethod.h:
Add support for PowerPC CPUs without hardware FPU (-msoft-float)
Comments welcome, but please copy me on standard email as I'm not
subscribed to the kaffe mailing list.
Regards,
Marius
--
Marius Groeger <mgroeger@sysgo.com>
Project Manager
SYSGO Real-Time Solutions AG | Embedded and Real-Time Software
Am Pfaffenstein 14
55270 Klein-Winternheim, Germany
Voice: +49-6136-9948-0 | FAX: +49-6136-9948-10
www.sysgo.com | www.elinos.com | www.osek.de
--380373511-2095421959-1077716786=:11578
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ppc-softfp.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.56.0402251439241.11578@mag.sysgo.com>
Content-Description:
Content-Disposition: attachment; filename="ppc-softfp.patch"
LS0tIGthZmZlL2NvbmZpZy9wb3dlcnBjL3N5c2RlcENhbGxNZXRob2QuaAky
MDA0LTAxLTIzIDE1OjQ2OjQzLjAwMDAwMDAwMCArMDEwMA0KKysrIGthZmZl
L2NvbmZpZy9wb3dlcnBjL3N5c2RlcENhbGxNZXRob2QuaC5uZXcJMjAwNC0w
Mi0yNSAxNDoxNjoyMi4wMDAwMDAwMDAgKzAxMDANCkBAIC0zOSw3ICszOSw5
IEBADQogI2lmIGRlZmluZWQoX19BUF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