From patchwork Sun Jun 3 21:06:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 162599 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3C107B6FD1 for ; Mon, 4 Jun 2012 07:08:04 +1000 (EST) Received: from localhost ([::1]:45374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbI1q-0008UC-27 for incoming@patchwork.ozlabs.org; Sun, 03 Jun 2012 17:08:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbI1V-0007hy-8X for qemu-devel@nongnu.org; Sun, 03 Jun 2012 17:07:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbI1T-0003jw-Mc for qemu-devel@nongnu.org; Sun, 03 Jun 2012 17:07:40 -0400 Received: from mail-lpp01m010-f45.google.com ([209.85.215.45]:46995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbI1T-0003je-Cj for qemu-devel@nongnu.org; Sun, 03 Jun 2012 17:07:39 -0400 Received: by lahc1 with SMTP id c1so2977283lah.4 for ; Sun, 03 Jun 2012 14:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=S4aANja2chfVdALrKZlTtV/qSjHaxTLbmWeIt/bsgMk=; b=TbvVesK/yKDLzwFVjURyqZ/AEklwEQozVOCmj0iqe5SnocXDTc+dC9Val8dRP7u3dQ Vnwaad0xn2U8D5O6j7tZ0Au7mOCS1sEQyhPctkKQQUlxQIAK7E6N5ILs/t6gnF2DuQ9s lVBSvoG9+VRBu1vkH4Q5AR9J30BaOpzxsi44UeCt9v/L0GR6iKJQgfpqoE3AyLmrIsKk S//MJWpAPxmNDyBtaHEi7P3K1PR3HL4u6EoXbfiAlB4o4IK2aPJf9cCHFudK48hL95rZ VXan+QPY62k8hNtL82OmMAIEO5mrxTJiwVSHfeLvj2vj72cN/hiB5kkP2IbIo6l+ahdf iHmg== Received: by 10.152.144.234 with SMTP id sp10mr9960381lab.51.1338757657183; Sun, 03 Jun 2012 14:07:37 -0700 (PDT) Received: from octofox.metropolis ([188.134.19.124]) by mx.google.com with ESMTPS id n7sm5378953lbk.10.2012.06.03.14.07.34 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jun 2012 14:07:36 -0700 (PDT) From: Max Filippov To: qemu-devel@nongnu.org Date: Mon, 4 Jun 2012 01:06:57 +0400 Message-Id: <1338757618-9645-2-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1338757618-9645-1-git-send-email-jcmvbkbc@gmail.com> References: <1338757618-9645-1-git-send-email-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.45 Cc: Max Filippov Subject: [Qemu-devel] [PATCH 1/2] target-xtensa: add attributes to helper functions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Mark exception generating functions 'noreturn' and pure constant functions as such. Signed-off-by: Max Filippov --- target-xtensa/helper.h | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/target-xtensa/helper.h b/target-xtensa/helper.h index 48a741e..9dd6f89 100644 --- a/target-xtensa/helper.h +++ b/target-xtensa/helper.h @@ -1,12 +1,12 @@ #include "def-helper.h" -DEF_HELPER_1(exception, void, i32) -DEF_HELPER_2(exception_cause, void, i32, i32) -DEF_HELPER_3(exception_cause_vaddr, void, i32, i32, i32) -DEF_HELPER_2(debug_exception, void, i32, i32) +DEF_HELPER_1(exception, noreturn, i32) +DEF_HELPER_2(exception_cause, noreturn, i32, i32) +DEF_HELPER_3(exception_cause_vaddr, noreturn, i32, i32, i32) +DEF_HELPER_2(debug_exception, noreturn, i32, i32) -DEF_HELPER_1(nsa, i32, i32) -DEF_HELPER_1(nsau, i32, i32) +DEF_HELPER_FLAGS_1(nsa, TCG_CALL_CONST | TCG_CALL_PURE, i32, i32) +DEF_HELPER_FLAGS_1(nsau, TCG_CALL_CONST | TCG_CALL_PURE, i32, i32) DEF_HELPER_1(wsr_windowbase, void, i32) DEF_HELPER_3(entry, void, i32, i32, i32) DEF_HELPER_1(retw, i32, i32) @@ -25,8 +25,8 @@ DEF_HELPER_1(advance_ccount, void, i32) DEF_HELPER_1(check_interrupts, void, env) DEF_HELPER_1(wsr_rasid, void, i32) -DEF_HELPER_2(rtlb0, i32, i32, i32) -DEF_HELPER_2(rtlb1, i32, i32, i32) +DEF_HELPER_FLAGS_2(rtlb0, TCG_CALL_CONST | TCG_CALL_PURE, i32, i32, i32) +DEF_HELPER_FLAGS_2(rtlb1, TCG_CALL_CONST | TCG_CALL_PURE, i32, i32, i32) DEF_HELPER_2(itlb, void, i32, i32) DEF_HELPER_2(ptlb, i32, i32, i32) DEF_HELPER_3(wtlb, void, i32, i32, i32)