1// Copyright (c) 2010 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 --- 221 unchanged lines hidden (view full) --- 230 case 0x1: 231 { 232 const uint32_t imm = 233 (sext<26>(bits(machInst, 23, 0) << 2)) | 234 (bits(machInst, 24) << 1); 235 return new BlxImm(machInst, imm); 236 } 237 case 0x2: |
238 if (bits(op1, 4, 0) != 0) { 239 if (CPNUM == 0xa || CPNUM == 0xb) { 240 return decodeExtensionRegLoadStore(machInst); 241 } 242 if (bits(op1, 0) == 1) { 243 if (rn == INTREG_PC) { 244 if (bits(op1, 4, 3) != 0x0) { 245 return new WarnUnimplemented( 246 "ldc, ldc2 (literal)", machInst); 247 } 248 } else { 249 if (op1 == 0xC3 || op1 == 0xC7) { 250 return new WarnUnimplemented( 251 "ldc, ldc2 (immediate)", machInst); 252 } 253 } 254 if (op1 == 0xC5) { |
255 return new WarnUnimplemented( |
256 "mrrc, mrrc2", machInst); |
257 } 258 } else { |
259 if (bits(op1, 4, 3) != 0 || bits(op1, 1) == 1) { |
260 return new WarnUnimplemented( |
261 "stc, stc2", machInst); 262 } else if (op1 == 0xC4) { 263 return new WarnUnimplemented( 264 "mcrr, mcrrc", machInst); |
265 } 266 } |
267 } 268 break; 269 case 0x3: |
270 if (bits(op1, 4) == 0) { |
271 if (CPNUM == 0xa || CPNUM == 0xb) { 272 return decodeShortFpTransfer(machInst); 273 } else if (CPNUM == 0xf) { 274 return decodeMcrMrc15(machInst); 275 } 276 const bool op = bits(machInst, 4); 277 if (op) { 278 if (bits(op1, 0)) { --- 46 unchanged lines hidden --- |