* ppc 405 floating point math emulation
@ 2001-11-13 23:59 Steven Mueller
2001-11-14 2:02 ` Dan Malek
2001-11-14 10:24 ` Kenneth Johansson
0 siblings, 2 replies; 3+ messages in thread
From: Steven Mueller @ 2001-11-13 23:59 UTC (permalink / raw)
To: linuxppc-dev
Hello,
I'm interested in building a kernel with math emulation enabled for an
embedded IBM ppc 405. (It'd be nice to allow customers to run ppc
apps on our cards without having to recompile them with soft float
support.) When I try this with an old Monta Vista kernel from April
12th (used in an a HardHat pre-release, but no longer available), the
compile eventually fails while linking and mentions some 8xx specific
symbols. I assume this is leftovers from 2 years ago when there
appear to have been efforts to add math emulation support for the 8xx
chips? Anyway, make says the following and stops:
make[2]: Leaving directory `/home/dank/ixia/Software/kernel-ppc/arch/ppc/math-emu'
make[1]: Leaving directory `/home/dank/ixia/Software/kernel-ppc/arch/ppc/math-emu'
/usr/local/ppc-old/bin/powerpc-linux-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic arch/ppc/kernel/head_4xx.o init/main.o init/version.o \
--start-group \
arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/ppc/math-emu/math-emu.o \
drivers/block/block.o drivers/char/char.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o \
net/network.o \
/home/dank/ixia/Software/kernel-ppc/lib/lib.a \
--end-group \
-o vmlinux
arch/ppc/kernel/kernel.o: In function `Soft_emulate_8xx':
/home/dank/ixia/Software/kernel-ppc/arch/ppc/kernel/softemu8xx.c:129: undefined reference to `print_8xx_pte'
/home/dank/ixia/Software/kernel-ppc/arch/ppc/kernel/softemu8xx.c:129: relocation truncated to fit: R_PPC_REL24 print_8xx_pte
/home/dank/ixia/Software/kernel-ppc/arch/ppc/kernel/softemu8xx.c:130: undefined reference to `get_8xx_pte'
If anyone has already developed a solution for this, would you please
consider posting the patch? Thank you!
Steve
--
Steven Mueller
diffusor@ugcs.caltech.edu
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: ppc 405 floating point math emulation
2001-11-13 23:59 ppc 405 floating point math emulation Steven Mueller
@ 2001-11-14 2:02 ` Dan Malek
2001-11-14 10:24 ` Kenneth Johansson
1 sibling, 0 replies; 3+ messages in thread
From: Dan Malek @ 2001-11-14 2:02 UTC (permalink / raw)
To: Steven Mueller; +Cc: linuxppc-dev
Steven Mueller wrote:
> ..... When I try this with an old Monta Vista kernel from April
> 12th (used in an a HardHat pre-release, but no longer available), the
> compile eventually fails while linking and mentions some 8xx specific
> symbols.
The MontaVista kernel, tools, libraries and applications are all created
as a cohesive distribution. In the case of processors that don't have
floating point hardware, everything is created to use the in-line software
floating point. You can't mix tools, libraries, and applications with
different floating point implementations within the same distribution.
Since the kernel never had to support floating point emulation, the 4xx
processors never had a proper kernel emulation interface for that. This
was recently changed in the public source trees, which is what you should
be using if you want this feature.
> ..... I assume this is leftovers from 2 years ago when there
> appear to have been efforts to add math emulation support for the 8xx
> chips?
No, it is just that the 8xx was the only PowerPC that ever supported
the kernel floating point emulation traps, so when you select that option
it tries to hook into 8xx functions that don't exist when 8xx isn't configured.
Thanks.
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ppc 405 floating point math emulation
2001-11-13 23:59 ppc 405 floating point math emulation Steven Mueller
2001-11-14 2:02 ` Dan Malek
@ 2001-11-14 10:24 ` Kenneth Johansson
1 sibling, 0 replies; 3+ messages in thread
From: Kenneth Johansson @ 2001-11-14 10:24 UTC (permalink / raw)
To: Steven Mueller; +Cc: linuxppc-dev
Steven Mueller wrote:
>
> Hello,
>
> I'm interested in building a kernel with math emulation enabled for an
> embedded IBM ppc 405. (It'd be nice to allow customers to run ppc
> apps on our cards without having to recompile them with soft float
> support.)
Yes it's nice. I'am running a full debian testing installation over nfsroot
on my cards.
> If anyone has already developed a solution for this, would you please
> consider posting the patch? Thank you!
Just remove the printing or uppgrade to the devel tree it could use some more
testing.
--
Kenneth Johansson
Ericsson Business Innovation AB Tel: +46 8 404 71 83
Viderögatan 3 Fax: +46 8 404 72 72
164 80 Stockholm kenneth.johansson@inn.ericsson.se
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-11-14 10:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-13 23:59 ppc 405 floating point math emulation Steven Mueller
2001-11-14 2:02 ` Dan Malek
2001-11-14 10:24 ` Kenneth Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).