1997-05-01 22:33:23 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1998-04-26 22:03:55 +00:00
|
|
|
sinclude(../common/aclocal.m4)
|
1997-05-01 22:33:23 +00:00
|
|
|
AC_PREREQ(2.5)dnl
|
|
|
|
AC_INIT(Makefile.in)
|
|
|
|
|
|
|
|
SIM_AC_COMMON
|
|
|
|
|
|
|
|
sim_link_files="${sim_link_files} m32r-sim.h ../../opcodes/m32r-opc.h"
|
|
|
|
sim_link_links="${sim_link_links} cpu-sim.h cpu-opc.h"
|
|
|
|
|
|
|
|
SIM_AC_OPTION_ENDIAN(BIG_ENDIAN)
|
1997-09-22 09:40:57 +00:00
|
|
|
SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
|
1997-05-01 22:33:23 +00:00
|
|
|
SIM_AC_OPTION_HOSTENDIAN
|
|
|
|
SIM_AC_OPTION_SCACHE(1024)
|
|
|
|
SIM_AC_OPTION_DEFAULT_MODEL(m32r/d)
|
1997-12-04 02:09:26 +00:00
|
|
|
SIM_AC_OPTION_ENVIRONMENT
|
1997-05-01 22:33:23 +00:00
|
|
|
|
* Makefile.in: cgen_maint -> CGEN_MAINT.
* configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
* configure: Regenerate.
* arch.c,arch.h,cpuall.h: Regenerate.
* cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
* semx.c: Regenerate.
* mloopx.in (icount): Moved here from genmloop.sh.
1998-07-02 01:42:38 +00:00
|
|
|
cgen_maint=no
|
|
|
|
# Default is to use one in build tree.
|
|
|
|
cgen=../../cgen/cgen
|
|
|
|
cgendir='$(srcdir)/../../cgen'
|
1998-05-02 01:28:32 +00:00
|
|
|
# Having --enable-maintainer-mode take arguments is another way to go.
|
* Makefile.in: cgen_maint -> CGEN_MAINT.
* configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
* configure: Regenerate.
* arch.c,arch.h,cpuall.h: Regenerate.
* cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
* semx.c: Regenerate.
* mloopx.in (icount): Moved here from genmloop.sh.
1998-07-02 01:42:38 +00:00
|
|
|
# ??? One can argue --with is more appropriate if one wants to specify
|
|
|
|
# a directory name, but what we're doing here is an enable/disable kind
|
|
|
|
# of thing and specifying both --enable and --with is klunky.
|
|
|
|
# If you reeely want this to be --with, go ahead and change it.
|
1998-05-02 01:28:32 +00:00
|
|
|
AC_ARG_ENABLE(cgen-maint,
|
* Makefile.in: cgen_maint -> CGEN_MAINT.
* configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
* configure: Regenerate.
* arch.c,arch.h,cpuall.h: Regenerate.
* cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
* semx.c: Regenerate.
* mloopx.in (icount): Moved here from genmloop.sh.
1998-07-02 01:42:38 +00:00
|
|
|
[ --enable-cgen-maint[=dir] build cgen generated files],
|
1998-05-02 01:28:32 +00:00
|
|
|
[case "${enableval}" in
|
* Makefile.in: cgen_maint -> CGEN_MAINT.
* configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
* configure: Regenerate.
* arch.c,arch.h,cpuall.h: Regenerate.
* cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
* semx.c: Regenerate.
* mloopx.in (icount): Moved here from genmloop.sh.
1998-07-02 01:42:38 +00:00
|
|
|
yes) cgen_maint=yes ;;
|
|
|
|
no) cgen_maint=no ;;
|
|
|
|
*)
|
|
|
|
# argument is cgen install directory (not implemented yet).
|
|
|
|
# Having a `share' directory might be more appropriate for the .scm,
|
|
|
|
# .cpu, etc. files.
|
|
|
|
cgendir=${cgen_maint}/lib/cgen
|
|
|
|
cgen=${cgendir}/bin/cgen
|
|
|
|
;;
|
1998-05-02 01:28:32 +00:00
|
|
|
esac])dnl
|
* Makefile.in: cgen_maint -> CGEN_MAINT.
* configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
* configure: Regenerate.
* arch.c,arch.h,cpuall.h: Regenerate.
* cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
* semx.c: Regenerate.
* mloopx.in (icount): Moved here from genmloop.sh.
1998-07-02 01:42:38 +00:00
|
|
|
dnl AM_CONDITIONAL(CGEN_MAINT, test x${cgen_maint} != xno)
|
|
|
|
if test x${cgen_maint} != xno ; then
|
|
|
|
CGEN_MAINT=''
|
|
|
|
else
|
|
|
|
CGEN_MAINT='#'
|
* Makefile.in (M32R_OBJS): Add cpu.o.
(cpu.o): Add rule for.
(NL_TARGET): Define.
* configure.in: Add AC_CHECK_PROG(SCHEME).
* cpu.c: New file.
* cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* mloop.in (execute): Update call to semantic fn.
(M32RX_OBJS): Add cpux.o.
(cpux.o): Add rule for.
cpux.c: New file.
* cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
* m32rx.c (m32rx_h_accums_{get,set}): Rewrite.
(m32rx_h_cr_{get,set}): New functions.
(m32rx_h_accums_{get,set}): New functions.
* mloopx.in: Rewrite main loop.
* m32r.c (do_trap): Move from here.
* sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support.
(sim_create_inferior): Use h_pc_set.
(h_pc_{get,set}): New functions.
(h_gr_{get,set}): New functions.
(syscall_{read,write}_mem): New functions.
* sim-main.h (h_{gr,pc}_{get,set}): Declare.
1998-02-18 02:26:47 +00:00
|
|
|
fi
|
* Makefile.in: cgen_maint -> CGEN_MAINT.
* configure.in: AC_SUBST cgen,cgendir. No longer look for guile.
* configure: Regenerate.
* arch.c,arch.h,cpuall.h: Regenerate.
* cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate.
* semx.c: Regenerate.
* mloopx.in (icount): Moved here from genmloop.sh.
1998-07-02 01:42:38 +00:00
|
|
|
AC_SUBST(CGEN_MAINT)
|
|
|
|
AC_SUBST(cgendir)
|
|
|
|
AC_SUBST(cgen)
|
* Makefile.in (M32R_OBJS): Add cpu.o.
(cpu.o): Add rule for.
(NL_TARGET): Define.
* configure.in: Add AC_CHECK_PROG(SCHEME).
* cpu.c: New file.
* cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* mloop.in (execute): Update call to semantic fn.
(M32RX_OBJS): Add cpux.o.
(cpux.o): Add rule for.
cpux.c: New file.
* cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate.
* m32rx.c (m32rx_h_accums_{get,set}): Rewrite.
(m32rx_h_cr_{get,set}): New functions.
(m32rx_h_accums_{get,set}): New functions.
* mloopx.in: Rewrite main loop.
* m32r.c (do_trap): Move from here.
* sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support.
(sim_create_inferior): Use h_pc_set.
(h_pc_{get,set}): New functions.
(h_gr_{get,set}): New functions.
(syscall_{read,write}_mem): New functions.
* sim-main.h (h_{gr,pc}_{get,set}): Declare.
1998-02-18 02:26:47 +00:00
|
|
|
|
1997-05-01 22:33:23 +00:00
|
|
|
SIM_AC_OUTPUT
|