regredir.cc revision 6332:2c3e2326a3c3
15680Sgblack@eecs.umich.edu/* 25680Sgblack@eecs.umich.edu * Copyright (c) 2003-2009 The Regents of The University of Michigan 35680Sgblack@eecs.umich.edu * All rights reserved. 45680Sgblack@eecs.umich.edu * 55680Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without 65680Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are 75680Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright 85680Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer; 95680Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright 105680Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the 115680Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution; 125680Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its 135680Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from 145680Sgblack@eecs.umich.edu * this software without specific prior written permission. 155680Sgblack@eecs.umich.edu * 165680Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 175680Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 185680Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 195680Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 205680Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 215680Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 225680Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 235680Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 245680Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 255680Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 265680Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 275680Sgblack@eecs.umich.edu * 285680Sgblack@eecs.umich.edu * Authors: Steve Reinhardt 295680Sgblack@eecs.umich.edu * Gabe Black 305680Sgblack@eecs.umich.edu * Kevin Lim 315680Sgblack@eecs.umich.edu */ 325680Sgblack@eecs.umich.edu 335680Sgblack@eecs.umich.edu#include "arch/alpha/regredir.hh" 345680Sgblack@eecs.umich.edu#include "config/full_system.hh" 355680Sgblack@eecs.umich.edu 365680Sgblack@eecs.umich.edunamespace AlphaISA { 375680Sgblack@eecs.umich.edu 385680Sgblack@eecs.umich.edu#if FULL_SYSTEM 395680Sgblack@eecs.umich.educonst int reg_redir[NumIntRegs] = { 405680Sgblack@eecs.umich.edu /* 0 */ 0, 1, 2, 3, 4, 5, 6, 7, 415680Sgblack@eecs.umich.edu /* 8 */ 32, 33, 34, 35, 36, 37, 38, 15, 425680Sgblack@eecs.umich.edu /* 16 */ 16, 17, 18, 19, 20, 21, 22, 23, 435680Sgblack@eecs.umich.edu /* 24 */ 24, 39, 26, 27, 28, 29, 30, 31 }; 445680Sgblack@eecs.umich.edu#else 455680Sgblack@eecs.umich.educonst int reg_redir[NumIntRegs] = { 465680Sgblack@eecs.umich.edu /* 0 */ 0, 1, 2, 3, 4, 5, 6, 7, 475680Sgblack@eecs.umich.edu /* 8 */ 8, 9, 10, 11, 12, 13, 14, 15, 485680Sgblack@eecs.umich.edu /* 16 */ 16, 17, 18, 19, 20, 21, 22, 23, 495680Sgblack@eecs.umich.edu /* 24 */ 24, 25, 26, 27, 28, 29, 30, 31 }; 505680Sgblack@eecs.umich.edu#endif 515680Sgblack@eecs.umich.edu 525680Sgblack@eecs.umich.edu} // namespace AlphaISA 535680Sgblack@eecs.umich.edu