From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,d7ad43544e76fa40 X-Google-Attributes: gid111c93,public From: Dirk Grunwald Subject: Re: 21264-specific programming hints Date: 1998/12/15 Message-ID: #1/1 X-Deja-AN: 422745043 References: <755qsk$me5@src-news.pa.dec.com> Organization: University of Colorado Newsgroups: comp.os.linux.alpha 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.