op_class.hh revision 7760
12SN/A/* 27760SGiacomo.Gabrielli@arm.com * Copyright (c) 2010 ARM Limited 37760SGiacomo.Gabrielli@arm.com * All rights reserved 47760SGiacomo.Gabrielli@arm.com * 57760SGiacomo.Gabrielli@arm.com * The license below extends only to copyright in the software and shall 67760SGiacomo.Gabrielli@arm.com * not be construed as granting a license to any other intellectual 77760SGiacomo.Gabrielli@arm.com * property including but not limited to intellectual property relating 87760SGiacomo.Gabrielli@arm.com * to a hardware implementation of the functionality of the software 97760SGiacomo.Gabrielli@arm.com * licensed hereunder. You may use the software subject to the license 107760SGiacomo.Gabrielli@arm.com * terms below provided that you ensure that this notice is replicated 117760SGiacomo.Gabrielli@arm.com * unmodified and in its entirety in all distributions of the software, 127760SGiacomo.Gabrielli@arm.com * modified or unmodified, in source code or in binary form. 137760SGiacomo.Gabrielli@arm.com * 141762SN/A * Copyright (c) 2003-2005 The Regents of The University of Michigan 152SN/A * All rights reserved. 162SN/A * 172SN/A * Redistribution and use in source and binary forms, with or without 182SN/A * modification, are permitted provided that the following conditions are 192SN/A * met: redistributions of source code must retain the above copyright 202SN/A * notice, this list of conditions and the following disclaimer; 212SN/A * redistributions in binary form must reproduce the above copyright 222SN/A * notice, this list of conditions and the following disclaimer in the 232SN/A * documentation and/or other materials provided with the distribution; 242SN/A * neither the name of the copyright holders nor the names of its 252SN/A * contributors may be used to endorse or promote products derived from 262SN/A * this software without specific prior written permission. 272SN/A * 282SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 292SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 302SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 312SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 322SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 332SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 342SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 352SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 362SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 372SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 382SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 392665Ssaidi@eecs.umich.edu * 404762Snate@binkert.org * Authors: Nathan Binkert 412SN/A */ 422SN/A 432410SN/A#ifndef __CPU__OP_CLASS_HH__ 442410SN/A#define __CPU__OP_CLASS_HH__ 452SN/A 464762Snate@binkert.org#include "enums/OpClass.hh" 474762Snate@binkert.org 484762Snate@binkert.org/* 494762Snate@binkert.org * Do a bunch of wonky stuff to maintain backward compatability so I 504762Snate@binkert.org * don't have to change code in a zillion places. 512SN/A */ 524762Snate@binkert.orgusing Enums::OpClass; 534762Snate@binkert.orgusing Enums::No_OpClass; 544762Snate@binkert.orgusing Enums::Num_OpClass; 552SN/A 564762Snate@binkert.orgconst OpClass IntAluOp = Enums::IntAlu; 574762Snate@binkert.orgconst OpClass IntMultOp = Enums::IntMult; 584762Snate@binkert.orgconst OpClass IntDivOp = Enums::IntDiv; 594762Snate@binkert.orgconst OpClass FloatAddOp = Enums::FloatAdd; 604762Snate@binkert.orgconst OpClass FloatCmpOp = Enums::FloatCmp; 614762Snate@binkert.orgconst OpClass FloatCvtOp = Enums::FloatCvt; 624762Snate@binkert.orgconst OpClass FloatMultOp = Enums::FloatMult; 634762Snate@binkert.orgconst OpClass FloatDivOp = Enums::FloatDiv; 644762Snate@binkert.orgconst OpClass FloatSqrtOp = Enums::FloatSqrt; 657760SGiacomo.Gabrielli@arm.comconst OpClass SimdAddOp = Enums::SimdAdd; 667760SGiacomo.Gabrielli@arm.comconst OpClass SimdAddAccOp = Enums::SimdAddAcc; 677760SGiacomo.Gabrielli@arm.comconst OpClass SimdAluOp = Enums::SimdAlu; 687760SGiacomo.Gabrielli@arm.comconst OpClass SimdCmpOp = Enums::SimdCmp; 697760SGiacomo.Gabrielli@arm.comconst OpClass SimdCvtOp = Enums::SimdCvt; 707760SGiacomo.Gabrielli@arm.comconst OpClass SimdMiscOp = Enums::SimdMisc; 717760SGiacomo.Gabrielli@arm.comconst OpClass SimdMultOp = Enums::SimdMult; 727760SGiacomo.Gabrielli@arm.comconst OpClass SimdMultAccOp = Enums::SimdMultAcc; 737760SGiacomo.Gabrielli@arm.comconst OpClass SimdShiftOp = Enums::SimdShift; 747760SGiacomo.Gabrielli@arm.comconst OpClass SimdShiftAccOp = Enums::SimdShiftAcc; 757760SGiacomo.Gabrielli@arm.comconst OpClass SimdSqrtOp = Enums::SimdSqrt; 767760SGiacomo.Gabrielli@arm.comconst OpClass SimdFloatAddOp = Enums::SimdFloatAdd; 777760SGiacomo.Gabrielli@arm.comconst OpClass SimdFloatAluOp = Enums::SimdFloatAlu; 787760SGiacomo.Gabrielli@arm.comconst OpClass SimdFloatCmpOp = Enums::SimdFloatCmp; 797760SGiacomo.Gabrielli@arm.comconst OpClass SimdFloatCvtOp = Enums::SimdFloatCvt; 807760SGiacomo.Gabrielli@arm.comconst OpClass SimdFloatDivOp = Enums::SimdFloatDiv; 817760SGiacomo.Gabrielli@arm.comconst OpClass SimdFloatMiscOp = Enums::SimdFloatMisc; 827760SGiacomo.Gabrielli@arm.comconst OpClass SimdFloatMultOp = Enums::SimdFloatMult; 837760SGiacomo.Gabrielli@arm.comconst OpClass SimdFloatMultAccOp = Enums::SimdFloatMultAcc; 847760SGiacomo.Gabrielli@arm.comconst OpClass SimdFloatSqrtOp = Enums::SimdFloatSqrt; 854762Snate@binkert.orgconst OpClass MemReadOp = Enums::MemRead; 864762Snate@binkert.orgconst OpClass MemWriteOp = Enums::MemWrite; 874762Snate@binkert.orgconst OpClass IprAccessOp = Enums::IprAccess; 884762Snate@binkert.orgconst OpClass InstPrefetchOp = Enums::InstPrefetch; 894762Snate@binkert.orgconst OpClass Num_OpClasses = Num_OpClass; 902SN/A 912410SN/A#endif // __CPU__OP_CLASS_HH__ 92