regredir.cc revision 6332
11758SN/A/* 21762SN/A * Copyright (c) 2003-2009 The Regents of The University of Michigan 31758SN/A * All rights reserved. 41758SN/A * 51758SN/A * Redistribution and use in source and binary forms, with or without 61758SN/A * modification, are permitted provided that the following conditions are 71758SN/A * met: redistributions of source code must retain the above copyright 81758SN/A * notice, this list of conditions and the following disclaimer; 91758SN/A * redistributions in binary form must reproduce the above copyright 101758SN/A * notice, this list of conditions and the following disclaimer in the 111758SN/A * documentation and/or other materials provided with the distribution; 121758SN/A * neither the name of the copyright holders nor the names of its 131758SN/A * contributors may be used to endorse or promote products derived from 141758SN/A * this software without specific prior written permission. 151758SN/A * 161758SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 171758SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 181758SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 191758SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 201758SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 211758SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 221758SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 231758SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 241758SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 251758SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 261758SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272665Ssaidi@eecs.umich.edu * 282665Ssaidi@eecs.umich.edu * Authors: Steve Reinhardt 292665Ssaidi@eecs.umich.edu * Gabe Black 302665Ssaidi@eecs.umich.edu * Kevin Lim 311758SN/A */ 322SN/A 331147SN/A#include "arch/alpha/regredir.hh" 341147SN/A#include "config/full_system.hh" 352SN/A 361858SN/Anamespace AlphaISA { 372107SN/A 381858SN/A#if FULL_SYSTEM 395566Snate@binkert.orgconst int reg_redir[NumIntRegs] = { 402107SN/A /* 0 */ 0, 1, 2, 3, 4, 5, 6, 7, 411858SN/A /* 8 */ 32, 33, 34, 35, 36, 37, 38, 15, 421147SN/A /* 16 */ 16, 17, 18, 19, 20, 21, 22, 23, 43924SN/A /* 24 */ 24, 39, 26, 27, 28, 29, 30, 31 }; 441147SN/A#else 45924SN/Aconst int reg_redir[NumIntRegs] = { 46924SN/A /* 0 */ 0, 1, 2, 3, 4, 5, 6, 7, 471147SN/A /* 8 */ 8, 9, 10, 11, 12, 13, 14, 15, 481147SN/A /* 16 */ 16, 17, 18, 19, 20, 21, 22, 23, 491147SN/A /* 24 */ 24, 25, 26, 27, 28, 29, 30, 31 }; 501147SN/A#endif 511147SN/A 521147SN/A} // namespace AlphaISA 531147SN/A