m5ops.isa revision 12159:c7e7ae57b977
16019Shines@cs.fsu.edu// 26019Shines@cs.fsu.edu// Copyright (c) 2010 ARM Limited 310037SARM gem5 Developers// All rights reserved 47100Sgblack@eecs.umich.edu// 57100Sgblack@eecs.umich.edu// The license below extends only to copyright in the software and shall 67100Sgblack@eecs.umich.edu// not be construed as granting a license to any other intellectual 77100Sgblack@eecs.umich.edu// property including but not limited to intellectual property relating 87100Sgblack@eecs.umich.edu// to a hardware implementation of the functionality of the software 97100Sgblack@eecs.umich.edu// licensed hereunder. You may use the software subject to the license 107100Sgblack@eecs.umich.edu// terms below provided that you ensure that this notice is replicated 117100Sgblack@eecs.umich.edu// unmodified and in its entirety in all distributions of the software, 127100Sgblack@eecs.umich.edu// modified or unmodified, in source code or in binary form. 137100Sgblack@eecs.umich.edu// 147100Sgblack@eecs.umich.edu// Redistribution and use in source and binary forms, with or without 156019Shines@cs.fsu.edu// modification, are permitted provided that the following conditions are 166019Shines@cs.fsu.edu// met: redistributions of source code must retain the above copyright 176019Shines@cs.fsu.edu// notice, this list of conditions and the following disclaimer; 186019Shines@cs.fsu.edu// redistributions in binary form must reproduce the above copyright 196019Shines@cs.fsu.edu// notice, this list of conditions and the following disclaimer in the 206019Shines@cs.fsu.edu// documentation and/or other materials provided with the distribution; 216019Shines@cs.fsu.edu// neither the name of the copyright holders nor the names of its 226019Shines@cs.fsu.edu// contributors may be used to endorse or promote products derived from 236019Shines@cs.fsu.edu// this software without specific prior written permission. 246019Shines@cs.fsu.edu// 256019Shines@cs.fsu.edu// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 266019Shines@cs.fsu.edu// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 276019Shines@cs.fsu.edu// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 286019Shines@cs.fsu.edu// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 296019Shines@cs.fsu.edu// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 306019Shines@cs.fsu.edu// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 316019Shines@cs.fsu.edu// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 326019Shines@cs.fsu.edu// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 336019Shines@cs.fsu.edu// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 346019Shines@cs.fsu.edu// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 356019Shines@cs.fsu.edu// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 366019Shines@cs.fsu.edu// 376019Shines@cs.fsu.edu// Authors: Gene Wu 386019Shines@cs.fsu.edu/// 396019Shines@cs.fsu.edu 406019Shines@cs.fsu.edudef format M5ops() {{ 416019Shines@cs.fsu.edu decode_block = ''' 426757SAli.Saidi@ARM.com { 436019Shines@cs.fsu.edu const uint32_t m5func = bits(machInst, 23, 16); 446019Shines@cs.fsu.edu switch(m5func) { 456019Shines@cs.fsu.edu case M5OP_ARM: return new Arm(machInst); 466019Shines@cs.fsu.edu case M5OP_QUIESCE: return new Quiesce(machInst); 476019Shines@cs.fsu.edu case M5OP_QUIESCE_NS: return new QuiesceNs(machInst); 486019Shines@cs.fsu.edu case M5OP_QUIESCE_CYCLE: return new QuiesceCycles(machInst); 496019Shines@cs.fsu.edu case M5OP_QUIESCE_TIME: return new QuiesceTime(machInst); 509022Sgblack@eecs.umich.edu case M5OP_RPNS: return new Rpns(machInst); 516019Shines@cs.fsu.edu case M5OP_WAKE_CPU: return new WakeCPU(machInst); 5210037SARM gem5 Developers case M5OP_DEPRECATED1: return new Deprecated_ivlb(machInst); 5310037SARM gem5 Developers case M5OP_DEPRECATED2: return new Deprecated_ivle(machInst); 547170Sgblack@eecs.umich.edu case M5OP_DEPRECATED3: return new Deprecated_exit (machInst); 556253Sgblack@eecs.umich.edu case M5OP_EXIT: return new M5exit(machInst); 5610037SARM gem5 Developers case M5OP_FAIL: return new M5fail(machInst); 577202Sgblack@eecs.umich.edu case M5OP_LOAD_SYMBOL: return new Loadsymbol(machInst); 5810037SARM gem5 Developers case M5OP_INIT_PARAM: return new Initparam(machInst); 596253Sgblack@eecs.umich.edu case M5OP_RESET_STATS: return new Resetstats(machInst); 6010611SAndreas.Sandberg@ARM.com case M5OP_DUMP_STATS: return new Dumpstats(machInst); 616253Sgblack@eecs.umich.edu case M5OP_DUMP_RESET_STATS: return new Dumpresetstats(machInst); 627396Sgblack@eecs.umich.edu case M5OP_CHECKPOINT: return new M5checkpoint(machInst); 6310037SARM gem5 Developers case M5OP_WRITE_FILE: return new M5writefile(machInst); 648745Sgblack@eecs.umich.edu case M5OP_READ_FILE: return new M5readfile(machInst); 657405SAli.Saidi@ARM.com case M5OP_DEBUG_BREAK: return new M5break(machInst); 6610461SAndreas.Sandberg@ARM.com case M5OP_SWITCH_CPU: return new M5switchcpu(machInst); 678782Sgblack@eecs.umich.edu case M5OP_ADD_SYMBOL: return new M5addsymbol(machInst); 688782Sgblack@eecs.umich.edu case M5OP_PANIC: return new M5panic(machInst); 698782Sgblack@eecs.umich.edu case M5OP_WORK_BEGIN: return new M5workbegin(machInst); 7010810Sbr@bsdpad.com case M5OP_WORK_END: return new M5workend(machInst); 7110810Sbr@bsdpad.com } 7210810Sbr@bsdpad.com } 737259Sgblack@eecs.umich.edu ''' 748757Sgblack@eecs.umich.edu}}; 7510461SAndreas.Sandberg@ARM.com