From: Leif Lindholm <Leif.Lindholm@uab.ericsson.se>
To: linuxppc-dev <linuxppc-dev@lists.linuxppc.org>
Subject: [PATCH] Softemu 8xx implementation of LFS
Date: Tue, 11 May 1999 14:37:58 +0200 [thread overview]
Message-ID: <373824A6.26FDBA2C@uab.ericsson.se> (raw)
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. ]]
next reply other threads:[~1999-05-11 12:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-11 12:37 Leif Lindholm [this message]
1999-05-11 17:21 ` [PATCH] Softemu 8xx implementation of LFS Cort Dougan
1999-05-12 10:29 ` Softemu 8xx implementation of LFS -> library Leif Lindholm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=373824A6.26FDBA2C@uab.ericsson.se \
--to=leif.lindholm@uab.ericsson.se \
--cc=linuxppc-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).