* [PATCH] Softemu 8xx implementation of LFS
@ 1999-05-11 12:37 Leif Lindholm
1999-05-11 17:21 ` Cort Dougan
0 siblings, 1 reply; 3+ messages in thread
From: Leif Lindholm @ 1999-05-11 12:37 UTC (permalink / raw)
To: linuxppc-dev
Hello
I had some trouble with softemu failures for LFS, so I implemented it
(well, actually stole Corts code for LFD and changed it to float :). In
case someone else wants it, there is a patch below (against
embedded-2.2.5 kernel).
Please correct me if I messed up (first dabbling in softemu), but it
seems to be working.
regards
/
Leif
--- linux/arch/ppc/kernel/softemu8xx.c.old Fri Apr 9 06:28:20 1999
+++ linux/arch/ppc/kernel/softemu8xx.c Tue May 11 14:20:56 1999
@@ -34,6 +34,7 @@
/* Eventually we may need a look-up table, but this works for now.
*/
+#define LFS 48
#define LFD 50
#define LFDU 51
#define STFD 54
@@ -86,6 +87,12 @@
else
regs->gpr[idxreg] = (uint)ea;
break;
+ case LFS:
+ sdisp = (instword & 0xffff);
+ ea = (uint *)(regs->gpr[idxreg] + sdisp);
+ if (copy_from_user(ip, ea, sizeof(float)))
+ retval = EFAULT;
+ break;
case STFD:
/* this is a 16 bit quantity that is sign extended
* so use a signed short here -- Cort
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Softemu 8xx implementation of LFS
1999-05-11 12:37 [PATCH] Softemu 8xx implementation of LFS Leif Lindholm
@ 1999-05-11 17:21 ` Cort Dougan
1999-05-12 10:29 ` Softemu 8xx implementation of LFS -> library Leif Lindholm
0 siblings, 1 reply; 3+ messages in thread
From: Cort Dougan @ 1999-05-11 17:21 UTC (permalink / raw)
To: Leif Lindholm; +Cc: linuxppc-dev
Looks good. I'll merge it in.
There's a soft floating-point emulation library floating around if you need
more complete support.
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Softemu 8xx implementation of LFS -> library
1999-05-11 17:21 ` Cort Dougan
@ 1999-05-12 10:29 ` Leif Lindholm
0 siblings, 0 replies; 3+ messages in thread
From: Leif Lindholm @ 1999-05-12 10:29 UTC (permalink / raw)
Cc: linuxppc-dev
Cort Dougan wrote:
> There's a soft floating-point emulation library floating around if you need
> more complete support.
Sounds nice.
Does anyone have an URL?
/
Leif
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-05-12 10:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-11 12:37 [PATCH] Softemu 8xx implementation of LFS Leif Lindholm
1999-05-11 17:21 ` Cort Dougan
1999-05-12 10:29 ` Softemu 8xx implementation of LFS -> library Leif Lindholm
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).