From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,be87f30ddabfc99a,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-02-09 09:18:58 PST Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!hri.com!noc.near.net!news.cs.brandeis.edu!chaos.cs.brandeis.edu!dsmith From: dsmith@chaos.cs.brandeis.edu (Donald A. Smith) Newsgroups: comp.sys.dec Subject: Rationale behind Alpha chip's branch prediction logic Message-ID: <1993Feb9.171858.10058@news.cs.brandeis.edu> Date: 9 Feb 93 17:18:58 GMT Sender: news@news.cs.brandeis.edu (USENET News System) Organization: Brandeis University Can someone familiar with the Alpha instruction set please explain to me the precise rationale behind the design of Alpha's branch prediction mechanism? The Alpha chip maintains a stack (cache) of subroutine return addresses. Several of the jump instructions contain a "hint" field that can be used to tell the prefetch logic that the jump is actually a procedure return. Likewise, the displacement field can contain the lower 16 or so bits of the likely target of the jump. Yet the target is always contained in a register specified in the instruction. So why during prefetch doesn't the instruction decoder just look in the specified register? Is it because the contents of the register might change? Does the benefit come from avoiding the cost of accessing the register? Don (dsmith@chaos.cs.brandeis.edu)