From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31221 invoked from network); 15 Oct 1999 10:55:48 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 15 Oct 1999 10:55:48 -0000 Received: from note.orchestra.cse.unsw.EDU.AU (note.orchestra.cse.unsw.EDU.AU [129.94.242.29]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id GAA03697 for ; Fri, 15 Oct 1999 06:55:46 -0400 Received: From paulaner With LocalMail ; Fri, 15 Oct 99 20:55:23 +1000 From: Daniel Potts To: "'axp-list@redhat.com'" Date: Fri, 15 Oct 1999 20:55:17 +1000 (EST) X-Sender: danielp@paulaner.disy.cse.unsw.EDU.AU Subject: RE: PATCH: (on Alpha) emulating missing instructions In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: QUOTED-PRINTABLE We decided not to change the PALcode for several reasons. The main one being that we would have to change it for various different PALcodes and it is something that shouldn't be there anyway. Further more this might result in having to change PALcode stored in BIOS if you dont use MILO for example.... list does on. Another important point, someone might want to manage this in userland so putting it in PALcode is a no no. The code is in an alpha specific portion of Linux, before the fp completion stuff. On Fri, 15 Oct 1999, [windows-1252] Lennart B=F6rjeson wrote: > Eminently done, but I was really under the impression that these exceptio= ns > should be handled by the PALcode (since it is really a general Alpha > problem, not Linux-specific)? Is this not so (i.e. are we missing some > PALcode update) or is it solved differently in different OSes? >=20 > -----Original Message----- > From: Luke Deller [mailto:luked@cse.unsw.edu.au] > Sent: Friday, October 15, 1999 11:39 AM > To: axp-list@redhat.com > Cc: axp-list@redhat.com; Daniel Paul Potts > Subject: PATCH: (on Alpha) emulating missing instructions >=20 >=20 > Daniel & I tried to run Loki's new beta version of Civilization Call to > Power for alpha linux on a multia (ev4 alpha). We got an illegal > instruction exception. We discovered that it was compiled for ev6, and s= o > contained instructions not supported by our CPU. >=20 > So we have patched the linux kernel to emulate the instructions we needed= =2E > These instructions are: > - byte/word load/store instructions (ldbu,stb,ldwu,stw) > - some multimedia instructions (minsw, maxsw, minuw, maxuw, minsb, maxsb, > minub, maxub) >=20 > We have tried to make the emulation fairly fast - we have added it as som= e > assembly language code to the "illegal instruction exception" kernel entr= y > point in arch/alpha/kernel/entry.S:entIF. (Of course it's still faster > to avoid emulation and use a binary compiled for your generation of alpha > cpu). >=20 > We put an option for enabling it in the "Kernel Hacking" section of the > configuration. >=20 > The patch is applied to kernel version 2.2.11 > (Loki say not to use 2.2.12 for Civilization CTP)=20 >=20 > We only wrote enough emulation code to get CivilizationCTP to run .. in = the > future it would be cool to see emulation of a more complete set of > instructions in the kernel. >=20 > Hope this is useful to somebody, >=20 > Luke Deller & Daniel Potts. >=20 > -------------------------------------------------------------------------= - > Luke Deller luked@cse.unsw.edu.a= u > _--_|\ Computer Engineering student =20 > / \ School of Computer Science and Engineering ? ? ? ? = =20 > \_.--._* The University of New South Wales ~~^^~ =20 > v Sydney, NSW 2052 AUSTRALIA o o > -------------------------------------------------------ooO--(_)--Ooo-----= - >=20 > --=20 > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com >=20 -- Email: danielp@cse.unsw.edu.au Pager: danielp.sms@cse.unsw.edu.au http://www.cse.unsw.edu.au/~danielp -----> ^Switch