aarch64.isa (11634:96dee874a9ba) | aarch64.isa (12159:c7e7ae57b977) |
---|---|
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) { | 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 0x00: return new Arm(machInst); 2006 case 0x01: return new Quiesce(machInst); 2007 case 0x02: return new QuiesceNs64(machInst); 2008 case 0x03: return new QuiesceCycles64(machInst); 2009 case 0x04: return new QuiesceTime64(machInst); 2010 case 0x07: return new Rpns64(machInst); 2011 case 0x09: return new WakeCPU64(machInst); 2012 case 0x10: return new Deprecated_ivlb(machInst); 2013 case 0x11: return new Deprecated_ivle(machInst); 2014 case 0x20: return new Deprecated_exit (machInst); 2015 case 0x21: return new M5exit64(machInst); 2016 case 0x22: return new M5fail64(machInst); 2017 case 0x31: return new Loadsymbol(machInst); 2018 case 0x30: return new Initparam64(machInst); 2019 case 0x40: return new Resetstats64(machInst); 2020 case 0x41: return new Dumpstats64(machInst); 2021 case 0x42: return new Dumpresetstats64(machInst); 2022 case 0x43: return new M5checkpoint64(machInst); 2023 case 0x4F: return new M5writefile64(machInst); 2024 case 0x50: return new M5readfile64(machInst); 2025 case 0x51: return new M5break(machInst); 2026 case 0x52: return new M5switchcpu(machInst); 2027 case 0x53: return new M5addsymbol64(machInst); 2028 case 0x54: return new M5panic(machInst); 2029 case 0x5a: return new M5workbegin64(machInst); 2030 case 0x5b: return new M5workend64(machInst); | 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 --- | 2031 default: return new Unknown64(machInst); 2032 } 2033 } 2034} 2035}}; 2036 2037def format Aarch64() {{ 2038 decode_block = ''' --- 30 unchanged lines hidden --- |