13752Sgblack@eecs.umich.edu/* 23752Sgblack@eecs.umich.edu * Copyright (c) 2003-2005 The Regents of The University of Michigan 33752Sgblack@eecs.umich.edu * All rights reserved. 43752Sgblack@eecs.umich.edu * 53752Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without 63752Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are 73752Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright 83752Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer; 93752Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright 103752Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the 113752Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution; 123752Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its 133752Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from 143752Sgblack@eecs.umich.edu * this software without specific prior written permission. 153752Sgblack@eecs.umich.edu * 163752Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 173752Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 183752Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 193752Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 203752Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 213752Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 223752Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 233752Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 243752Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 253752Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 263752Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 273752Sgblack@eecs.umich.edu * 283752Sgblack@eecs.umich.edu * Authors: Gabe Black 293752Sgblack@eecs.umich.edu */ 303752Sgblack@eecs.umich.edu 313752Sgblack@eecs.umich.edu#ifndef __ARCH_SPARC_SPARC_TRAITS_HH__ 323752Sgblack@eecs.umich.edu#define __ARCH_SPARC_SPARC_TRAITS_HH__ 333752Sgblack@eecs.umich.edu 343752Sgblack@eecs.umich.edunamespace SparcISA 353752Sgblack@eecs.umich.edu{ 367741Sgblack@eecs.umich.edu// Max trap levels 377741Sgblack@eecs.umich.educonst int MaxPTL = 2; 387741Sgblack@eecs.umich.educonst int MaxTL = 6; 397741Sgblack@eecs.umich.educonst int MaxGL = 3; 407741Sgblack@eecs.umich.educonst int MaxPGL = 2; 413752Sgblack@eecs.umich.edu 427741Sgblack@eecs.umich.edu// Number of register windows, can legally be 3 to 32 437741Sgblack@eecs.umich.educonst int NWindows = 8; 447741Sgblack@eecs.umich.edu// const int NumMicroIntRegs = 1; 457741Sgblack@eecs.umich.educonst int NumMicroIntRegs = 9; 463752Sgblack@eecs.umich.edu 477741Sgblack@eecs.umich.edu// const int NumRegularIntRegs = MaxGL * 8 + NWindows * 16; 487741Sgblack@eecs.umich.edu// const int NumMicroIntRegs = 1; 497741Sgblack@eecs.umich.edu// const int NumIntRegs = NumRegularIntRegs + NumMicroIntRegs; 507741Sgblack@eecs.umich.educonst int NumFloatRegs = 64; 517741Sgblack@eecs.umich.educonst int NumFloatArchRegs = NumFloatRegs; 527741Sgblack@eecs.umich.edu// const int NumMiscRegs = 40; 533752Sgblack@eecs.umich.edu} 543752Sgblack@eecs.umich.edu 557741Sgblack@eecs.umich.edu#endif // __ARCH_SPARC_SPARC_TRAITS_HH__ 56