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 (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
|
|
|
if test ${USE_MAINTAINER_MODE} = yes ; then
|
|
|
|
AC_CHECK_PROG(SCHEME, guile, guile, guile)
|
|
|
|
fi
|
|
|
|
|
1997-05-01 22:33:23 +00:00
|
|
|
SIM_AC_OUTPUT
|