At 17:54 -0600 on 10/09/2010, Paul Gilmartin wrote about Re: TRTR:
On Oct 9, 2010, at 15:36, Robert A. Rosenberg wrote:
The solution is to dual fork the code (and if you use it in more than
one location in the program, use a macro to expand the code). At
start-up/housekeeping time, check for extended-translation facility 3
(I think there is a CVT flag for it) and set your own flag. Now just
test your flag and either use the TRTR or CLC path.
How much of the benefit of TRTR is absorbed by the test, which
may break pipelining?
The test is followed by a BC (followed by the TRTR). Pipelining
assumes the branch will not be taken so has no effect unless the
machine does not support TRTR. The test is a simple CLI so I do not
think the cache will get flushed to allow it to be issued.