Here is a better patch for the emulation code of some missing alpha instructions. This time the code should be secure ;) Also I've added a description to Documentation/Configure.help - Luke & Dan On Fri, 15 Oct 1999, Luke Deller wrote: > 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 so > contained instructions not supported by our CPU. > > So we have patched the linux kernel to emulate the instructions we needed. > These instructions are: > - byte/word load/store instructions (ldbu,stb,ldwu,stw) > - some multimedia instructions (minsw, maxsw, minuw, maxuw, minsb, maxsb, > minub, maxub) > > We have tried to make the emulation fairly fast - we have added it as some > assembly language code to the "illegal instruction exception" kernel entry > 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). > > We put an option for enabling it in the "Kernel Hacking" section of the > configuration. > > The patch is applied to kernel version 2.2.11 > (Loki say not to use 2.2.12 for Civilization CTP) > > 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. > > Hope this is useful to somebody, > > Luke Deller & Daniel Potts. > > -------------------------------------------------------------------------- > Luke Deller luked@cse.unsw.edu.au > _--_|\ Computer Engineering student > / \ School of Computer Science and Engineering ? ? ? ? > \_.--._* The University of New South Wales ~~^^~ > v Sydney, NSW 2052 AUSTRALIA o o > -------------------------------------------------------ooO--(_)--Ooo------ > -------------------------------------------------------------------------- Luke Deller luked@cse.unsw.edu.au _--_|\ Computer Engineering student / \ School of Computer Science and Engineering ? ? ? ? \_.--._* The University of New South Wales ~~^^~ v Sydney, NSW 2052 AUSTRALIA o o -------------------------------------------------------ooO--(_)--Ooo------