Received: from multi.imgtec.com ([194.200.65.239]:34960 "EHLO multi.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6829860Ab3FEVQGJhnXF (ORCPT ); Wed, 5 Jun 2013 23:16:06 +0200 Message-ID: <51AFAA8C.6080002@imgtec.com> Date: Wed, 5 Jun 2013 16:15:56 -0500 From: "Steven J. Hill" MIME-Version: 1.0 Subject: Re: [PATCH v6] MIPS: micromips: Fix improper definition of ISA exception bit. References: <1370461798-20296-1-git-send-email-Steven.Hill@imgtec.com> <51AFA540.5010207@gmail.com> In-Reply-To: <51AFA540.5010207@gmail.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: David Daney Cc: linux-mips@linux-mips.org Message-ID: <20130605211556.mvNrHWGb3HAXtxILErBDc7AiMg1m5ocssZqBJQxmFG4@z> On 06/05/2013 03:53 PM, David Daney wrote: > > You can only manipulate this bit if you know microMIPS is supported. So > I think you should either not touch it for the non-microMIPS case, or > make the write conditional on the presence of microMIPS support in the CPU. > I decided to surround with SYS_SUPPORTS_MICROMIPS so the function could be optimized out in v7 of the patch.