From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25492 invoked by alias); 1 Jul 2007 08:01:32 -0000 Received: (qmail 25482 invoked by uid 22791); 1 Jul 2007 08:01:31 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.174) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 01 Jul 2007 08:01:29 +0000 Received: by ug-out-1314.google.com with SMTP id m2so395377ugc for ; Sun, 01 Jul 2007 01:01:27 -0700 (PDT) Received: by 10.66.252.18 with SMTP id z18mr3227291ugh.1183276887304; Sun, 01 Jul 2007 01:01:27 -0700 (PDT) Received: from scientist.local ( [213.140.22.65]) by mx.google.com with ESMTP id g28sm12719963fkg.2007.07.01.01.01.26 (version=SSLv3 cipher=RC4-MD5); Sun, 01 Jul 2007 01:01:26 -0700 (PDT) Message-ID: <46875F54.8070905@gnu.org> Date: Sun, 01 Jul 2007 08:01:00 -0000 From: Paolo Bonzini User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: David Daney CC: gcc-patches@gcc.gnu.org Subject: Re: [Patch] 1/3 Add new builtin __builtin_flush_icache(). References: <468734D3.3020908@avtrex.com> In-Reply-To: <468734D3.3020908@avtrex.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg00014.txt.bz2 > The prototype for the new built-in is: > > void __builtin_flush_icache(void *location, size_t len); > > As one might expect, it flushes the region of memory pointed to by > location with length len from the instruction cache. The > new builtin and the flush_icache insn would be the preferred mechanism > to flushing the i-cache. libgcc already exports __clear_cache with this prototype: void __clear_cache (char *beg __attribute__((__unused__)), char *end __attribute__((__unused__))) Paolo