Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Dirk Grunwald <grunwald@foobar.cs.colorado.edu>
Subject: Re: 21264-specific programming hints
Date: 1998/12/15	[thread overview]
Message-ID: <qxp1zm0rb8o.fsf@foobar.cs.colorado.edu> (raw)
In-Reply-To: 755qsk$me5@src-news.pa.dec.com

gorton@liszt.amt.tay1.dec.com (Richard Gorton) writes:
> 
> 	Load-Load: I don't understand the circumstances under which this
> 		will occur particularly well, so I'm not going to attempt
> 		to describe how it can happen.
---

I believe that this related to the definition of the one of the
"memory litmus" tests, stating that stores to the same address much
issue in-order.  If you look in the Alpha architecture manual, there's
a section on litmus tests for memory like behavior. One litmus test
concerns ld-ld dependences, and this trap honors that. I've never
figured out why this litmus test exists.


> 	Load-Store: This is the situation in which one member of a
> 		load/store pair (to the same memory location) executes
> 		before the other member of the pair does.  For example,
> 			ldq	$0, 0($16)
> 			stq	$1, 0($17)
> 		If the STQ executes prior to the execution of the LDQ,
> 		and both the LDQ and STQ are pointing at the same address,
> 		this replay trap will occur, and the CPU is required to
> 		unwind its internal state to generate correct results.
---

FWIW, the '264 has a prediction mechanism to stall the store when it's
likely to conflict with a prior load (based on prior behavior). For
the SPEC benchmark suite and a non-Digital model of a more aggressive
8-order machine, the '264 mechanism is accurate ~90% of the time. The
precise mechanism is described in a paper that appeared at ICCD'98 in
Austin.

-- 
Dirk Grunwald                    Assoc. Prof, Univ. of Colorado at Boulder,
            Currently living at  DEC-WRL and having a darn good time of it.



      reply	other threads:[~1998-12-15  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-15  5:00 21264-specific programming hints Richard Gorton
1998-12-15  5:00 ` Dirk Grunwald [this message]
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