operands.isa revision 12499
16019Shines@cs.fsu.edu// -*- mode:c++ -*- 212110SRekai.GonzalezAlberquilla@arm.com// Copyright (c) 2010-2014, 2016 ARM Limited 37091Sgblack@eecs.umich.edu// All rights reserved 47091Sgblack@eecs.umich.edu// 57091Sgblack@eecs.umich.edu// The license below extends only to copyright in the software and shall 67091Sgblack@eecs.umich.edu// not be construed as granting a license to any other intellectual 77091Sgblack@eecs.umich.edu// property including but not limited to intellectual property relating 87091Sgblack@eecs.umich.edu// to a hardware implementation of the functionality of the software 97091Sgblack@eecs.umich.edu// licensed hereunder. You may use the software subject to the license 107091Sgblack@eecs.umich.edu// terms below provided that you ensure that this notice is replicated 117091Sgblack@eecs.umich.edu// unmodified and in its entirety in all distributions of the software, 127091Sgblack@eecs.umich.edu// modified or unmodified, in source code or in binary form. 137091Sgblack@eecs.umich.edu// 146019Shines@cs.fsu.edu// Copyright (c) 2007-2008 The Florida State University 156019Shines@cs.fsu.edu// All rights reserved. 166019Shines@cs.fsu.edu// 176019Shines@cs.fsu.edu// Redistribution and use in source and binary forms, with or without 186019Shines@cs.fsu.edu// modification, are permitted provided that the following conditions are 196019Shines@cs.fsu.edu// met: redistributions of source code must retain the above copyright 206019Shines@cs.fsu.edu// notice, this list of conditions and the following disclaimer; 216019Shines@cs.fsu.edu// redistributions in binary form must reproduce the above copyright 226019Shines@cs.fsu.edu// notice, this list of conditions and the following disclaimer in the 236019Shines@cs.fsu.edu// documentation and/or other materials provided with the distribution; 246019Shines@cs.fsu.edu// neither the name of the copyright holders nor the names of its 256019Shines@cs.fsu.edu// contributors may be used to endorse or promote products derived from 266019Shines@cs.fsu.edu// this software without specific prior written permission. 276019Shines@cs.fsu.edu// 286019Shines@cs.fsu.edu// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 296019Shines@cs.fsu.edu// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 306019Shines@cs.fsu.edu// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 316019Shines@cs.fsu.edu// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 326019Shines@cs.fsu.edu// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 336019Shines@cs.fsu.edu// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 346019Shines@cs.fsu.edu// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 356019Shines@cs.fsu.edu// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 366019Shines@cs.fsu.edu// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 376019Shines@cs.fsu.edu// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 386019Shines@cs.fsu.edu// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 396019Shines@cs.fsu.edu// 406019Shines@cs.fsu.edu// Authors: Stephen Hines 416019Shines@cs.fsu.edu 426019Shines@cs.fsu.edudef operand_types {{ 438449Sgblack@eecs.umich.edu 'sb' : 'int8_t', 448449Sgblack@eecs.umich.edu 'ub' : 'uint8_t', 458449Sgblack@eecs.umich.edu 'sh' : 'int16_t', 468449Sgblack@eecs.umich.edu 'uh' : 'uint16_t', 478449Sgblack@eecs.umich.edu 'sw' : 'int32_t', 488449Sgblack@eecs.umich.edu 'uw' : 'uint32_t', 498449Sgblack@eecs.umich.edu 'ud' : 'uint64_t', 5012386Sgabeblack@google.com 'tud' : 'std::array<uint64_t, 2>', 518449Sgblack@eecs.umich.edu 'sf' : 'float', 5212110SRekai.GonzalezAlberquilla@arm.com 'df' : 'double', 5312110SRekai.GonzalezAlberquilla@arm.com 'vc' : 'TheISA::VecRegContainer', 5412110SRekai.GonzalezAlberquilla@arm.com # For operations that are implemented as a template 5512110SRekai.GonzalezAlberquilla@arm.com 'x' : 'TPElem', 566019Shines@cs.fsu.edu}}; 576019Shines@cs.fsu.edu 586312Sgblack@eecs.umich.edulet {{ 596312Sgblack@eecs.umich.edu maybePCRead = ''' 607720Sgblack@eecs.umich.edu ((%(reg_idx)s == PCReg) ? readPC(xc) : xc->%(func)s(this, %(op_idx)s)) 616312Sgblack@eecs.umich.edu ''' 627186Sgblack@eecs.umich.edu maybeAlignedPCRead = ''' 637720Sgblack@eecs.umich.edu ((%(reg_idx)s == PCReg) ? (roundDown(readPC(xc), 4)) : 647186Sgblack@eecs.umich.edu xc->%(func)s(this, %(op_idx)s)) 657186Sgblack@eecs.umich.edu ''' 666312Sgblack@eecs.umich.edu maybePCWrite = ''' 677093Sgblack@eecs.umich.edu ((%(reg_idx)s == PCReg) ? setNextPC(xc, %(final_val)s) : 686312Sgblack@eecs.umich.edu xc->%(func)s(this, %(op_idx)s, %(final_val)s)) 696312Sgblack@eecs.umich.edu ''' 707148Sgblack@eecs.umich.edu maybeIWPCWrite = ''' 717148Sgblack@eecs.umich.edu ((%(reg_idx)s == PCReg) ? setIWNextPC(xc, %(final_val)s) : 727148Sgblack@eecs.umich.edu xc->%(func)s(this, %(op_idx)s, %(final_val)s)) 737148Sgblack@eecs.umich.edu ''' 747184Sgblack@eecs.umich.edu maybeAIWPCWrite = ''' 757184Sgblack@eecs.umich.edu if (%(reg_idx)s == PCReg) { 767289Sgblack@eecs.umich.edu bool thumb = THUMB; 777289Sgblack@eecs.umich.edu if (thumb) { 787289Sgblack@eecs.umich.edu setNextPC(xc, %(final_val)s); 797289Sgblack@eecs.umich.edu } else { 807184Sgblack@eecs.umich.edu setIWNextPC(xc, %(final_val)s); 817184Sgblack@eecs.umich.edu } 827184Sgblack@eecs.umich.edu } else { 837184Sgblack@eecs.umich.edu xc->%(func)s(this, %(op_idx)s, %(final_val)s); 847184Sgblack@eecs.umich.edu } 857184Sgblack@eecs.umich.edu ''' 8610037SARM gem5 Developers aarch64Read = ''' 8710037SARM gem5 Developers ((xc->%(func)s(this, %(op_idx)s)) & mask(intWidth)) 8810037SARM gem5 Developers ''' 8910037SARM gem5 Developers aarch64Write = ''' 9010037SARM gem5 Developers xc->%(func)s(this, %(op_idx)s, (%(final_val)s) & mask(intWidth)) 9110037SARM gem5 Developers ''' 9210037SARM gem5 Developers aarchX64Read = ''' 9310037SARM gem5 Developers ((xc->%(func)s(this, %(op_idx)s)) & mask(aarch64 ? 64 : 32)) 9410037SARM gem5 Developers ''' 9510037SARM gem5 Developers aarchX64Write = ''' 9610037SARM gem5 Developers xc->%(func)s(this, %(op_idx)s, (%(final_val)s) & mask(aarch64 ? 64 : 32)) 9710037SARM gem5 Developers ''' 9810037SARM gem5 Developers aarchW64Read = ''' 9910037SARM gem5 Developers ((xc->%(func)s(this, %(op_idx)s)) & mask(32)) 10010037SARM gem5 Developers ''' 10110037SARM gem5 Developers aarchW64Write = ''' 10210037SARM gem5 Developers xc->%(func)s(this, %(op_idx)s, (%(final_val)s) & mask(32)) 10310037SARM gem5 Developers ''' 10410037SARM gem5 Developers cntrlNsBankedWrite = ''' 10512499Sgiacomo.travaglini@arm.com xc->setMiscReg(snsBankedIndex(dest, xc->tcBase()), %(final_val)s) 10610037SARM gem5 Developers ''' 10710037SARM gem5 Developers 10810037SARM gem5 Developers cntrlNsBankedRead = ''' 10912499Sgiacomo.travaglini@arm.com xc->readMiscReg(snsBankedIndex(op1, xc->tcBase())) 11010037SARM gem5 Developers ''' 1117797Sgblack@eecs.umich.edu 1127797Sgblack@eecs.umich.edu #PCState operands need to have a sorting index (the number at the end) 1137797Sgblack@eecs.umich.edu #less than all the integer registers which might update the PC. That way 1147797Sgblack@eecs.umich.edu #if the flag bits of the pc state are updated and a branch happens through 1157797Sgblack@eecs.umich.edu #R15, the updates are layered properly and the R15 update isn't lost. 1167797Sgblack@eecs.umich.edu srtNormal = 5 1177797Sgblack@eecs.umich.edu srtCpsr = 4 1187797Sgblack@eecs.umich.edu srtBase = 3 1197797Sgblack@eecs.umich.edu srtPC = 2 1207797Sgblack@eecs.umich.edu srtMode = 1 1217797Sgblack@eecs.umich.edu srtEPC = 0 1227797Sgblack@eecs.umich.edu 12312110SRekai.GonzalezAlberquilla@arm.com def vectorElem(idx, elem): 12412110SRekai.GonzalezAlberquilla@arm.com return ('VecElem', 'sf', (idx, elem), 'IsVectorElem', srtNormal) 12512110SRekai.GonzalezAlberquilla@arm.com 12612110SRekai.GonzalezAlberquilla@arm.com def vectorReg(idx, elems = None): 12712110SRekai.GonzalezAlberquilla@arm.com return ('VecReg', 'vc', (idx, elems) , 'IsVector', srtNormal) 12812110SRekai.GonzalezAlberquilla@arm.com 12912110SRekai.GonzalezAlberquilla@arm.com def vectorRegElem(elem, ext = 'sf', zeroing = False): 13012110SRekai.GonzalezAlberquilla@arm.com return (elem, ext, zeroing) 13112110SRekai.GonzalezAlberquilla@arm.com 1327797Sgblack@eecs.umich.edu def floatReg(idx): 1337797Sgblack@eecs.umich.edu return ('FloatReg', 'sf', idx, 'IsFloating', srtNormal) 1347797Sgblack@eecs.umich.edu 1357797Sgblack@eecs.umich.edu def intReg(idx): 1367797Sgblack@eecs.umich.edu return ('IntReg', 'uw', idx, 'IsInteger', srtNormal, 1377797Sgblack@eecs.umich.edu maybePCRead, maybePCWrite) 1387797Sgblack@eecs.umich.edu 13910037SARM gem5 Developers def intReg64(idx): 14010037SARM gem5 Developers return ('IntReg', 'ud', idx, 'IsInteger', srtNormal, 14110037SARM gem5 Developers aarch64Read, aarch64Write) 14210037SARM gem5 Developers 14310037SARM gem5 Developers def intRegX64(idx, id = srtNormal): 14410037SARM gem5 Developers return ('IntReg', 'ud', idx, 'IsInteger', id, 14510037SARM gem5 Developers aarchX64Read, aarchX64Write) 14610037SARM gem5 Developers 14710037SARM gem5 Developers def intRegW64(idx, id = srtNormal): 14810037SARM gem5 Developers return ('IntReg', 'ud', idx, 'IsInteger', id, 14910037SARM gem5 Developers aarchW64Read, aarchW64Write) 15010037SARM gem5 Developers 1517797Sgblack@eecs.umich.edu def intRegNPC(idx): 1527797Sgblack@eecs.umich.edu return ('IntReg', 'uw', idx, 'IsInteger', srtNormal) 1537797Sgblack@eecs.umich.edu 1547797Sgblack@eecs.umich.edu def intRegAPC(idx, id = srtNormal): 1557797Sgblack@eecs.umich.edu return ('IntReg', 'uw', idx, 'IsInteger', id, 1567797Sgblack@eecs.umich.edu maybeAlignedPCRead, maybePCWrite) 1577797Sgblack@eecs.umich.edu 1587797Sgblack@eecs.umich.edu def intRegIWPC(idx): 1597797Sgblack@eecs.umich.edu return ('IntReg', 'uw', idx, 'IsInteger', srtNormal, 1607797Sgblack@eecs.umich.edu maybePCRead, maybeIWPCWrite) 1617797Sgblack@eecs.umich.edu 1627797Sgblack@eecs.umich.edu def intRegAIWPC(idx): 1637797Sgblack@eecs.umich.edu return ('IntReg', 'uw', idx, 'IsInteger', srtNormal, 1647797Sgblack@eecs.umich.edu maybePCRead, maybeAIWPCWrite) 1657797Sgblack@eecs.umich.edu 16610338SCurtis.Dunham@arm.com def ccReg(idx): 16710338SCurtis.Dunham@arm.com return ('CCReg', 'uw', idx, None, srtNormal) 1687797Sgblack@eecs.umich.edu 1697797Sgblack@eecs.umich.edu def cntrlReg(idx, id = srtNormal, type = 'uw'): 1709251Snathanael.premillieu@irisa.fr return ('ControlReg', type, idx, None, id) 1717797Sgblack@eecs.umich.edu 17210037SARM gem5 Developers def cntrlNsBankedReg(idx, id = srtNormal, type = 'uw'): 17310037SARM gem5 Developers return ('ControlReg', type, idx, (None, None, 'IsControl'), id, cntrlNsBankedRead, cntrlNsBankedWrite) 17410037SARM gem5 Developers 17510037SARM gem5 Developers def cntrlNsBankedReg64(idx, id = srtNormal, type = 'ud'): 17610037SARM gem5 Developers return ('ControlReg', type, idx, (None, None, 'IsControl'), id, cntrlNsBankedRead, cntrlNsBankedWrite) 17710037SARM gem5 Developers 1787797Sgblack@eecs.umich.edu def cntrlRegNC(idx, id = srtNormal, type = 'uw'): 1797797Sgblack@eecs.umich.edu return ('ControlReg', type, idx, None, id) 1807797Sgblack@eecs.umich.edu 1817797Sgblack@eecs.umich.edu def pcStateReg(idx, id): 18210037SARM gem5 Developers return ('PCState', 'ud', idx, (None, None, 'IsControl'), id) 1836312Sgblack@eecs.umich.edu}}; 1846312Sgblack@eecs.umich.edu 1856019Shines@cs.fsu.edudef operands {{ 1867119Sgblack@eecs.umich.edu #Abstracted integer reg operands 1877797Sgblack@eecs.umich.edu 'Dest': intReg('dest'), 18810037SARM gem5 Developers 'Dest64': intReg64('dest'), 18910037SARM gem5 Developers 'XDest': intRegX64('dest'), 19010037SARM gem5 Developers 'WDest': intRegW64('dest'), 1917797Sgblack@eecs.umich.edu 'IWDest': intRegIWPC('dest'), 1927797Sgblack@eecs.umich.edu 'AIWDest': intRegAIWPC('dest'), 1937797Sgblack@eecs.umich.edu 'Dest2': intReg('dest2'), 19410037SARM gem5 Developers 'XDest2': intRegX64('dest2'), 19510037SARM gem5 Developers 'FDest2': floatReg('dest2'), 19612134Sgedare@rtems.org 'IWDest2': intRegIWPC('dest2'), 1977797Sgblack@eecs.umich.edu 'Result': intReg('result'), 19810037SARM gem5 Developers 'XResult': intRegX64('result'), 19910037SARM gem5 Developers 'XBase': intRegX64('base', id = srtBase), 2007797Sgblack@eecs.umich.edu 'Base': intRegAPC('base', id = srtBase), 20110037SARM gem5 Developers 'XOffset': intRegX64('offset'), 2027797Sgblack@eecs.umich.edu 'Index': intReg('index'), 2037797Sgblack@eecs.umich.edu 'Shift': intReg('shift'), 2047797Sgblack@eecs.umich.edu 'Op1': intReg('op1'), 2057797Sgblack@eecs.umich.edu 'Op2': intReg('op2'), 2067797Sgblack@eecs.umich.edu 'Op3': intReg('op3'), 20710037SARM gem5 Developers 'Op164': intReg64('op1'), 20810037SARM gem5 Developers 'Op264': intReg64('op2'), 20910037SARM gem5 Developers 'Op364': intReg64('op3'), 21010037SARM gem5 Developers 'XOp1': intRegX64('op1'), 21110037SARM gem5 Developers 'XOp2': intRegX64('op2'), 21210037SARM gem5 Developers 'XOp3': intRegX64('op3'), 21310037SARM gem5 Developers 'WOp1': intRegW64('op1'), 21410037SARM gem5 Developers 'WOp2': intRegW64('op2'), 21510037SARM gem5 Developers 'WOp3': intRegW64('op3'), 2167797Sgblack@eecs.umich.edu 'Reg0': intReg('reg0'), 2177797Sgblack@eecs.umich.edu 'Reg1': intReg('reg1'), 2187797Sgblack@eecs.umich.edu 'Reg2': intReg('reg2'), 2197797Sgblack@eecs.umich.edu 'Reg3': intReg('reg3'), 2206019Shines@cs.fsu.edu 2217797Sgblack@eecs.umich.edu #Fixed index integer reg operands 2227797Sgblack@eecs.umich.edu 'SpMode': intRegNPC('intRegInMode((OperatingMode)regMode, INTREG_SP)'), 22310037SARM gem5 Developers 'DecodedBankedIntReg': intRegNPC('decodeMrsMsrBankedIntRegIndex(byteMask, r)'), 2247797Sgblack@eecs.umich.edu 'LR': intRegNPC('INTREG_LR'), 22510037SARM gem5 Developers 'XLR': intRegX64('INTREG_X30'), 2267797Sgblack@eecs.umich.edu 'R7': intRegNPC('7'), 2278204SAli.Saidi@ARM.com # First four arguments are passed in registers 2287797Sgblack@eecs.umich.edu 'R0': intRegNPC('0'), 2298204SAli.Saidi@ARM.com 'R1': intRegNPC('1'), 2308204SAli.Saidi@ARM.com 'R2': intRegNPC('2'), 2318204SAli.Saidi@ARM.com 'R3': intRegNPC('3'), 23210037SARM gem5 Developers 'X0': intRegX64('0'), 23310037SARM gem5 Developers 'X1': intRegX64('1'), 23410037SARM gem5 Developers 'X2': intRegX64('2'), 23510037SARM gem5 Developers 'X3': intRegX64('3'), 2367797Sgblack@eecs.umich.edu 23710338SCurtis.Dunham@arm.com # Condition code registers 23810338SCurtis.Dunham@arm.com 'CondCodesNZ': ccReg('CCREG_NZ'), 23910338SCurtis.Dunham@arm.com 'CondCodesC': ccReg('CCREG_C'), 24010338SCurtis.Dunham@arm.com 'CondCodesV': ccReg('CCREG_V'), 24110338SCurtis.Dunham@arm.com 'CondCodesGE': ccReg('CCREG_GE'), 24210338SCurtis.Dunham@arm.com 'OptCondCodesNZ': ccReg( 24310338SCurtis.Dunham@arm.com '''((condCode == COND_AL || condCode == COND_UC || 24410338SCurtis.Dunham@arm.com condCode == COND_CC || condCode == COND_CS || 24510338SCurtis.Dunham@arm.com condCode == COND_VS || condCode == COND_VC) ? 24610338SCurtis.Dunham@arm.com CCREG_ZERO : CCREG_NZ)'''), 24710338SCurtis.Dunham@arm.com 'OptCondCodesC': ccReg( 24810338SCurtis.Dunham@arm.com '''((condCode == COND_HI || condCode == COND_LS || 2498303SAli.Saidi@ARM.com condCode == COND_CS || condCode == COND_CC) ? 25010338SCurtis.Dunham@arm.com CCREG_C : CCREG_ZERO)'''), 25110338SCurtis.Dunham@arm.com 'OptShiftRmCondCodesC': ccReg( 25210338SCurtis.Dunham@arm.com '''((condCode == COND_HI || condCode == COND_LS || 25310338SCurtis.Dunham@arm.com condCode == COND_CS || condCode == COND_CC || 25410338SCurtis.Dunham@arm.com shiftType == ROR) ? 25510338SCurtis.Dunham@arm.com CCREG_C : CCREG_ZERO)'''), 25610338SCurtis.Dunham@arm.com 'OptCondCodesV': ccReg( 25710338SCurtis.Dunham@arm.com '''((condCode == COND_VS || condCode == COND_VC || 25810338SCurtis.Dunham@arm.com condCode == COND_GE || condCode == COND_LT || 25910338SCurtis.Dunham@arm.com condCode == COND_GT || condCode == COND_LE) ? 26010338SCurtis.Dunham@arm.com CCREG_V : CCREG_ZERO)'''), 26110338SCurtis.Dunham@arm.com 'FpCondCodes': ccReg('CCREG_FP'), 2627797Sgblack@eecs.umich.edu 2637797Sgblack@eecs.umich.edu #Abstracted floating point reg operands 2647797Sgblack@eecs.umich.edu 'FpDest': floatReg('(dest + 0)'), 2657797Sgblack@eecs.umich.edu 'FpDestP0': floatReg('(dest + 0)'), 2667797Sgblack@eecs.umich.edu 'FpDestP1': floatReg('(dest + 1)'), 2677797Sgblack@eecs.umich.edu 'FpDestP2': floatReg('(dest + 2)'), 2687797Sgblack@eecs.umich.edu 'FpDestP3': floatReg('(dest + 3)'), 2697797Sgblack@eecs.umich.edu 'FpDestP4': floatReg('(dest + 4)'), 2707797Sgblack@eecs.umich.edu 'FpDestP5': floatReg('(dest + 5)'), 2717797Sgblack@eecs.umich.edu 'FpDestP6': floatReg('(dest + 6)'), 2727797Sgblack@eecs.umich.edu 'FpDestP7': floatReg('(dest + 7)'), 2737797Sgblack@eecs.umich.edu 'FpDestS0P0': floatReg('(dest + step * 0 + 0)'), 2747797Sgblack@eecs.umich.edu 'FpDestS0P1': floatReg('(dest + step * 0 + 1)'), 2757797Sgblack@eecs.umich.edu 'FpDestS1P0': floatReg('(dest + step * 1 + 0)'), 2767797Sgblack@eecs.umich.edu 'FpDestS1P1': floatReg('(dest + step * 1 + 1)'), 2777797Sgblack@eecs.umich.edu 'FpDestS2P0': floatReg('(dest + step * 2 + 0)'), 2787797Sgblack@eecs.umich.edu 'FpDestS2P1': floatReg('(dest + step * 2 + 1)'), 2797797Sgblack@eecs.umich.edu 'FpDestS3P0': floatReg('(dest + step * 3 + 0)'), 2807797Sgblack@eecs.umich.edu 'FpDestS3P1': floatReg('(dest + step * 3 + 1)'), 2817797Sgblack@eecs.umich.edu 2827797Sgblack@eecs.umich.edu 'FpDest2': floatReg('(dest2 + 0)'), 2837797Sgblack@eecs.umich.edu 'FpDest2P0': floatReg('(dest2 + 0)'), 2847797Sgblack@eecs.umich.edu 'FpDest2P1': floatReg('(dest2 + 1)'), 2857797Sgblack@eecs.umich.edu 'FpDest2P2': floatReg('(dest2 + 2)'), 2867797Sgblack@eecs.umich.edu 'FpDest2P3': floatReg('(dest2 + 3)'), 2877797Sgblack@eecs.umich.edu 2887797Sgblack@eecs.umich.edu 'FpOp1': floatReg('(op1 + 0)'), 2897797Sgblack@eecs.umich.edu 'FpOp1P0': floatReg('(op1 + 0)'), 2907797Sgblack@eecs.umich.edu 'FpOp1P1': floatReg('(op1 + 1)'), 2917797Sgblack@eecs.umich.edu 'FpOp1P2': floatReg('(op1 + 2)'), 2927797Sgblack@eecs.umich.edu 'FpOp1P3': floatReg('(op1 + 3)'), 2937797Sgblack@eecs.umich.edu 'FpOp1P4': floatReg('(op1 + 4)'), 2947797Sgblack@eecs.umich.edu 'FpOp1P5': floatReg('(op1 + 5)'), 2957797Sgblack@eecs.umich.edu 'FpOp1P6': floatReg('(op1 + 6)'), 2967797Sgblack@eecs.umich.edu 'FpOp1P7': floatReg('(op1 + 7)'), 2977797Sgblack@eecs.umich.edu 'FpOp1S0P0': floatReg('(op1 + step * 0 + 0)'), 2987797Sgblack@eecs.umich.edu 'FpOp1S0P1': floatReg('(op1 + step * 0 + 1)'), 2997797Sgblack@eecs.umich.edu 'FpOp1S1P0': floatReg('(op1 + step * 1 + 0)'), 3007797Sgblack@eecs.umich.edu 'FpOp1S1P1': floatReg('(op1 + step * 1 + 1)'), 3017797Sgblack@eecs.umich.edu 'FpOp1S2P0': floatReg('(op1 + step * 2 + 0)'), 3027797Sgblack@eecs.umich.edu 'FpOp1S2P1': floatReg('(op1 + step * 2 + 1)'), 3037797Sgblack@eecs.umich.edu 'FpOp1S3P0': floatReg('(op1 + step * 3 + 0)'), 3047797Sgblack@eecs.umich.edu 'FpOp1S3P1': floatReg('(op1 + step * 3 + 1)'), 3057797Sgblack@eecs.umich.edu 3067797Sgblack@eecs.umich.edu 'FpOp2': floatReg('(op2 + 0)'), 3077797Sgblack@eecs.umich.edu 'FpOp2P0': floatReg('(op2 + 0)'), 3087797Sgblack@eecs.umich.edu 'FpOp2P1': floatReg('(op2 + 1)'), 3097797Sgblack@eecs.umich.edu 'FpOp2P2': floatReg('(op2 + 2)'), 3107797Sgblack@eecs.umich.edu 'FpOp2P3': floatReg('(op2 + 3)'), 3117797Sgblack@eecs.umich.edu 31210037SARM gem5 Developers # Create AArch64 unpacked view of the FP registers 31312110SRekai.GonzalezAlberquilla@arm.com # Name ::= 'AA64Vec' OpSpec [LaneSpec] 31412110SRekai.GonzalezAlberquilla@arm.com # OpSpec ::= IOSpec [Index] [Plus] 31512110SRekai.GonzalezAlberquilla@arm.com # IOSpec ::= 'S' | 'D' 31612110SRekai.GonzalezAlberquilla@arm.com # Index ::= '0' | ... | '9' 31712110SRekai.GonzalezAlberquilla@arm.com # Plus ::= [PlusAmount] ['l'] 31812110SRekai.GonzalezAlberquilla@arm.com # PlusAmount ::= 'p' [PlusAmount] 31912110SRekai.GonzalezAlberquilla@arm.com # LaneSpec ::= 'L' Index 32012110SRekai.GonzalezAlberquilla@arm.com # 32112110SRekai.GonzalezAlberquilla@arm.com # All the constituents are hierarchically defined as part of the Vector 32212110SRekai.GonzalezAlberquilla@arm.com # Register they belong to 32310037SARM gem5 Developers 32412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1': vectorReg('op1', 32512110SRekai.GonzalezAlberquilla@arm.com { 32612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P0': vectorRegElem('0'), 32712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P1': vectorRegElem('1'), 32812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P2': vectorRegElem('2'), 32912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P3': vectorRegElem('3'), 33012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1S': vectorRegElem('0', 'sf', zeroing = True), 33112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1D': vectorRegElem('0', 'df', zeroing = True), 33212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1Q': vectorRegElem('0', 'tud', zeroing = True) 33312110SRekai.GonzalezAlberquilla@arm.com }), 33410037SARM gem5 Developers 33512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp2': vectorReg('op2', 33612110SRekai.GonzalezAlberquilla@arm.com { 33712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp2P0': vectorRegElem('0'), 33812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp2P1': vectorRegElem('1'), 33912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp2P2': vectorRegElem('2'), 34012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp2P3': vectorRegElem('3'), 34112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp2S': vectorRegElem('0', 'sf', zeroing = True), 34212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp2D': vectorRegElem('0', 'df', zeroing = True), 34312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp2Q': vectorRegElem('0', 'tud', zeroing = True) 34412110SRekai.GonzalezAlberquilla@arm.com }), 34510037SARM gem5 Developers 34612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp3': vectorReg('op3', 34712110SRekai.GonzalezAlberquilla@arm.com { 34812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp3P0': vectorRegElem('0'), 34912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp3P1': vectorRegElem('1'), 35012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp3P2': vectorRegElem('2'), 35112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp3P3': vectorRegElem('3'), 35212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp3S': vectorRegElem('0', 'sf', zeroing = True), 35312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp3D': vectorRegElem('0', 'df', zeroing = True), 35412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp3Q': vectorRegElem('0', 'tud', zeroing = True) 35512110SRekai.GonzalezAlberquilla@arm.com }), 35610037SARM gem5 Developers 35712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDest': vectorReg('dest', 35812110SRekai.GonzalezAlberquilla@arm.com { 35912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP0': vectorRegElem('0'), 36012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP1': vectorRegElem('1'), 36112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP2': vectorRegElem('2'), 36212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP3': vectorRegElem('3'), 36312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestS': vectorRegElem('0', 'sf', zeroing = True), 36412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestD': vectorRegElem('0', 'df', zeroing = True), 36512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestQ': vectorRegElem('0', 'tud', zeroing = True) 36612110SRekai.GonzalezAlberquilla@arm.com }), 36710037SARM gem5 Developers 36812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDest2': vectorReg('dest2', 36912110SRekai.GonzalezAlberquilla@arm.com { 37012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDest2P0': vectorRegElem('0'), 37112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDest2P1': vectorRegElem('1'), 37212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDest2P2': vectorRegElem('2'), 37312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDest2P3': vectorRegElem('3'), 37412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDest2S': vectorRegElem('0', 'sf', zeroing = True), 37512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDest2D': vectorRegElem('0', 'df', zeroing = True), 37612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDest2Q': vectorRegElem('0', 'tud', zeroing = True) 37712110SRekai.GonzalezAlberquilla@arm.com }), 37810037SARM gem5 Developers 37912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1V0': vectorReg('op1', 38012110SRekai.GonzalezAlberquilla@arm.com { 38112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P0V0': vectorRegElem('0'), 38212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P1V0': vectorRegElem('1'), 38312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P2V0': vectorRegElem('2'), 38412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P3V0': vectorRegElem('3'), 38512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1SV0': vectorRegElem('0', 'sf', zeroing = True), 38612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1DV0': vectorRegElem('0', 'df', zeroing = True), 38712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1QV0': vectorRegElem('0', 'tud', zeroing = True) 38812110SRekai.GonzalezAlberquilla@arm.com }), 38910037SARM gem5 Developers 39012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1V1': vectorReg('op1+1', 39112110SRekai.GonzalezAlberquilla@arm.com { 39212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P0V1': vectorRegElem('0'), 39312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P1V1': vectorRegElem('1'), 39412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P2V1': vectorRegElem('2'), 39512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P3V1': vectorRegElem('3'), 39612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1SV1': vectorRegElem('0', 'sf', zeroing = True), 39712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1DV1': vectorRegElem('0', 'df', zeroing = True), 39812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1QV1': vectorRegElem('0', 'tud', zeroing = True) 39912110SRekai.GonzalezAlberquilla@arm.com }), 40010037SARM gem5 Developers 40112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1V2': vectorReg('op1+2', 40212110SRekai.GonzalezAlberquilla@arm.com { 40312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P0V2': vectorRegElem('0'), 40412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P1V2': vectorRegElem('1'), 40512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P2V2': vectorRegElem('2'), 40612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P3V2': vectorRegElem('3'), 40712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1SV2': vectorRegElem('0', 'sf', zeroing = True), 40812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1DV2': vectorRegElem('0', 'df', zeroing = True), 40912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1QV2': vectorRegElem('0', 'tud', zeroing = True) 41012110SRekai.GonzalezAlberquilla@arm.com }), 41110037SARM gem5 Developers 41212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1V3': vectorReg('op1+3', 41312110SRekai.GonzalezAlberquilla@arm.com { 41412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P0V3': vectorRegElem('0'), 41512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P1V3': vectorRegElem('1'), 41612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P2V3': vectorRegElem('2'), 41712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P3V3': vectorRegElem('3'), 41812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1SV3': vectorRegElem('0', 'sf', zeroing = True), 41912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1DV3': vectorRegElem('0', 'df', zeroing = True), 42012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1QV3': vectorRegElem('0', 'tud', zeroing = True) 42112110SRekai.GonzalezAlberquilla@arm.com }), 42210037SARM gem5 Developers 42312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1V0S': vectorReg('(op1+0)%32', 42412110SRekai.GonzalezAlberquilla@arm.com { 42512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P0V0S': vectorRegElem('0'), 42612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P1V0S': vectorRegElem('1'), 42712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P2V0S': vectorRegElem('2'), 42812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P3V0S': vectorRegElem('3'), 42912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1SV0S': vectorRegElem('0', 'sf', zeroing = True), 43012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1DV0S': vectorRegElem('0', 'df', zeroing = True), 43112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1QV0S': vectorRegElem('0', 'tud', zeroing = True) 43212110SRekai.GonzalezAlberquilla@arm.com }), 43310037SARM gem5 Developers 43412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1V1S': vectorReg('(op1+1)%32', 43512110SRekai.GonzalezAlberquilla@arm.com { 43612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P0V1S': vectorRegElem('0'), 43712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P1V1S': vectorRegElem('1'), 43812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P2V1S': vectorRegElem('2'), 43912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P3V1S': vectorRegElem('3'), 44012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1SV1S': vectorRegElem('0', 'sf', zeroing = True), 44112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1DV1S': vectorRegElem('0', 'df', zeroing = True), 44212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1QV1S': vectorRegElem('0', 'tud', zeroing = True) 44312110SRekai.GonzalezAlberquilla@arm.com }), 44410037SARM gem5 Developers 44512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1V2S': vectorReg('(op1+2)%32', 44612110SRekai.GonzalezAlberquilla@arm.com { 44712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P0V2S': vectorRegElem('0'), 44812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P1V2S': vectorRegElem('1'), 44912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P2V2S': vectorRegElem('2'), 45012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P3V2S': vectorRegElem('3'), 45112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1SV2S': vectorRegElem('0', 'sf', zeroing = True), 45212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1DV2S': vectorRegElem('0', 'df', zeroing = True), 45312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1QV2S': vectorRegElem('0', 'tud', zeroing = True) 45412110SRekai.GonzalezAlberquilla@arm.com }), 45512110SRekai.GonzalezAlberquilla@arm.com 45612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1V3S': vectorReg('(op1+3)%32', 45712110SRekai.GonzalezAlberquilla@arm.com { 45812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P0V3S': vectorRegElem('0'), 45912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P1V3S': vectorRegElem('1'), 46012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P2V3S': vectorRegElem('2'), 46112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1P3V3S': vectorRegElem('3'), 46212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1SV3S': vectorRegElem('0', 'sf', zeroing = True), 46312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1DV3S': vectorRegElem('0', 'df', zeroing = True), 46412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpOp1QV3S': vectorRegElem('0', 'tud', zeroing = True) 46512110SRekai.GonzalezAlberquilla@arm.com }), 46612110SRekai.GonzalezAlberquilla@arm.com 46712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestV0': vectorReg('(dest+0)', 46812110SRekai.GonzalezAlberquilla@arm.com { 46912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP0V0': vectorRegElem('0'), 47012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP1V0': vectorRegElem('1'), 47112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP2V0': vectorRegElem('2'), 47212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP3V0': vectorRegElem('3'), 47312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestSV0': vectorRegElem('0', 'sf', zeroing = True), 47412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestDV0': vectorRegElem('0', 'df', zeroing = True), 47512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestQV0': vectorRegElem('0', 'tud', zeroing = True) 47612110SRekai.GonzalezAlberquilla@arm.com }), 47712110SRekai.GonzalezAlberquilla@arm.com 47812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestV1': vectorReg('(dest+1)', 47912110SRekai.GonzalezAlberquilla@arm.com { 48012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP0V1': vectorRegElem('0'), 48112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP1V1': vectorRegElem('1'), 48212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP2V1': vectorRegElem('2'), 48312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP3V1': vectorRegElem('3'), 48412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestSV1': vectorRegElem('0', 'sf', zeroing = True), 48512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestDV1': vectorRegElem('0', 'df', zeroing = True), 48612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestQV1': vectorRegElem('0', 'tud', zeroing = True) 48712110SRekai.GonzalezAlberquilla@arm.com }), 48812110SRekai.GonzalezAlberquilla@arm.com 48912110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestV0L': vectorReg('(dest+0)%32', 49012110SRekai.GonzalezAlberquilla@arm.com { 49112110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP0V0L': vectorRegElem('0'), 49212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP1V0L': vectorRegElem('1'), 49312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP2V0L': vectorRegElem('2'), 49412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP3V0L': vectorRegElem('3'), 49512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestSV0L': vectorRegElem('0', 'sf', zeroing = True), 49612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestDV0L': vectorRegElem('0', 'df', zeroing = True), 49712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestQV0L': vectorRegElem('0', 'tud', zeroing = True) 49812110SRekai.GonzalezAlberquilla@arm.com }), 49912110SRekai.GonzalezAlberquilla@arm.com 50012110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestV1L': vectorReg('(dest+1)%32', 50112110SRekai.GonzalezAlberquilla@arm.com { 50212110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP0V1L': vectorRegElem('0'), 50312110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP1V1L': vectorRegElem('1'), 50412110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP2V1L': vectorRegElem('2'), 50512110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestP3V1L': vectorRegElem('3'), 50612110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestSV1L': vectorRegElem('0', 'sf', zeroing = True), 50712110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestDV1L': vectorRegElem('0', 'df', zeroing = True), 50812110SRekai.GonzalezAlberquilla@arm.com 'AA64FpDestQV1L': vectorRegElem('0', 'tud', zeroing = True) 50912110SRekai.GonzalezAlberquilla@arm.com }), 51010037SARM gem5 Developers 5117797Sgblack@eecs.umich.edu #Abstracted control reg operands 5127797Sgblack@eecs.umich.edu 'MiscDest': cntrlReg('dest'), 5137797Sgblack@eecs.umich.edu 'MiscOp1': cntrlReg('op1'), 51410037SARM gem5 Developers 'MiscNsBankedDest': cntrlNsBankedReg('dest'), 51510037SARM gem5 Developers 'MiscNsBankedOp1': cntrlNsBankedReg('op1'), 51610037SARM gem5 Developers 'MiscNsBankedDest64': cntrlNsBankedReg64('dest'), 51710037SARM gem5 Developers 'MiscNsBankedOp164': cntrlNsBankedReg64('op1'), 5187797Sgblack@eecs.umich.edu 5197797Sgblack@eecs.umich.edu #Fixed index control regs 5207797Sgblack@eecs.umich.edu 'Cpsr': cntrlReg('MISCREG_CPSR', srtCpsr), 5218302SAli.Saidi@ARM.com 'CpsrQ': cntrlReg('MISCREG_CPSR_Q', srtCpsr), 5227797Sgblack@eecs.umich.edu 'Spsr': cntrlRegNC('MISCREG_SPSR'), 5237797Sgblack@eecs.umich.edu 'Fpsr': cntrlRegNC('MISCREG_FPSR'), 5247797Sgblack@eecs.umich.edu 'Fpsid': cntrlRegNC('MISCREG_FPSID'), 5257797Sgblack@eecs.umich.edu 'Fpscr': cntrlRegNC('MISCREG_FPSCR'), 5267797Sgblack@eecs.umich.edu 'FpscrQc': cntrlRegNC('MISCREG_FPSCR_QC'), 5277797Sgblack@eecs.umich.edu 'FpscrExc': cntrlRegNC('MISCREG_FPSCR_EXC'), 5287797Sgblack@eecs.umich.edu 'Cpacr': cntrlReg('MISCREG_CPACR'), 52910037SARM gem5 Developers 'Cpacr64': cntrlReg('MISCREG_CPACR_EL1'), 5307797Sgblack@eecs.umich.edu 'Fpexc': cntrlRegNC('MISCREG_FPEXC'), 53110037SARM gem5 Developers 'Nsacr': cntrlReg('MISCREG_NSACR'), 53210037SARM gem5 Developers 'ElrHyp': cntrlRegNC('MISCREG_ELR_HYP'), 53310037SARM gem5 Developers 'Hcr': cntrlReg('MISCREG_HCR'), 53410037SARM gem5 Developers 'Hcr64': cntrlReg('MISCREG_HCR_EL2'), 53510037SARM gem5 Developers 'Hdcr': cntrlReg('MISCREG_HDCR'), 53610037SARM gem5 Developers 'Hcptr': cntrlReg('MISCREG_HCPTR'), 53710037SARM gem5 Developers 'CptrEl264': cntrlReg('MISCREG_CPTR_EL2'), 53810037SARM gem5 Developers 'CptrEl364': cntrlReg('MISCREG_CPTR_EL3'), 53910037SARM gem5 Developers 'Hstr': cntrlReg('MISCREG_HSTR'), 54010037SARM gem5 Developers 'Scr': cntrlReg('MISCREG_SCR'), 54110037SARM gem5 Developers 'Scr64': cntrlReg('MISCREG_SCR_EL3'), 5427797Sgblack@eecs.umich.edu 'Sctlr': cntrlRegNC('MISCREG_SCTLR'), 5437797Sgblack@eecs.umich.edu 'SevMailbox': cntrlRegNC('MISCREG_SEV_MAILBOX'), 5448209SAli.Saidi@ARM.com 'LLSCLock': cntrlRegNC('MISCREG_LOCKFLAG'), 54510037SARM gem5 Developers 'Dczid' : cntrlRegNC('MISCREG_DCZID_EL0'), 5466019Shines@cs.fsu.edu 5476308Sgblack@eecs.umich.edu #Register fields for microops 5488139SMatt.Horsnell@arm.com 'URa' : intReg('ura'), 54910037SARM gem5 Developers 'XURa' : intRegX64('ura'), 55010037SARM gem5 Developers 'WURa' : intRegW64('ura'), 5517797Sgblack@eecs.umich.edu 'IWRa' : intRegIWPC('ura'), 5527797Sgblack@eecs.umich.edu 'Fa' : floatReg('ura'), 55310037SARM gem5 Developers 'FaP1' : floatReg('ura + 1'), 5548139SMatt.Horsnell@arm.com 'URb' : intReg('urb'), 55510037SARM gem5 Developers 'XURb' : intRegX64('urb'), 5568139SMatt.Horsnell@arm.com 'URc' : intReg('urc'), 55710037SARM gem5 Developers 'XURc' : intRegX64('urc'), 5586308Sgblack@eecs.umich.edu 5596019Shines@cs.fsu.edu #Memory Operand 5607797Sgblack@eecs.umich.edu 'Mem': ('Mem', 'uw', None, ('IsMemRef', 'IsLoad', 'IsStore'), srtNormal), 5616019Shines@cs.fsu.edu 5627797Sgblack@eecs.umich.edu #PCState fields 56310037SARM gem5 Developers 'RawPC': pcStateReg('pc', srtPC), 5647797Sgblack@eecs.umich.edu 'PC': pcStateReg('instPC', srtPC), 5657797Sgblack@eecs.umich.edu 'NPC': pcStateReg('instNPC', srtPC), 5667797Sgblack@eecs.umich.edu 'pNPC': pcStateReg('instNPC', srtEPC), 5677797Sgblack@eecs.umich.edu 'IWNPC': pcStateReg('instIWNPC', srtPC), 5687797Sgblack@eecs.umich.edu 'Thumb': pcStateReg('thumb', srtPC), 5697797Sgblack@eecs.umich.edu 'NextThumb': pcStateReg('nextThumb', srtMode), 5707797Sgblack@eecs.umich.edu 'NextJazelle': pcStateReg('nextJazelle', srtMode), 5718205SAli.Saidi@ARM.com 'NextItState': pcStateReg('nextItstate', srtMode), 5728205SAli.Saidi@ARM.com 'Itstate': pcStateReg('itstate', srtMode), 57311514Sandreas.sandberg@arm.com 'NextAArch64': pcStateReg('nextAArch64', srtMode), 5747797Sgblack@eecs.umich.edu 5757797Sgblack@eecs.umich.edu #Register operands depending on a field in the instruction encoding. These 5767797Sgblack@eecs.umich.edu #should be avoided since they may not be portable across different 5777797Sgblack@eecs.umich.edu #encodings of the same instruction. 5787797Sgblack@eecs.umich.edu 'Rd': intReg('RD'), 5797797Sgblack@eecs.umich.edu 'Rm': intReg('RM'), 5807797Sgblack@eecs.umich.edu 'Rs': intReg('RS'), 5817797Sgblack@eecs.umich.edu 'Rn': intReg('RN'), 5827797Sgblack@eecs.umich.edu 'Rt': intReg('RT') 5836019Shines@cs.fsu.edu}}; 584