* Emulating insns on Alpha
@ 2003-04-07 23:30 Måns Rullgård
0 siblings, 0 replies; 4+ messages in thread
From: Måns Rullgård @ 2003-04-07 23:30 UTC (permalink / raw)
To: linux-kernel
Are there any patches around that emulate the BWX instruction set on
older Alpha CPUs, or should I write it myself?
--
Måns Rullgård
mru@users.sf.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emulating insns on Alpha
2003-04-08 14:13 ` Måns Rullgård
@ 2003-04-08 15:19 ` Falk Hueffner
0 siblings, 0 replies; 4+ messages in thread
From: Falk Hueffner @ 2003-04-08 15:19 UTC (permalink / raw)
To: Måns Rullgård; +Cc: linux-kernel
On 8 Apr 2003, Måns Rullgård wrote:
> Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> writes:
> > > Are there any patches around that emulate the BWX instruction set on
> > > older Alpha CPUs, or should I write it myself?
> >
> > There's an ancient one at
> > http://www.alphalinux.org/archives/axp-list/October1999/0500.html,
> > although it's probably easier to write it from scratch. I'd write the
> > whole thing in C, the trap is already so expensive that it's of no use
> > trying to be clever when emulating the particular instructions (except
> > when you replace the instruction with a jump to a stub, which seems
> > somewhat hairy, but feasible).
>
> If you think that's hairy, take a look at this:
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/tc2/tc2/include/Attic/tc2_autoload.h?rev=1.1.2.5&only_with_tag=dev-0_4&content-type=text/vnd.viewcvs-markup
Well, it'd be a lot hairier, since you need PALcode support to free temp
registers (unless I'm missing something). And you need to check access
rights (or jump back to userspace temporarily).
By the way, mb doesn't ensure that the instruction fetcher sees the new
code, you need imb. And the ret will probably confuse the branch
prediction stack.
Falk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emulating insns on Alpha
2003-04-08 3:34 Falk Hueffner
@ 2003-04-08 14:13 ` Måns Rullgård
2003-04-08 15:19 ` Falk Hueffner
0 siblings, 1 reply; 4+ messages in thread
From: Måns Rullgård @ 2003-04-08 14:13 UTC (permalink / raw)
To: Falk Hueffner; +Cc: linux-kernel, mru
Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> writes:
> > Are there any patches around that emulate the BWX instruction set on
> > older Alpha CPUs, or should I write it myself?
>
> There's an ancient one at
> http://www.alphalinux.org/archives/axp-list/October1999/0500.html,
> although it's probably easier to write it from scratch. I'd write the
> whole thing in C, the trap is already so expensive that it's of no use
> trying to be clever when emulating the particular instructions (except
> when you replace the instruction with a jump to a stub, which seems
> somewhat hairy, but feasible).
If you think that's hairy, take a look at this:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/tc2/tc2/include/Attic/tc2_autoload.h?rev=1.1.2.5&only_with_tag=dev-0_4&content-type=text/vnd.viewcvs-markup
--
Måns Rullgård
mru@users.sf.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emulating insns on Alpha
@ 2003-04-08 3:34 Falk Hueffner
2003-04-08 14:13 ` Måns Rullgård
0 siblings, 1 reply; 4+ messages in thread
From: Falk Hueffner @ 2003-04-08 3:34 UTC (permalink / raw)
To: linux-kernel; +Cc: mru
> Are there any patches around that emulate the BWX instruction set on
> older Alpha CPUs, or should I write it myself?
There's an ancient one at
http://www.alphalinux.org/archives/axp-list/October1999/0500.html,
although it's probably easier to write it from scratch. I'd write the
whole thing in C, the trap is already so expensive that it's of no use
trying to be clever when emulating the particular instructions (except
when you replace the instruction with a jump to a stub, which seems
somewhat hairy, but feasible).
--
Falk
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-08 15:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-07 23:30 Emulating insns on Alpha Måns Rullgård
2003-04-08 3:34 Falk Hueffner
2003-04-08 14:13 ` Måns Rullgård
2003-04-08 15:19 ` Falk Hueffner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®