From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwGBz-0006mt-Md for qemu-devel@nongnu.org; Wed, 03 Dec 2014 15:06:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwGBt-0003Xs-RX for qemu-devel@nongnu.org; Wed, 03 Dec 2014 15:06:31 -0500 Received: from mail-oi0-f52.google.com ([209.85.218.52]:39166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwGBt-0003Xi-O0 for qemu-devel@nongnu.org; Wed, 03 Dec 2014 15:06:25 -0500 Received: by mail-oi0-f52.google.com with SMTP id h136so11258407oig.39 for ; Wed, 03 Dec 2014 12:06:25 -0800 (PST) From: Greg Bellows Date: Wed, 3 Dec 2014 14:06:03 -0600 Message-Id: <1417637167-20640-10-git-send-email-greg.bellows@linaro.org> In-Reply-To: <1417637167-20640-1-git-send-email-greg.bellows@linaro.org> References: <1417637167-20640-1-git-send-email-greg.bellows@linaro.org> Subject: [Qemu-devel] [PATCH 09/13] target-arm: Add feature unset function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, serge.fdrv@gmail.com, edgar.iglesias@gmail.com, aggelerf@ethz.ch, peter.maydell@linaro.org Cc: Greg Bellows Add an unset_feature() function to compliment the set_feature() function. This will be used to disable functions after they have been enabled during initialization. Signed-off-by: Greg Bellows --- target-arm/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index d3db279..01afed2 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -327,6 +327,11 @@ static inline void set_feature(CPUARMState *env, int feature) env->features |= 1ULL << feature; } +static inline void unset_feature(CPUARMState *env, int feature) +{ + env->features &= ~(1ULL << feature); +} + static void arm_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); -- 1.8.3.2