misc.isa (7652:f2621206b062) misc.isa (7757:d7360f5052b2)
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:
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);
183 if (isRead) {
184 return new Mrc15(machInst, rt, (IntRegIndex)miscReg);
185 } else {
186 return new Mcr15(machInst, (IntRegIndex)miscReg, rt);
187 }
188 }
189 }
190 '''
191}};
192
193def format McrMrc15() {{
194 decode_block = '''
195 return decodeMcrMrc15(machInst);
196 '''
197}};
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}};