ARM: Do something predictable for an UNPREDICTABLE branch.
This commit is contained in:
parent
46472279c0
commit
265e145db2
1 changed files with 4 additions and 0 deletions
|
@ -333,6 +333,10 @@ namespace ArmISA
|
|||
nextThumb(false);
|
||||
} else {
|
||||
warn("Bad interworking branch address %#x.\n", newPC);
|
||||
// This state is UNPREDICTABLE in the ARM architecture
|
||||
// The easy thing to do is just mask off the bit and
|
||||
// stay in the current mode, so we'll do that.
|
||||
newPC &= ~mask(2);
|
||||
}
|
||||
}
|
||||
npc(newPC);
|
||||
|
|
Loading…
Reference in a new issue