mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
target-arm/translate.c: Fix slightly misleading comment in Thumb decoder
Clarify some slightly misleading comments in the Thumb decoder's handling of the memory hint space -- in particular one code path marked as 'UNPREDICTABLE or unallocated hint' also includes some legitimate preload instructions. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
parent
4abc7ebf5f
commit
02afbf6475
1 changed files with 5 additions and 3 deletions
|
@ -9025,14 +9025,16 @@ static int disas_thumb2_insn(CPUState *env, DisasContext *s, uint16_t insn_hw1)
|
|||
goto illegal_op;
|
||||
}
|
||||
if (rn == 15) {
|
||||
/* UNPREDICTABLE or unallocated hint */
|
||||
/* UNPREDICTABLE, unallocated hint or
|
||||
* PLD/PLDW/PLI (literal)
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
if (op1 & 1) {
|
||||
return 0; /* PLD* or unallocated hint */
|
||||
return 0; /* PLD/PLDW/PLI or unallocated hint */
|
||||
}
|
||||
if ((op2 == 0) || ((op2 & 0x3c) == 0x30)) {
|
||||
return 0; /* PLD* or unallocated hint */
|
||||
return 0; /* PLD/PLDW/PLI or unallocated hint */
|
||||
}
|
||||
/* UNDEF space, or an UNPREDICTABLE */
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue