sparc_traits.hh revision 3752
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{
363752Sgblack@eecs.umich.edu    // Max trap levels
373752Sgblack@eecs.umich.edu    const int MaxPTL = 2;
383752Sgblack@eecs.umich.edu    const int MaxTL  = 6;
393752Sgblack@eecs.umich.edu    const int MaxGL  = 3;
403752Sgblack@eecs.umich.edu    const int MaxPGL = 2;
413752Sgblack@eecs.umich.edu
423752Sgblack@eecs.umich.edu    // Number of register windows, can legally be 3 to 32
433752Sgblack@eecs.umich.edu    const int NWindows = 8;
443752Sgblack@eecs.umich.edu    const int NumMicroIntRegs = 1;
453752Sgblack@eecs.umich.edu
463752Sgblack@eecs.umich.edu//    const int NumRegularIntRegs = MaxGL * 8 + NWindows * 16;
473752Sgblack@eecs.umich.edu//    const int NumMicroIntRegs = 1;
483752Sgblack@eecs.umich.edu//    const int NumIntRegs =
493752Sgblack@eecs.umich.edu//	NumRegularIntRegs +
503752Sgblack@eecs.umich.edu//	NumMicroIntRegs;
513752Sgblack@eecs.umich.edu//    const int NumFloatRegs = 64;
523752Sgblack@eecs.umich.edu//    const int NumMiscRegs = 40;
533752Sgblack@eecs.umich.edu}
543752Sgblack@eecs.umich.edu
553752Sgblack@eecs.umich.edu#endif // __ARCH_SPARC_ISA_TRAITS_HH__
56