From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUrie-0006i9-Sg for qemu-devel@nongnu.org; Mon, 18 Jun 2018 06:49:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUrie-0002Fh-1J for qemu-devel@nongnu.org; Mon, 18 Jun 2018 06:49:08 -0400 Received: from mail-oi0-x242.google.com ([2607:f8b0:4003:c06::242]:42989) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUrid-0002FH-RL for qemu-devel@nongnu.org; Mon, 18 Jun 2018 06:49:07 -0400 Received: by mail-oi0-x242.google.com with SMTP id k190-v6so14372092oib.9 for ; Mon, 18 Jun 2018 03:49:07 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20180612204632.28780-1-jusual@mail.ru> <826808f0-4dc4-261d-4c54-46c807bb75c9@linaro.org> From: Peter Maydell Date: Mon, 18 Jun 2018 11:48:46 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH] target/arm: Allow ARMv6-M Thumb2 instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Julia Suvorova Cc: Richard Henderson , Jim Mussared , =?UTF-8?Q?Steffen_G=C3=B6rtz?= , QEMU Developers , Stefan Hajnoczi , Joel Stanley On 17 June 2018 at 19:48, Julia Suvorova wrote: > I can make it if you wish. > In addition, we can simplify following "if" by removing ARM_FEATURE_V6 > since V7M and V8M define V6: > > if (!arm_dc_feature(s, ARM_FEATURE_V7) && > !(arm_dc_feature(s, ARM_FEATURE_V6) && > arm_dc_feature(s, ARM_FEATURE_M))) { > goto illegal_op; > } > > Like this: > > if (!arm_dc_feature(s, ARM_FEATURE_V7) && > !arm_dc_feature(s, ARM_FEATURE_M)) { > goto illegal_op; > } > > What do you think? Yes; that would be reasonable. I did consider making that change when I applied the patch, but decided I didn't really care much either way. So if you want to send a patch for it that's fine; if you don't, that's also fine. thanks -- PMM