1// -*- mode:c++ -*- 2 3// Copyright (c) 2010 ARM Limited 4// All rights reserved 5// 6// The license below extends only to copyright in the software and shall 7// not be construed as granting a license to any other intellectual 8// property including but not limited to intellectual property relating --- 166 unchanged lines hidden (view full) --- 175 if (isRead) { 176 return new Mrc15User(machInst, rt, (IntRegIndex)miscReg); 177 } else { 178 return new Mcr15User(machInst, (IntRegIndex)miscReg, rt); 179 } 180 181 // Read/write, priveleged only. 182 default: |
183 if (miscReg >= MISCREG_CP15_UNIMP_START) 184 return new FailUnimplemented(csprintf("%s %s", 185 isRead ? "mrc" : "mcr", miscRegName[miscReg]).c_str(), 186 machInst); |
187 if (isRead) { 188 return new Mrc15(machInst, rt, (IntRegIndex)miscReg); 189 } else { 190 return new Mcr15(machInst, (IntRegIndex)miscReg, rt); 191 } 192 } 193 } 194 ''' 195}}; 196 197def format McrMrc15() {{ 198 decode_block = ''' 199 return decodeMcrMrc15(machInst); 200 ''' 201}}; |