Received: from eggs.gnu.org ([140.186.70.92]:51307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTe7C-0006ZX-9c for qemu-devel@nongnu.org; Thu, 24 Nov 2011 13:33:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTe7A-0007Kv-RX for qemu-devel@nongnu.org; Thu, 24 Nov 2011 13:33:42 -0500 Received: from mnementh.archaic.org.uk ([81.2.115.146]:45404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTe7A-0007EJ-JS for qemu-devel@nongnu.org; Thu, 24 Nov 2011 13:33:40 -0500 From: Peter Maydell Date: Thu, 24 Nov 2011 18:33:31 +0000 Message-Id: <1322159611-3484-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] target-arm/translate.c: Fix slightly misleading comment in Thumb decoder List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Laurent Desnogues , patches@linaro.org 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 --- target-arm/translate.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 0f35b60..f91553a 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -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; -- 1.7.1