]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-arm/translate.c: Fix slightly misleading comment in Thumb decoder
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 24 Nov 2011 18:33:31 +0000 (19:33 +0100)
committerAndrzej Zaborowski <balrog@zabor.org>
Mon, 5 Dec 2011 20:38:44 +0000 (21:38 +0100)
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>
target-arm/translate.c

index 0f35b60946907bf20fba5e094589e8e7efd697b1..f91553a48ab69af437b9699533401957c85f3348 100644 (file)
@@ -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;