ccregs.hh revision 10338
16313Sgblack@eecs.umich.edu/* 210037SARM gem5 Developers * Copyright (c) 2014 ARM Limited 37093Sgblack@eecs.umich.edu * All rights reserved 47093Sgblack@eecs.umich.edu * 57093Sgblack@eecs.umich.edu * The license below extends only to copyright in the software and shall 67093Sgblack@eecs.umich.edu * not be construed as granting a license to any other intellectual 77093Sgblack@eecs.umich.edu * property including but not limited to intellectual property relating 87093Sgblack@eecs.umich.edu * to a hardware implementation of the functionality of the software 97093Sgblack@eecs.umich.edu * licensed hereunder. You may use the software subject to the license 107093Sgblack@eecs.umich.edu * terms below provided that you ensure that this notice is replicated 117093Sgblack@eecs.umich.edu * unmodified and in its entirety in all distributions of the software, 127093Sgblack@eecs.umich.edu * modified or unmodified, in source code or in binary form. 137093Sgblack@eecs.umich.edu * 146313Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without 156313Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are 166313Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright 176313Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer; 186313Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright 196313Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the 206313Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution; 216313Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its 226313Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from 236313Sgblack@eecs.umich.edu * this software without specific prior written permission. 246313Sgblack@eecs.umich.edu * 256313Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 266313Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 276313Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 286313Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 296313Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 306313Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 316313Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 326313Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 336313Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 346313Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 356313Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 366313Sgblack@eecs.umich.edu * 376313Sgblack@eecs.umich.edu * Authors: Curtis Dunham 386313Sgblack@eecs.umich.edu */ 396313Sgblack@eecs.umich.edu#ifndef __ARCH_ARM_CCREGS_HH__ 406313Sgblack@eecs.umich.edu#define __ARCH_ARM_CCREGS_HH__ 416313Sgblack@eecs.umich.edu 426313Sgblack@eecs.umich.edunamespace ArmISA 436313Sgblack@eecs.umich.edu{ 447404SAli.Saidi@ARM.com 456313Sgblack@eecs.umich.eduenum ccRegIndex { 466333Sgblack@eecs.umich.edu CCREG_NZ, 4710037SARM gem5 Developers CCREG_C, 487404SAli.Saidi@ARM.com CCREG_V, 496313Sgblack@eecs.umich.edu CCREG_GE, 508232Snate@binkert.org CCREG_FP, 5110037SARM gem5 Developers CCREG_ZERO, 529384SAndreas.Sandberg@arm.com NUM_CCREGS 536313Sgblack@eecs.umich.edu}; 549384SAndreas.Sandberg@arm.com 556333Sgblack@eecs.umich.educonst char * const ccRegName[NUM_CCREGS] = { 566313Sgblack@eecs.umich.edu "nz", 576313Sgblack@eecs.umich.edu "c", 586313Sgblack@eecs.umich.edu "v", 596313Sgblack@eecs.umich.edu "ge", 606313Sgblack@eecs.umich.edu "fp", 6110037SARM gem5 Developers "zero" 6210037SARM gem5 Developers}; 6310037SARM gem5 Developers 6410037SARM gem5 Developersenum ConditionCode { 6510037SARM gem5 Developers COND_EQ = 0, 6610037SARM gem5 Developers COND_NE, // 1 6710037SARM gem5 Developers COND_CS, // 2 6810037SARM gem5 Developers COND_CC, // 3 6910037SARM gem5 Developers COND_MI, // 4 7010037SARM gem5 Developers COND_PL, // 5 7110037SARM gem5 Developers COND_VS, // 6 7210037SARM gem5 Developers COND_VC, // 7 7310037SARM gem5 Developers COND_HI, // 8 7410037SARM gem5 Developers COND_LS, // 9 7510037SARM gem5 Developers COND_GE, // 10 7610037SARM gem5 Developers COND_LT, // 11 7710037SARM gem5 Developers COND_GT, // 12 7810037SARM gem5 Developers COND_LE, // 13 7910037SARM gem5 Developers COND_AL, // 14 8010037SARM gem5 Developers COND_UC // 15 8110037SARM gem5 Developers}; 8210037SARM gem5 Developers 8310037SARM gem5 Developers} 8410037SARM gem5 Developers 8510037SARM gem5 Developers#endif // __ARCH_ARM_CCREGS_HH__ 8610037SARM gem5 Developers