Add d10v and v850 to gennltvals.sh and regenerate.
authorAndrew Cagney <cagney@redhat.com>
Tue, 24 Nov 1998 07:59:01 +0000 (07:59 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 24 Nov 1998 07:59:01 +0000 (07:59 +0000)
Add a howto.

sim/README-HACKING
sim/common/gennltvals.sh
sim/common/nltvals.def

index 4ebef928f811c3683fb07b1bc516d6f54d85fd0a..05b28526c65f98b6226c48027fcfe5ccb137312d 100644 (file)
@@ -39,6 +39,7 @@ The configure.in of a simulator using the common framework should look like:
 
 --- snip ---
 dnl Process this file with autoconf to produce a configure script.
+sinclude(../common/aclocal.m4)
 AC_PREREQ(2.5)dnl
 AC_INIT(Makefile.in)
 
@@ -194,7 +195,7 @@ However, the user should be aware of the following:
        o       An empty array (eg int a[0]) is not valid.
 
 When building with GCC it is effectivly a requirement that
---enable-sim-warnings be specified during configuration.
+--enable-build-warnings=,-Werror be specified during configuration.
 \f
 "dump" commands under gdb
 =========================
@@ -210,16 +211,24 @@ internal state pretty printed from gdb.
 
 FIXME: This can obviously be made more elaborate.  As needed it will be.
 \f
-"dump" commands under gdb
-=========================
+Rebuilding nltvals.def
+======================
 
-gdbinit.in contains the following
+Checkout a copy of the SIM and LIBGLOSS modules (Unless you've already
+got one to hand):
 
-define dump
-set sim_debug_dump ()
-end
+       $  mkdir /tmp/$$
+       $  cd /tmp/$$
+       $  cvs checkout sim-no-testsuite libgloss-no-testsuite newlib-no-testsuite
 
-Simulators that define the sim_debug_dump function can then have their
-internal state pretty printed from gdb.
+Configure things for an arbitrary simulator target (I've d10v for
+convenience):
 
-FIXME: This can obviously be made more elaborate.  As needed it will be.
+       $  mkdir /tmp/$$/build
+       $  cd /tmp/$$/build
+       $  /tmp/$$/devo/configure --target=d10v-elf
+
+In the sim/common directory rebuild the headers:
+
+       $  cd sim/common
+       $  make headers
index 39f7c43af0e6f99977d479ae4d887c9e21924dce..4f538cfa004be6ab651ff3e801088043bdf28296 100644 (file)
@@ -29,6 +29,10 @@ $shell ${srccom}/gentvals.sh "" open ${srcroot}/newlib/libc/include \
 # Note that there is a standard syscall.h file (libgloss/syscall.h) now which
 # hopefully more targets can use.
 
+dir=libgloss target=d10v
+$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
+       "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
+
 dir=libgloss target=d30v
 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
@@ -41,7 +45,7 @@ dir=libgloss target=m32r
 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
 
-dir=libgloss target=sparc
+dir=libgloss target=mn10200
 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
 
@@ -49,6 +53,11 @@ dir=libgloss target=mn10300
 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
 
-dir=libgloss target=mn10200
+dir=libgloss target=sparc
 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
        "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
+
+dir=libgloss target=v850
+$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
+       "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}"
+
index e05d3a7631a1c0b89ca818ab0ac35080a6b9d47e..14e46f755d7e8d039cf1159c91137600ced461ef 100644 (file)
  { "O_WRONLY", 1  },
 /* end open target macros */
 #endif
+#ifdef NL_TARGET_d10v
+#ifdef sys_defs
+/* from syscall.h */
+/* begin d10v sys target macros */
+ { "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_kill", 9  },
+ { "SYS_lseek", 6  },
+ { "SYS_open", 2  },
+ { "SYS_read", 4  },
+ { "SYS_stat", 15  },
+ { "SYS_time", 18  },
+ { "SYS_unlink", 7  },
+ { "SYS_utime", 17  },
+ { "SYS_write", 5  },
+/* end d10v sys target macros */
+#endif
+#endif
 #ifdef NL_TARGET_d30v
 #ifdef sys_defs
 /* from syscall.h */
 /* end m32r sys target macros */
 #endif
 #endif
-#ifdef NL_TARGET_sparc
+#ifdef NL_TARGET_mn10200
 #ifdef sys_defs
 /* from syscall.h */
-/* begin sparc sys target macros */
+/* begin mn10200 sys target macros */
  { "SYS_argv", 13  },
  { "SYS_argvlen", 12  },
  { "SYS_chdir", 14  },
  { "SYS_unlink", 7  },
  { "SYS_utime", 17  },
  { "SYS_write", 5  },
-/* end sparc sys target macros */
+/* end mn10200 sys target macros */
 #endif
 #endif
 #ifdef NL_TARGET_mn10300
 /* end mn10300 sys target macros */
 #endif
 #endif
-#ifdef NL_TARGET_mn10200
+#ifdef NL_TARGET_sparc
 #ifdef sys_defs
 /* from syscall.h */
-/* begin mn10200 sys target macros */
+/* begin sparc sys target macros */
  { "SYS_argv", 13  },
  { "SYS_argvlen", 12  },
  { "SYS_chdir", 14  },
  { "SYS_unlink", 7  },
  { "SYS_utime", 17  },
  { "SYS_write", 5  },
-/* end mn10200 sys target macros */
+/* end sparc sys target macros */
+#endif
+#endif
+#ifdef NL_TARGET_v850
+#ifdef sys_defs
+/* from syscall.h */
+/* begin v850 sys target macros */
+ { "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_kill", 9  },
+ { "SYS_lseek", 6  },
+ { "SYS_open", 2  },
+ { "SYS_read", 4  },
+ { "SYS_stat", 15  },
+ { "SYS_time", 18  },
+ { "SYS_unlink", 7  },
+ { "SYS_utime", 17  },
+ { "SYS_write", 5  },
+/* end v850 sys target macros */
 #endif
 #endif
This page took 0.028226 seconds and 4 git commands to generate.