From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3311 invoked by alias); 26 May 2011 18:19:56 -0000 Received: (qmail 3300 invoked by uid 22791); 26 May 2011 18:19:55 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-bw0-f41.google.com (HELO mail-bw0-f41.google.com) (209.85.214.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 26 May 2011 18:19:39 +0000 Received: by bwz17 with SMTP id 17so823407bwz.0 for ; Thu, 26 May 2011 11:19:38 -0700 (PDT) Received: by 10.204.19.10 with SMTP id y10mr890957bka.190.1306433978125; Thu, 26 May 2011 11:19:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.65.65 with HTTP; Thu, 26 May 2011 11:19:18 -0700 (PDT) In-Reply-To: <201105250930.03566.vapier@gentoo.org> References: <20110311150447.68b4b30a@mesquite.lan> <201105250930.03566.vapier@gentoo.org> From: Mike Frysinger Date: Thu, 26 May 2011 18:19:00 -0000 Message-ID: Subject: Re: [RFC] sim updates which fix some fileio.exp failures for v850-elf To: gdb-patches@sourceware.org Cc: Kevin Buettner Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00615.txt.bz2 On Wed, May 25, 2011 at 09:30, Mike Frysinger wrote: > On Friday, March 11, 2011 17:04:47 Kevin Buettner wrote: >> Note that the newlib changes are needed for regenerating nltvals.def. = =A0I >> didn't post the regenerated file below as it's quite large. =A0(There are >> some whitespace differences which make it look a lot bigger than it real= ly >> is. =A0A more meaningful patch can be obtained by use of diff's -w switc= h. >> I'd be willing to post that diff if anyone's interested.) > > it looks like you regenerated against an old tree because your new file > dropped all Blackfin defines. =A0so now the bfin sim fails to execute any > libgloss syscalls. > > could you figure out what's up on your side and then commit a fixed list ? i like having this worked so i just committed the attached patch. please still double check stuff on your side though so it doesnt break things again. -mike 2011-05-26 Mike Frysinger * nltvals.def: Regenerate to include Blackfin syscalls again. sim/common/nltvals.def | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/sim/common/nltvals.def b/sim/common/nltvals.def index 07c76a1..bc858b8 100644 --- a/sim/common/nltvals.def +++ b/sim/common/nltvals.def @@ -149,6 +149,37 @@ { "O_WRONLY", 1 }, /* end open target macros */ #endif +#ifdef NL_TARGET_bfin +#ifdef sys_defs +/* from syscall.h */ +/* begin bfin sys target macros */ + { "SYS_argc", 22 }, + { "SYS_argn", 24 }, + { "SYS_argnlen", 23 }, + { "SYS_argv", 13 }, + { "SYS_argvlen", 12 }, + { "SYS_chdir", 14 }, + { "SYS_chmod", 16 }, + { "SYS_close", 3 }, + { "SYS_exit", 1 }, + { "SYS_fstat", 10 }, + { "SYS_getpid", 8 }, + { "SYS_gettimeofday", 19 }, + { "SYS_kill", 9 }, + { "SYS_link", 21 }, + { "SYS_lseek", 6 }, + { "SYS_open", 2 }, + { "SYS_read", 4 }, + { "SYS_reconfig", 25 }, + { "SYS_stat", 15 }, + { "SYS_time", 18 }, + { "SYS_times", 20 }, + { "SYS_unlink", 7 }, + { "SYS_utime", 17 }, + { "SYS_write", 5 }, +/* end bfin sys target macros */ +#endif +#endif #ifdef NL_TARGET_d10v #ifdef sys_defs /* from syscall.h */ --