types.hh revision 6215
12972Sgblack@eecs.umich.edu/*
22972Sgblack@eecs.umich.edu * Copyright (c) 2003-2005 The Regents of The University of Michigan
32972Sgblack@eecs.umich.edu * All rights reserved.
42972Sgblack@eecs.umich.edu *
52972Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without
62972Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are
72972Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright
82972Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer;
92972Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright
102972Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the
112972Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution;
122972Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its
132972Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from
142972Sgblack@eecs.umich.edu * this software without specific prior written permission.
152972Sgblack@eecs.umich.edu *
162972Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172972Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182972Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192972Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202972Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212972Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222972Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232972Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242972Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252972Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262972Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272972Sgblack@eecs.umich.edu *
282972Sgblack@eecs.umich.edu * Authors: Gabe Black
292972Sgblack@eecs.umich.edu */
302972Sgblack@eecs.umich.edu
312972Sgblack@eecs.umich.edu#ifndef __ARCH_SPARC_TYPES_HH__
322972Sgblack@eecs.umich.edu#define __ARCH_SPARC_TYPES_HH__
332972Sgblack@eecs.umich.edu
344040Ssaidi@eecs.umich.edu#include "base/bigint.hh"
356215Snate@binkert.org#include "base/types.hh"
362972Sgblack@eecs.umich.edu
372972Sgblack@eecs.umich.edunamespace SparcISA
382972Sgblack@eecs.umich.edu{
392972Sgblack@eecs.umich.edu    typedef uint32_t MachInst;
402972Sgblack@eecs.umich.edu    typedef uint64_t ExtMachInst;
412972Sgblack@eecs.umich.edu
422972Sgblack@eecs.umich.edu    typedef uint64_t IntReg;
434040Ssaidi@eecs.umich.edu    typedef Twin64_t LargestRead;
442972Sgblack@eecs.umich.edu    typedef uint64_t MiscReg;
452972Sgblack@eecs.umich.edu    typedef double FloatReg;
462972Sgblack@eecs.umich.edu    typedef uint64_t FloatRegBits;
472972Sgblack@eecs.umich.edu    typedef union
482972Sgblack@eecs.umich.edu    {
492972Sgblack@eecs.umich.edu        IntReg intReg;
502972Sgblack@eecs.umich.edu        FloatReg fpreg;
512972Sgblack@eecs.umich.edu        MiscReg ctrlreg;
522972Sgblack@eecs.umich.edu    } AnyReg;
532972Sgblack@eecs.umich.edu
544635Sgblack@eecs.umich.edu    typedef uint16_t RegIndex;
555251Sksewell@umich.edu
565251Sksewell@umich.edu    struct CoreSpecific {
575251Sksewell@umich.edu        int core_type;
585251Sksewell@umich.edu    };
592972Sgblack@eecs.umich.edu}
602972Sgblack@eecs.umich.edu
612972Sgblack@eecs.umich.edu#endif
62