1// Copyright (c) 2011-2016 ARM Limited 2// All rights reserved 3// 4// The license below extends only to copyright in the software and shall 5// not be construed as granting a license to any other intellectual 6// property including but not limited to intellectual property relating 7// to a hardware implementation of the functionality of the software 8// licensed hereunder. You may use the software subject to the license --- 1988 unchanged lines hidden (view full) --- 1997output decoder {{ 1998namespace Aarch64 1999{ 2000 StaticInstPtr 2001 decodeGem5Ops(ExtMachInst machInst) 2002 { 2003 const uint32_t m5func = bits(machInst, 23, 16); 2004 switch (m5func) { |
2005 case M5OP_ARM: return new Arm(machInst); 2006 case M5OP_QUIESCE: return new Quiesce(machInst); 2007 case M5OP_QUIESCE_NS: return new QuiesceNs64(machInst); 2008 case M5OP_QUIESCE_CYCLE: return new QuiesceCycles64(machInst); 2009 case M5OP_QUIESCE_TIME: return new QuiesceTime64(machInst); 2010 case M5OP_RPNS: return new Rpns64(machInst); 2011 case M5OP_WAKE_CPU: return new WakeCPU64(machInst); 2012 case M5OP_DEPRECATED1: return new Deprecated_ivlb(machInst); 2013 case M5OP_DEPRECATED2: return new Deprecated_ivle(machInst); 2014 case M5OP_DEPRECATED3: return new Deprecated_exit (machInst); 2015 case M5OP_EXIT: return new M5exit64(machInst); 2016 case M5OP_FAIL: return new M5fail64(machInst); 2017 case M5OP_LOAD_SYMBOL: return new Loadsymbol(machInst); 2018 case M5OP_INIT_PARAM: return new Initparam64(machInst); 2019 case M5OP_RESET_STATS: return new Resetstats64(machInst); 2020 case M5OP_DUMP_STATS: return new Dumpstats64(machInst); 2021 case M5OP_DUMP_RESET_STATS: return new Dumpresetstats64(machInst); 2022 case M5OP_CHECKPOINT: return new M5checkpoint64(machInst); 2023 case M5OP_WRITE_FILE: return new M5writefile64(machInst); 2024 case M5OP_READ_FILE: return new M5readfile64(machInst); 2025 case M5OP_DEBUG_BREAK: return new M5break(machInst); 2026 case M5OP_SWITCH_CPU: return new M5switchcpu(machInst); 2027 case M5OP_ADD_SYMBOL: return new M5addsymbol64(machInst); 2028 case M5OP_PANIC: return new M5panic(machInst); 2029 case M5OP_WORK_BEGIN: return new M5workbegin64(machInst); 2030 case M5OP_WORK_END: return new M5workend64(machInst); |
2031 default: return new Unknown64(machInst); 2032 } 2033 } 2034} 2035}}; 2036 2037def format Aarch64() {{ 2038 decode_block = ''' --- 30 unchanged lines hidden --- |