[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] update xtensa-sim.exp

From: Bob Wilson
Subject: [PATCH] update xtensa-sim.exp
Date: Mon, 30 Apr 2007 10:41:53 -0700
User-agent: Thunderbird (X11/20070403)

[resending x2 -- I've now subscribed to the list to attempt getting past the spam filter]

It has been quite a while since anyone updated the baseboards file for testing
Xtensa with Tensilica's simulator.  That simulator now has 2 options that are
helpful for DejaGnu.  The --turbo option switches to a functional simulation
mode that is much faster than the default cycle-accurate mode, and the
--exit_with_target_code option causes the simulator's exit code to be the exit
code of the simulated program.  The latter option is used to replace the
needs_status_wrapper setting, which in turn allows some tests for GCC to run
correctly.  I also updated some comments, added a setting for target_install,
and changed the file to not use basic-sim.exp since Tensilica's simulator has
nothing to do with the Cygnus simulator.

I've tested this patch by running the binutils and gcc testsuites with it.

2007-04-13  Bob Wilson  <address@hidden>

         * baseboards/xtensa-sim.exp: Set target_install.  Stop using
        basic-sim.exp.  Run the simulator with --turbo option.  Replace
        needs_status_wrapper with the simulator's --exit_with_target_code

Index: baseboards/xtensa-sim.exp
RCS file: /sources/dejagnu/dejagnu/baseboards/xtensa-sim.exp,v
retrieving revision 1.6
diff -u -r1.6 xtensa-sim.exp
--- baseboards/xtensa-sim.exp   24 Jun 2005 11:27:11 -0000      1.6
+++ baseboards/xtensa-sim.exp   13 Apr 2007 20:07:26 -0000
@@ -1,5 +1,5 @@
-# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software
-# Foundation, Inc.
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2007
+# Free Software Foundation, Inc.
 # This file is part of DejaGnu.
@@ -17,25 +17,28 @@
 # along with DejaGnu; if not, write to the Free Software Foundation,
 # Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
-# Load the generic configuration for this board. This will define a basic
-# set of routines used to communicate with the board.
+# This is a list of toolchains that are supported on this board.
+set_board_info target_install {xtensa-elf}
+# Load the generic configuration for this board.  This will define any
+# routines needed to communicate with the board.
 load_generic_config "sim"
-# basic-sim.exp is a basic description for the standard Cygnus simulator.
-load_base_board_description "basic-sim"
-# Command to invoke the simulator
+# We don't use basic-sim.exp and setup_sim because the simulator, called
+# "xt-run", is external to the build tree.
 set_board_info sim xt-run
-setup_sim xtensa
-# No multilib flags needed by default.
+set_board_info sim,options "--turbo --exit_with_target_code"
+set_board_info is_simulator 1
+# No default multilib options are needed for this board.
 process_multilib_options ""
-# The compiler used to build for this board. This has *nothing* to do
-# with what compiler is tested if we're testing gcc.
-set_board_info compiler       "[find_gcc]"
-set_board_info cflags         "[libgloss_include_flags]
-set_board_info ldflags        "[libgloss_link_flags] [newlib_link_flags]"
-# This board doesn't use a linker script.
+set_board_info compiler  "[find_gcc]"
+set_board_info cflags    "[libgloss_include_flags] [newlib_include_flags]"
+set_board_info ldflags   "[libgloss_link_flags] [newlib_link_flags]"
+# No linker script needed.
 set_board_info ldscript ""
-# The simulator doesn't return exit statuses and we need to indicate this.
-set_board_info needs_status_wrapper  1
 # No support for signals on this target.
 set_board_info gdb,nosignals 1

reply via email to

[Prev in Thread] Current Thread [Next in Thread]