types.hh revision 2665:a124942bacb8
18840Sandreas.hansson@arm.com/*
28840Sandreas.hansson@arm.com * Copyright (c) 2003-2005 The Regents of The University of Michigan
38840Sandreas.hansson@arm.com * All rights reserved.
48840Sandreas.hansson@arm.com *
58840Sandreas.hansson@arm.com * Redistribution and use in source and binary forms, with or without
68840Sandreas.hansson@arm.com * modification, are permitted provided that the following conditions are
78840Sandreas.hansson@arm.com * met: redistributions of source code must retain the above copyright
88840Sandreas.hansson@arm.com * notice, this list of conditions and the following disclaimer;
98840Sandreas.hansson@arm.com * redistributions in binary form must reproduce the above copyright
108840Sandreas.hansson@arm.com * notice, this list of conditions and the following disclaimer in the
118840Sandreas.hansson@arm.com * documentation and/or other materials provided with the distribution;
128840Sandreas.hansson@arm.com * neither the name of the copyright holders nor the names of its
132740SN/A * contributors may be used to endorse or promote products derived from
147534Ssteve.reinhardt@amd.com * this software without specific prior written permission.
151046SN/A *
161046SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
171046SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
181046SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
191046SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
201046SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
211046SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
221046SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
231046SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
241046SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
251046SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
261046SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
271046SN/A *
281046SN/A * Authors: Nathan Binkert
291046SN/A *          Steve Reinhardt
301046SN/A */
311046SN/A
321046SN/A#ifndef __ARCH_ALPHA_TYPES_HH__
331046SN/A#define __ARCH_ALPHA_TYPES_HH__
341046SN/A
351046SN/A#include "sim/host.hh"
361046SN/A
371046SN/Anamespace AlphaISA
381046SN/A{
392665SN/A
402665SN/A    typedef uint32_t MachInst;
412665SN/A    typedef uint64_t ExtMachInst;
428840Sandreas.hansson@arm.com    typedef uint8_t  RegIndex;
431046SN/A
445766Snate@binkert.org    typedef uint64_t IntReg;
458331Ssteve.reinhardt@amd.com
461438SN/A    // floating point register file entry type
474762Snate@binkert.org    typedef double FloatReg;
486654Snate@binkert.org    typedef uint64_t FloatRegBits;
493102Sstever@eecs.umich.edu
503102Sstever@eecs.umich.edu    // control register file contents
513102Sstever@eecs.umich.edu    typedef uint64_t MiscReg;
523102Sstever@eecs.umich.edu
536654Snate@binkert.org    typedef union {
543102Sstever@eecs.umich.edu        IntReg  intreg;
553102Sstever@eecs.umich.edu        FloatReg   fpreg;
567528Ssteve.reinhardt@amd.com        MiscReg ctrlreg;
578839Sandreas.hansson@arm.com    } AnyReg;
583102Sstever@eecs.umich.edu
596654Snate@binkert.org    enum annotes {
606654Snate@binkert.org        ANNOTE_NONE = 0,
61679SN/A        // An impossible number for instruction annotations
62679SN/A        ITOUCH_ANNOTE = 0xffffffff,
63679SN/A    };
64679SN/A
65679SN/A} // namespace AlphaISA
66679SN/A
671692SN/A#endif
68679SN/A