From: Daniel Potts <danielp@cse.unsw.edu.au>
To: Richard Henderson <rth@twiddle.net>
Cc: axp-list@redhat.com
Subject: Re: patch_v3: emulating missing instructions on Alpha
Date: Sun, 24 Oct 1999 10:28:39 +1000 (EST) [thread overview]
Message-ID: <Pine.OSF.3.95.991024101932.14626A-100000@paulaner.disy.cse.unsw.EDU.AU> (raw)
In-Reply-To: <19991023135544.B15599@twiddle.net>
On Sat, 23 Oct 1999, Richard Henderson wrote:
> On Fri, Oct 22, 1999 at 02:23:22AM +1000, Luke Deller wrote:
> > + srl $0,LOG2_TASKSIZE,$5 /* if addr is not in userland, */
> > + cmovne $5,$31,$0 /* then force a segfault by putting addr=0 */
> > + ldq_u $3,0($0)
> > + ldq_u $5,1($0)
>
> This is not sufficient to be safe. Examine the extended
> measures taken by the uaccess.h code.
ok
> I know you spent a lot of time writing this in assembly,
And fun.. we are meant to be completing theses.
> but I'd feel more comfortable if this were in C hanging
> out with the existing opDEC code in do_entIF. There won't
> be _that_ much of a speed hit doing things that way. You
> get to resuse much of the entArith_User code.
We did this originally, but there is a noticable speedup the way
we do it now. The main aim was to reduce the amount of loads and stores.
This is a better solution, but on something that has compiled byte
operations in, they are too frequent to go unnoticed speedwise.
> DU has a defined interface through setsysinfo to turn this stuff
> on and off -- use that and you don't have to conditionally
> compile the code. If you don't have access to the appropriate
> DU headers, I can dig them up at work later.
Thats cool.
next prev parent reply other threads:[~1999-10-24 0:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-18 14:46 patch_v2: (on Alpha) emulating missing instructions Robert Harley
1999-10-18 15:31 ` Phil Carmody
1999-10-23 20:39 ` Richard Henderson
1999-10-21 16:23 ` patch_v3: emulating missing instructions on Alpha Luke Deller
1999-10-23 20:55 ` Richard Henderson
1999-10-24 0:28 ` Daniel Potts [this message]
1999-10-25 1:22 ` Luke Deller
1999-10-28 23:34 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1999-01-13 14:10 Alpha 21264 Andy Almond
1999-01-13 16:36 ` Jeff Sturm
1999-01-14 6:50 ` Richard Henderson
1999-01-12 3:55 rpcc Christoph Dworzak
1999-01-12 3:20 ` rpcc Peter Petrakis
1999-01-12 4:59 ` rpcc Richard Henderson
[not found] ` <rth@twiddle.net>
1999-01-12 16:59 ` rpcc Christoph Dworzak
1999-01-12 19:27 ` rpcc Richard Henderson
1999-01-12 21:06 ` rpcc Wes Bauske
1999-01-13 2:16 ` rpcc Richard Henderson
1999-01-14 16:17 ` Alpha 21264 Christoph Dworzak
1999-01-14 15:46 ` Greg Lindahl
1999-01-14 17:27 ` Richard Henderson
1999-10-24 15:04 ` patch_v2: (on Alpha) emulating missing instructions Christoph Dworzak
1999-10-25 9:47 ` Phil Carmody
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox