From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDF4-0003oo-8O for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:01:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzDF0-0008JW-NV for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:01:38 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:48688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDF0-0008JO-HL for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:01:34 -0400 From: Peter Maydell Date: Tue, 24 Jun 2014 00:01:31 +0100 Message-Id: <1403564491-15624-5-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1403564491-15624-1-git-send-email-peter.maydell@linaro.org> References: <1403564491-15624-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 3/3] target-sparc: is_translating_asi() is TARGET_SPARC64 only List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Mark Cave-Ayland , Richard Henderson Move the is_translating_asi() inside the TARGET_SPARC64 ifdef (and remove the unimplemented 32-bit codepath), as it is only called from TARGET_SPARC64 code. This fixes a clang 3.4 unused-function warning. Signed-off-by: Peter Maydell --- target-sparc/ldst_helper.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/target-sparc/ldst_helper.c b/target-sparc/ldst_helper.c index f4be811..e0aee86 100644 --- a/target-sparc/ldst_helper.c +++ b/target-sparc/ldst_helper.c @@ -262,11 +262,12 @@ static inline target_ulong address_mask(CPUSPARCState *env1, target_ulong addr) } #endif +#ifdef TARGET_SPARC64 /* returns true if access using this ASI is to have address translated by MMU otherwise access is to raw physical address */ +/* TODO: check sparc32 bits */ static inline int is_translating_asi(int asi) { -#ifdef TARGET_SPARC64 /* Ultrasparc IIi translating asi - note this list is defined by cpu implementation */ @@ -283,13 +284,8 @@ static inline int is_translating_asi(int asi) default: return 0; } -#else - /* TODO: check sparc32 bits */ - return 0; -#endif } -#ifdef TARGET_SPARC64 static inline target_ulong asi_address_mask(CPUSPARCState *env, int asi, target_ulong addr) { -- 2.0.0