dejagnu
[Top][All Lists]
Advanced

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

[PATCH] Add bpf-sim.exp


From: Jose E. Marchesi
Subject: [PATCH] Add bpf-sim.exp
Date: Wed, 2 Sep 2020 15:02:05 +0200

Hi good peoples!

This patch adds support for a new board, bpf-sim.
Salud!

---
 ChangeLog              |  6 ++++
 Makefile.am            |  1 +
 Makefile.in            |  1 +
 baseboards/bpf-sim.exp | 64 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 72 insertions(+)
 create mode 100644 baseboards/bpf-sim.exp

diff --git a/ChangeLog b/ChangeLog
index 362d322..516592b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-09-02  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * baseboards/bpf-sim.exp: New file.
+       * Makefile.am (baseboard_DATA): Add bpf-sim.exp.
+       * Makefile.in (baseboard_DATA): Likewise.
+
 2020-09-02  Jose E. Marchesi  <jose.marchesi@oracle.com>
 
        * Makefile.am (install-data-hook): Allow git branches with
diff --git a/Makefile.am b/Makefile.am
index 4c72d65..111699b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -95,6 +95,7 @@ baseboard_DATA = \
        baseboards/arm-sim.exp \
        baseboards/basic-sid.exp \
        baseboards/basic-sim.exp \
+       baseboards/bpf-sim.exp \
        baseboards/cris-sim.exp \
        baseboards/d30v-sim.exp \
        baseboards/fr30-sim.exp \
diff --git a/Makefile.in b/Makefile.in
index 809c4e1..4899872 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -438,6 +438,7 @@ baseboard_DATA = \
        baseboards/arm-sim.exp \
        baseboards/basic-sid.exp \
        baseboards/basic-sim.exp \
+       baseboards/bpf-sim.exp \
        baseboards/cris-sim.exp \
        baseboards/d30v-sim.exp \
        baseboards/fr30-sim.exp \
diff --git a/baseboards/bpf-sim.exp b/baseboards/bpf-sim.exp
new file mode 100644
index 0000000..353f336
--- /dev/null
+++ b/baseboards/bpf-sim.exp
@@ -0,0 +1,64 @@
+# Copyright (C) 1997-2019, 2020 Free Software Foundation, Inc.
+#
+# This file is part of DejaGnu. For BPF target simulation.
+#
+# DejaGnu is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# DejaGnu is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# 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.
+load_generic_config "sim"
+
+# basic-sim.exp is a basic description for the standard Cygnus simulator.
+load_base_board_description "basic-sim"
+
+# This tells it which directory to look in for the simulator.
+setup_sim bpf
+
+# Some memory in the sim.
+set_board_info sim,options "--memory-size 4m"
+
+# No multilib flags are set by default.
+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]"
+
+# The basic set of flags needed to build "hello world" for this
+# board.
+set_board_info cflags  "-mxbpf -mframe-limit=32767"
+set_board_info ldflags ""
+
+# This board doesn't use a linker script.
+set_board_info ldscript ""
+
+# And, it can't do arguments, and doesn't have real signals.
+
+set_board_info noargs 1
+set_board_info gdb,nosignals 1
+
+# skip gdb.reverse
+set_board_info gdb,can_reverse 0
+set_board_info gdb,use_precord 0
+
+# Setup the timeout
+set_board_info gcc,timeout 600
+
+# Small memory, can't do gdb's "huge.exp" test.
+set_board_info gdb,skip_huge_test 1
+
+# Used by a few gcc.c-torture testcases to delimit how large the stack
+# can be.
+set_board_info gcc,stack_size 512
-- 
2.25.0.2.g232378479e




reply via email to

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