ARM: Detect a bad offset field for the VFP Ldm/Stm instructions in the decoder.
This commit is contained in:
parent
563db6cb99
commit
5a6bf8301a
|
@ -96,6 +96,10 @@ let {{
|
|||
}
|
||||
break;
|
||||
case 0x1:
|
||||
{
|
||||
if (offset == 0 || vd + offset > NumFloatArchRegs) {
|
||||
break;
|
||||
}
|
||||
switch (bits(opcode, 1, 0)) {
|
||||
case 0x0:
|
||||
return new VLdmStm(machInst, rn, vd, single,
|
||||
|
@ -111,6 +115,7 @@ let {{
|
|||
return new VLdmStm(machInst, rn, vd, single,
|
||||
true, true, true, offset);
|
||||
}
|
||||
}
|
||||
case 0x2:
|
||||
if (bits(opcode, 1, 0) == 0x2) {
|
||||
// If rn == sp, then this is called vpush.
|
||||
|
|
Loading…
Reference in a new issue