reg_class.cc revision 12104
19913Ssteve.reinhardt@amd.com/*
29913Ssteve.reinhardt@amd.com * Copyright (c) 2013 Advanced Micro Devices, Inc.
39913Ssteve.reinhardt@amd.com * All rights reserved
49913Ssteve.reinhardt@amd.com *
59913Ssteve.reinhardt@amd.com * Redistribution and use in source and binary forms, with or without
69913Ssteve.reinhardt@amd.com * modification, are permitted provided that the following conditions are
79913Ssteve.reinhardt@amd.com * met: redistributions of source code must retain the above copyright
89913Ssteve.reinhardt@amd.com * notice, this list of conditions and the following disclaimer;
99913Ssteve.reinhardt@amd.com * redistributions in binary form must reproduce the above copyright
109913Ssteve.reinhardt@amd.com * notice, this list of conditions and the following disclaimer in the
119913Ssteve.reinhardt@amd.com * documentation and/or other materials provided with the distribution;
129913Ssteve.reinhardt@amd.com * neither the name of the copyright holders nor the names of its
139913Ssteve.reinhardt@amd.com * contributors may be used to endorse or promote products derived from
149913Ssteve.reinhardt@amd.com * this software without specific prior written permission.
159913Ssteve.reinhardt@amd.com *
169913Ssteve.reinhardt@amd.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
179913Ssteve.reinhardt@amd.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
189913Ssteve.reinhardt@amd.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
199913Ssteve.reinhardt@amd.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
209913Ssteve.reinhardt@amd.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
219913Ssteve.reinhardt@amd.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
229913Ssteve.reinhardt@amd.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
239913Ssteve.reinhardt@amd.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
249913Ssteve.reinhardt@amd.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
259913Ssteve.reinhardt@amd.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
269913Ssteve.reinhardt@amd.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
279913Ssteve.reinhardt@amd.com *
289913Ssteve.reinhardt@amd.com * Authors: Steve Reinhardt
299913Ssteve.reinhardt@amd.com */
309913Ssteve.reinhardt@amd.com
319913Ssteve.reinhardt@amd.com#include "cpu/reg_class.hh"
329913Ssteve.reinhardt@amd.com
339913Ssteve.reinhardt@amd.comconst char *RegClassStrings[] = {
349913Ssteve.reinhardt@amd.com    "IntRegClass",
359913Ssteve.reinhardt@amd.com    "FloatRegClass",
369920Syasuko.eckert@amd.com    "CCRegClass",
379913Ssteve.reinhardt@amd.com    "MiscRegClass"
389913Ssteve.reinhardt@amd.com};
3912104Snathanael.premillieu@arm.com
4012104Snathanael.premillieu@arm.comconst RegId RegId::zeroReg = RegId(IntRegClass, TheISA::ZeroReg);
41