From bf09d568b88190e4893533f4225ad22396e61615 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 27 Dec 2023 01:05:23 -0500 Subject: [PATCH] libgloss: merge visium into top-level Makefile Avoid a recursive make to speed things up a bit. A visium-elf build shows installed objects & libs produce same code. --- libgloss/Makefile.am | 3 + libgloss/Makefile.in | 260 +++++++++++++++++++++++++-------- libgloss/configure | 19 ++- libgloss/configure.ac | 5 +- libgloss/visium/Makefile.in | 132 ----------------- libgloss/visium/Makefile.inc | 53 +++++++ libgloss/visium/sim-syscalls.c | 31 ++++ 7 files changed, 300 insertions(+), 203 deletions(-) delete mode 100644 libgloss/visium/Makefile.in create mode 100644 libgloss/visium/Makefile.inc create mode 100644 libgloss/visium/sim-syscalls.c diff --git a/libgloss/Makefile.am b/libgloss/Makefile.am index 6b897e5ef..116000217 100644 --- a/libgloss/Makefile.am +++ b/libgloss/Makefile.am @@ -150,6 +150,9 @@ endif if CONFIG_V850 include v850/Makefile.inc endif +if CONFIG_VISIUM +include visium/Makefile.inc +endif if CONFIG_WINCE include wince/Makefile.inc endif diff --git a/libgloss/Makefile.in b/libgloss/Makefile.in index 6ad084106..6fa581eea 100644 --- a/libgloss/Makefile.in +++ b/libgloss/Makefile.in @@ -297,25 +297,29 @@ multilibtool_PROGRAMS = $(am__EXEEXT_6) @CONFIG_V850_TRUE@am__append_81 = v850/crt0.o @CONFIG_V850_TRUE@am__append_82 = v850/crt0.S @CONFIG_V850_TRUE@am__append_83 = v850/libsim.a -@CONFIG_WINCE_TRUE@am__append_84 = $(gdbdir) -@CONFIG_WINCE_TRUE@am__append_85 = wince/stub.exe -@CONFIG_XSTORMY16_TRUE@am__append_86 = xstormy16/crt0.o \ +@CONFIG_VISIUM_TRUE@am__append_84 = visium/crt0.o +@CONFIG_VISIUM_TRUE@am__append_85 = visium/crt0.S +@CONFIG_VISIUM_TRUE@am__append_86 = visium/libserial.a visium/libsim.a \ +@CONFIG_VISIUM_TRUE@ visium/libdebug.a +@CONFIG_WINCE_TRUE@am__append_87 = $(gdbdir) +@CONFIG_WINCE_TRUE@am__append_88 = wince/stub.exe +@CONFIG_XSTORMY16_TRUE@am__append_89 = xstormy16/crt0.o \ @CONFIG_XSTORMY16_TRUE@ xstormy16/crti.o xstormy16/crtn.o \ @CONFIG_XSTORMY16_TRUE@ xstormy16/sim_high.ld \ @CONFIG_XSTORMY16_TRUE@ xstormy16/sim_rom.ld \ @CONFIG_XSTORMY16_TRUE@ xstormy16/eva_app.ld \ @CONFIG_XSTORMY16_TRUE@ xstormy16/eva_stub.hex -@CONFIG_XSTORMY16_TRUE@am__append_87 = \ +@CONFIG_XSTORMY16_TRUE@am__append_90 = \ @CONFIG_XSTORMY16_TRUE@ xstormy16/crt0.s \ @CONFIG_XSTORMY16_TRUE@ xstormy16/crti.s \ @CONFIG_XSTORMY16_TRUE@ xstormy16/crtn.s -@CONFIG_XSTORMY16_TRUE@am__append_88 = xstormy16/libsim.a \ +@CONFIG_XSTORMY16_TRUE@am__append_91 = xstormy16/libsim.a \ @CONFIG_XSTORMY16_TRUE@ xstormy16/libeva_app.a -@CONFIG_XSTORMY16_TRUE@am__append_89 = xstormy16/eva_stub.elf -@CONFIG_XSTORMY16_TRUE@am__append_90 = xstormy16/eva_stub.hex -@CONFIG_XTENSA_TRUE@am__append_91 = -D_LIBGLOSS -I$(srcdir)/xtensa/include -@CONFIG_XTENSA_TRUE@am__append_92 = \ +@CONFIG_XSTORMY16_TRUE@am__append_92 = xstormy16/eva_stub.elf +@CONFIG_XSTORMY16_TRUE@am__append_93 = xstormy16/eva_stub.hex +@CONFIG_XTENSA_TRUE@am__append_94 = -D_LIBGLOSS -I$(srcdir)/xtensa/include +@CONFIG_XTENSA_TRUE@am__append_95 = \ @CONFIG_XTENSA_TRUE@ xtensa/default.specs \ @CONFIG_XTENSA_TRUE@ xtensa/nano.specs \ @CONFIG_XTENSA_TRUE@ xtensa/sim.elf.specs \ @@ -324,27 +328,27 @@ multilibtool_PROGRAMS = $(am__EXEEXT_6) @CONFIG_XTENSA_TRUE@ xtensa/sys.openocd.specs \ @CONFIG_XTENSA_TRUE@ xtensa/crt0.o -@CONFIG_XTENSA_TRUE@am__append_93 = \ +@CONFIG_XTENSA_TRUE@am__append_96 = \ @CONFIG_XTENSA_TRUE@ xtensa/crt0.S \ @CONFIG_XTENSA_TRUE@ xtensa/crt1-sim.S \ @CONFIG_XTENSA_TRUE@ xtensa/crt1-boards.S -@CONFIG_XTENSA_TRUE@am__append_94 = xtensa/libgloss.a -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_95 = \ +@CONFIG_XTENSA_TRUE@am__append_97 = xtensa/libgloss.a +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_98 = \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/app.elf.ld \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/crt1-sim.o \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/crt1-boards.o -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_96 = xtensa/libsys_qemu.a \ +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_99 = xtensa/libsys_qemu.a \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/libsys_openocd.a -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_97 = xtensa/boards/esp32/memory.elf.ld -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_98 = xtensa/boards/esp32/board.c -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_99 = -I$(srcdir)/xtensa/boards/esp32/include -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_100 = -I$(srcdir)/xtensa/boards/esp32/include -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32S3_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_101 = xtensa/boards/esp32s3/memory.elf.ld -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32S3_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_102 = xtensa/boards/esp32s3/board.c -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32S3_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_103 = -I$(srcdir)/xtensa/boards/esp32s3/include -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32S3_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_104 = -I$(srcdir)/xtensa/boards/esp32s3/include +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_100 = xtensa/boards/esp32/memory.elf.ld +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_101 = xtensa/boards/esp32/board.c +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_102 = -I$(srcdir)/xtensa/boards/esp32/include +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_103 = -I$(srcdir)/xtensa/boards/esp32/include +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32S3_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_104 = xtensa/boards/esp32s3/memory.elf.ld +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32S3_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_105 = xtensa/boards/esp32s3/board.c +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32S3_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_106 = -I$(srcdir)/xtensa/boards/esp32s3/include +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32S3_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__append_107 = -I$(srcdir)/xtensa/boards/esp32s3/include subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \ @@ -373,8 +377,8 @@ CONFIG_CLEAN_FILES = epiphany/Makefile m68hc11/Makefile m68k/Makefile \ pa/Makefile sparc_leon/Makefile sparc/Makefile mips/Makefile \ rs6000/Makefile cr16/Makefile cris/Makefile crx/Makefile \ fr30/Makefile ft32/Makefile mep/Makefile microblaze/Makefile \ - mt/Makefile visium/Makefile xc16x/Makefile m32c/Makefile \ - spu/Makefile tic6x/Makefile or1k/Makefile pru/Makefile \ + mt/Makefile xc16x/Makefile m32c/Makefile spu/Makefile \ + tic6x/Makefile or1k/Makefile pru/Makefile \ sparc/libsys/Makefile CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; @@ -621,10 +625,11 @@ libobjs_a_LIBADD = @CONFIG_RX_TRUE@am__objects_18 = rx/gcrt0.$(OBJEXT) rx/crt0.$(OBJEXT) \ @CONFIG_RX_TRUE@ rx/crtn.$(OBJEXT) @CONFIG_V850_TRUE@am__objects_19 = v850/crt0.$(OBJEXT) -@CONFIG_XSTORMY16_TRUE@am__objects_20 = xstormy16/crt0.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@am__objects_20 = visium/crt0.$(OBJEXT) +@CONFIG_XSTORMY16_TRUE@am__objects_21 = xstormy16/crt0.$(OBJEXT) \ @CONFIG_XSTORMY16_TRUE@ xstormy16/crti.$(OBJEXT) \ @CONFIG_XSTORMY16_TRUE@ xstormy16/crtn.$(OBJEXT) -@CONFIG_XTENSA_TRUE@am__objects_21 = xtensa/crt0.$(OBJEXT) \ +@CONFIG_XTENSA_TRUE@am__objects_22 = xtensa/crt0.$(OBJEXT) \ @CONFIG_XTENSA_TRUE@ xtensa/crt1-sim.$(OBJEXT) \ @CONFIG_XTENSA_TRUE@ xtensa/crt1-boards.$(OBJEXT) am_libobjs_a_OBJECTS = $(am__objects_3) $(am__objects_4) \ @@ -633,7 +638,7 @@ am_libobjs_a_OBJECTS = $(am__objects_3) $(am__objects_4) \ $(am__objects_11) $(am__objects_12) $(am__objects_13) \ $(am__objects_14) $(am__objects_15) $(am__objects_16) \ $(am__objects_17) $(am__objects_18) $(am__objects_19) \ - $(am__objects_20) $(am__objects_21) + $(am__objects_20) $(am__objects_21) $(am__objects_22) libobjs_a_OBJECTS = $(am_libobjs_a_OBJECTS) lm32_libgloss_a_AR = $(AR) $(ARFLAGS) lm32_libgloss_a_LIBADD = @@ -642,7 +647,7 @@ lm32_libgloss_a_LIBADD = lm32_libgloss_a_OBJECTS = $(am_lm32_libgloss_a_OBJECTS) m32r_libgloss_a_AR = $(AR) $(ARFLAGS) m32r_libgloss_a_LIBADD = -@CONFIG_M32R_TRUE@am__objects_22 = m32r/chmod.$(OBJEXT) \ +@CONFIG_M32R_TRUE@am__objects_23 = m32r/chmod.$(OBJEXT) \ @CONFIG_M32R_TRUE@ m32r/close.$(OBJEXT) m32r/exit.$(OBJEXT) \ @CONFIG_M32R_TRUE@ m32r/fstat.$(OBJEXT) m32r/getpid.$(OBJEXT) \ @CONFIG_M32R_TRUE@ m32r/isatty.$(OBJEXT) m32r/kill.$(OBJEXT) \ @@ -652,16 +657,16 @@ m32r_libgloss_a_LIBADD = @CONFIG_M32R_TRUE@ m32r/unlink.$(OBJEXT) m32r/utime.$(OBJEXT) \ @CONFIG_M32R_TRUE@ m32r/write.$(OBJEXT) @CONFIG_M32R_TRUE@am_m32r_libgloss_a_OBJECTS = m32r/trap0.$(OBJEXT) \ -@CONFIG_M32R_TRUE@ $(am__objects_22) +@CONFIG_M32R_TRUE@ $(am__objects_23) m32r_libgloss_a_OBJECTS = $(am_m32r_libgloss_a_OBJECTS) m32r_libmon_a_AR = $(AR) $(ARFLAGS) m32r_libmon_a_LIBADD = @CONFIG_M32R_TRUE@am_m32r_libmon_a_OBJECTS = m32r/trapmon0.$(OBJEXT) \ -@CONFIG_M32R_TRUE@ $(am__objects_22) +@CONFIG_M32R_TRUE@ $(am__objects_23) m32r_libmon_a_OBJECTS = $(am_m32r_libmon_a_OBJECTS) mcore_libcmb_a_AR = $(AR) $(ARFLAGS) mcore_libcmb_a_LIBADD = -@CONFIG_MCORE_TRUE@am__objects_23 = mcore/fstat.$(OBJEXT) \ +@CONFIG_MCORE_TRUE@am__objects_24 = mcore/fstat.$(OBJEXT) \ @CONFIG_MCORE_TRUE@ mcore/getpid.$(OBJEXT) isatty.$(OBJEXT) \ @CONFIG_MCORE_TRUE@ mcore/kill.$(OBJEXT) mcore/raise.$(OBJEXT) \ @CONFIG_MCORE_TRUE@ mcore/putnum.$(OBJEXT) mcore/stat.$(OBJEXT) \ @@ -673,12 +678,12 @@ mcore_libcmb_a_LIBADD = @CONFIG_MCORE_TRUE@ mcore/cmb-exit.$(OBJEXT) \ @CONFIG_MCORE_TRUE@ mcore/cmb-inbyte.$(OBJEXT) \ @CONFIG_MCORE_TRUE@ mcore/cmb-outbyte.$(OBJEXT) \ -@CONFIG_MCORE_TRUE@ $(am__objects_23) +@CONFIG_MCORE_TRUE@ $(am__objects_24) mcore_libcmb_a_OBJECTS = $(am_mcore_libcmb_a_OBJECTS) mcore_libsim_a_AR = $(AR) $(ARFLAGS) mcore_libsim_a_LIBADD = @CONFIG_MCORE_TRUE@am_mcore_libsim_a_OBJECTS = \ -@CONFIG_MCORE_TRUE@ mcore/syscalls.$(OBJEXT) $(am__objects_23) +@CONFIG_MCORE_TRUE@ mcore/syscalls.$(OBJEXT) $(am__objects_24) mcore_libsim_a_OBJECTS = $(am_mcore_libsim_a_OBJECTS) mn10200_libeval_a_AR = $(AR) $(ARFLAGS) mn10200_libeval_a_LIBADD = @@ -705,7 +710,7 @@ mn10200_libeval_a_LIBADD = mn10200_libeval_a_OBJECTS = $(am_mn10200_libeval_a_OBJECTS) mn10300_libcygmon_a_AR = $(AR) $(ARFLAGS) mn10300_libcygmon_a_LIBADD = -@CONFIG_MN10300_TRUE@am__objects_24 = mn10300/_exit.$(OBJEXT) \ +@CONFIG_MN10300_TRUE@am__objects_25 = mn10300/_exit.$(OBJEXT) \ @CONFIG_MN10300_TRUE@ mn10300/access.$(OBJEXT) \ @CONFIG_MN10300_TRUE@ mn10300/chmod.$(OBJEXT) \ @CONFIG_MN10300_TRUE@ mn10300/close.$(OBJEXT) \ @@ -724,12 +729,12 @@ mn10300_libcygmon_a_LIBADD = @CONFIG_MN10300_TRUE@ mn10300/unlink.$(OBJEXT) \ @CONFIG_MN10300_TRUE@ mn10300/utime.$(OBJEXT) \ @CONFIG_MN10300_TRUE@ mn10300/write.$(OBJEXT) -@CONFIG_MN10300_TRUE@@MN10300_BUILD_LIBCYGMON_TRUE@am_mn10300_libcygmon_a_OBJECTS = $(am__objects_24) \ +@CONFIG_MN10300_TRUE@@MN10300_BUILD_LIBCYGMON_TRUE@am_mn10300_libcygmon_a_OBJECTS = $(am__objects_25) \ @CONFIG_MN10300_TRUE@@MN10300_BUILD_LIBCYGMON_TRUE@ mn10300/cygmon.$(OBJEXT) mn10300_libcygmon_a_OBJECTS = $(am_mn10300_libcygmon_a_OBJECTS) mn10300_libeval_a_AR = $(AR) $(ARFLAGS) mn10300_libeval_a_LIBADD = -@CONFIG_MN10300_TRUE@am_mn10300_libeval_a_OBJECTS = $(am__objects_24) \ +@CONFIG_MN10300_TRUE@am_mn10300_libeval_a_OBJECTS = $(am__objects_25) \ @CONFIG_MN10300_TRUE@ mn10300/trap.$(OBJEXT) mn10300_libeval_a_OBJECTS = $(am_mn10300_libeval_a_OBJECTS) moxie_libqemu_a_AR = $(AR) $(ARFLAGS) @@ -914,7 +919,7 @@ riscv_libsemihost_a_LIBADD = riscv_libsemihost_a_OBJECTS = $(am_riscv_libsemihost_a_OBJECTS) riscv_libsim_a_AR = $(AR) $(ARFLAGS) riscv_libsim_a_LIBADD = -@CONFIG_RISCV_TRUE@am__objects_25 = \ +@CONFIG_RISCV_TRUE@am__objects_26 = \ @CONFIG_RISCV_TRUE@ riscv/riscv_libsim_a-sys_access.$(OBJEXT) \ @CONFIG_RISCV_TRUE@ riscv/riscv_libsim_a-sys_chdir.$(OBJEXT) \ @CONFIG_RISCV_TRUE@ riscv/riscv_libsim_a-sys_chmod.$(OBJEXT) \ @@ -947,7 +952,7 @@ riscv_libsim_a_LIBADD = @CONFIG_RISCV_TRUE@ riscv/riscv_libsim_a-sys_utime.$(OBJEXT) \ @CONFIG_RISCV_TRUE@ riscv/riscv_libsim_a-sys_wait.$(OBJEXT) \ @CONFIG_RISCV_TRUE@ riscv/riscv_libsim_a-sys_write.$(OBJEXT) -@CONFIG_RISCV_TRUE@am_riscv_libsim_a_OBJECTS = $(am__objects_25) +@CONFIG_RISCV_TRUE@am_riscv_libsim_a_OBJECTS = $(am__objects_26) riscv_libsim_a_OBJECTS = $(am_riscv_libsim_a_OBJECTS) rl78_libsim_a_AR = $(AR) $(ARFLAGS) rl78_libsim_a_LIBADD = @@ -1001,6 +1006,35 @@ v850_libsim_a_LIBADD = @CONFIG_V850_TRUE@ v850/unlink.$(OBJEXT) v850/utime.$(OBJEXT) \ @CONFIG_V850_TRUE@ v850/wait.$(OBJEXT) v850/write.$(OBJEXT) v850_libsim_a_OBJECTS = $(am_v850_libsim_a_OBJECTS) +visium_libdebug_a_AR = $(AR) $(ARFLAGS) +visium_libdebug_a_LIBADD = +@CONFIG_VISIUM_TRUE@am__objects_27 = getpid.$(OBJEXT) kill.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ visium/io-gdb.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ visium/io-stubs.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ visium/sbrk.$(OBJEXT) +@CONFIG_VISIUM_TRUE@am_visium_libdebug_a_OBJECTS = $(am__objects_27) \ +@CONFIG_VISIUM_TRUE@ visium/syscalls.$(OBJEXT) +visium_libdebug_a_OBJECTS = $(am_visium_libdebug_a_OBJECTS) +visium_libserial_a_AR = $(AR) $(ARFLAGS) +visium_libserial_a_LIBADD = +@CONFIG_VISIUM_TRUE@am_visium_libserial_a_OBJECTS = close.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ fstat.$(OBJEXT) getpid.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ isatty.$(OBJEXT) kill.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ lseek.$(OBJEXT) open.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ print.$(OBJEXT) putnum.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ read.$(OBJEXT) stat.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ unlink.$(OBJEXT) write.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ visium/_exit.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ visium/gettod.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ visium/sbrk.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ visium/serial-inbyte.$(OBJEXT) \ +@CONFIG_VISIUM_TRUE@ visium/serial-outbyte.$(OBJEXT) +visium_libserial_a_OBJECTS = $(am_visium_libserial_a_OBJECTS) +visium_libsim_a_AR = $(AR) $(ARFLAGS) +visium_libsim_a_LIBADD = +@CONFIG_VISIUM_TRUE@am_visium_libsim_a_OBJECTS = $(am__objects_27) \ +@CONFIG_VISIUM_TRUE@ visium/sim-syscalls.$(OBJEXT) +visium_libsim_a_OBJECTS = $(am_visium_libsim_a_OBJECTS) xstormy16_libeva_app_a_AR = $(AR) $(ARFLAGS) xstormy16_libeva_app_a_LIBADD = @CONFIG_XSTORMY16_TRUE@am_xstormy16_libeva_app_a_OBJECTS = \ @@ -1024,13 +1058,13 @@ xstormy16_libsim_a_LIBADD = xstormy16_libsim_a_OBJECTS = $(am_xstormy16_libsim_a_OBJECTS) xtensa_libgloss_a_AR = $(AR) $(ARFLAGS) xtensa_libgloss_a_LIBADD = -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__objects_26 = xtensa/boards/esp32/xtensa_libgloss_a-board.$(OBJEXT) -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32S3_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__objects_27 = xtensa/boards/esp32s3/xtensa_libgloss_a-board.$(OBJEXT) +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__objects_28 = xtensa/boards/esp32/xtensa_libgloss_a-board.$(OBJEXT) +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP32S3_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am__objects_29 = xtensa/boards/esp32s3/xtensa_libgloss_a-board.$(OBJEXT) @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@am_xtensa_libgloss_a_OBJECTS = xtensa/xtensa_libgloss_a-sleep.$(OBJEXT) \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/xtensa_libgloss_a-syscalls.$(OBJEXT) \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/xtensa_libgloss_a-window-vectors.$(OBJEXT) \ -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__objects_26) \ -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__objects_27) +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__objects_28) \ +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__objects_29) xtensa_libgloss_a_OBJECTS = $(am_xtensa_libgloss_a_OBJECTS) xtensa_libsys_openocd_a_AR = $(AR) $(ARFLAGS) xtensa_libsys_openocd_a_LIBADD = @@ -1138,7 +1172,9 @@ SOURCES = $(aarch64_librdimon_a_SOURCES) $(arc_libnsim_a_SOURCES) \ $(nios2_libnios2_a_SOURCES) $(riscv_libgloss_a_SOURCES) \ $(riscv_libsemihost_a_SOURCES) $(riscv_libsim_a_SOURCES) \ $(rl78_libsim_a_SOURCES) $(rx_libsim_a_SOURCES) \ - $(v850_libsim_a_SOURCES) $(xstormy16_libeva_app_a_SOURCES) \ + $(v850_libsim_a_SOURCES) $(visium_libdebug_a_SOURCES) \ + $(visium_libserial_a_SOURCES) $(visium_libsim_a_SOURCES) \ + $(xstormy16_libeva_app_a_SOURCES) \ $(xstormy16_libsim_a_SOURCES) $(xtensa_libgloss_a_SOURCES) \ $(xtensa_libsys_openocd_a_SOURCES) \ $(xtensa_libsys_qemu_a_SOURCES) bfin/sim-test.c iq2000/test.c \ @@ -1230,7 +1266,7 @@ ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) -VPATH = @srcdir@ $(am__append_84) +VPATH = @srcdir@ $(am__append_87) AARCH64_OBJTYPE = @AARCH64_OBJTYPE@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ @@ -1248,7 +1284,7 @@ CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ $(am__append_91) +CPPFLAGS = @CPPFLAGS@ $(am__append_94) CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ @@ -1356,7 +1392,7 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I . -I .. -I ../config info_TEXINFOS = $(am__append_1) -CLEANFILES = $(am__append_4) $(am__append_10) $(am__append_90) +CLEANFILES = $(am__append_4) $(am__append_10) $(am__append_93) PHONY = SUBDIRS = @subdirs@ . srcroot = $(top_srcdir)/.. @@ -1372,9 +1408,9 @@ multilibtool_DATA = $(am__append_3) $(am__append_6) $(am__append_7) \ $(am__append_55) $(am__append_56) $(am__append_61) \ $(am__append_62) $(am__append_65) $(am__append_68) \ $(am__append_71) $(am__append_73) $(am__append_75) \ - $(am__append_78) $(am__append_81) $(am__append_86) \ - $(am__append_92) $(am__append_95) $(am__append_97) \ - $(am__append_101) + $(am__append_78) $(am__append_81) $(am__append_84) \ + $(am__append_89) $(am__append_95) $(am__append_98) \ + $(am__append_100) $(am__append_104) multilibtool_LIBRARIES = $(am__append_2) $(am__append_5) \ $(am__append_9) $(am__append_11) $(am__append_20) \ $(am__append_21) $(am__append_25) $(am__append_28) \ @@ -1383,8 +1419,8 @@ multilibtool_LIBRARIES = $(am__append_2) $(am__append_5) \ $(am__append_52) $(am__append_58) $(am__append_59) \ $(am__append_64) $(am__append_67) $(am__append_70) \ $(am__append_72) $(am__append_74) $(am__append_77) \ - $(am__append_80) $(am__append_83) $(am__append_88) \ - $(am__append_94) $(am__append_96) + $(am__append_80) $(am__append_83) $(am__append_86) \ + $(am__append_91) $(am__append_97) $(am__append_99) includetooldir = $(tooldir)/include includetool_DATA = $(am__append_16) includesystooldir = $(tooldir)/include/sys @@ -1404,8 +1440,8 @@ libobjs_a_SOURCES = $(am__append_14) $(am__append_19) $(am__append_24) \ $(am__append_40) $(am__append_43) $(am__append_48) \ $(am__append_51) $(am__append_57) $(am__append_63) \ $(am__append_66) $(am__append_69) $(am__append_76) \ - $(am__append_79) $(am__append_82) $(am__append_87) \ - $(am__append_93) + $(am__append_79) $(am__append_82) $(am__append_85) \ + $(am__append_90) $(am__append_96) FLAGS_TO_PASS = \ "CC=$(CC)" \ "CFLAGS=$(CFLAGS)" \ @@ -1997,6 +2033,41 @@ TEXINFO_TEX = ../texinfo/texinfo.tex @CONFIG_V850_TRUE@ v850/wait.c \ @CONFIG_V850_TRUE@ v850/write.c +@CONFIG_VISIUM_TRUE@visium_hosted_sources = \ +@CONFIG_VISIUM_TRUE@ getpid.c \ +@CONFIG_VISIUM_TRUE@ kill.c \ +@CONFIG_VISIUM_TRUE@ visium/io-gdb.c \ +@CONFIG_VISIUM_TRUE@ visium/io-stubs.c \ +@CONFIG_VISIUM_TRUE@ visium/sbrk.c + +@CONFIG_VISIUM_TRUE@visium_libserial_a_SOURCES = \ +@CONFIG_VISIUM_TRUE@ close.c \ +@CONFIG_VISIUM_TRUE@ fstat.c \ +@CONFIG_VISIUM_TRUE@ getpid.c \ +@CONFIG_VISIUM_TRUE@ isatty.c \ +@CONFIG_VISIUM_TRUE@ kill.c \ +@CONFIG_VISIUM_TRUE@ lseek.c \ +@CONFIG_VISIUM_TRUE@ open.c \ +@CONFIG_VISIUM_TRUE@ print.c \ +@CONFIG_VISIUM_TRUE@ putnum.c \ +@CONFIG_VISIUM_TRUE@ read.c \ +@CONFIG_VISIUM_TRUE@ stat.c \ +@CONFIG_VISIUM_TRUE@ unlink.c \ +@CONFIG_VISIUM_TRUE@ write.c \ +@CONFIG_VISIUM_TRUE@ visium/_exit.c \ +@CONFIG_VISIUM_TRUE@ visium/gettod.c \ +@CONFIG_VISIUM_TRUE@ visium/sbrk.c \ +@CONFIG_VISIUM_TRUE@ visium/serial-inbyte.c \ +@CONFIG_VISIUM_TRUE@ visium/serial-outbyte.c + +@CONFIG_VISIUM_TRUE@visium_libsim_a_SOURCES = \ +@CONFIG_VISIUM_TRUE@ $(visium_hosted_sources) \ +@CONFIG_VISIUM_TRUE@ visium/sim-syscalls.c + +@CONFIG_VISIUM_TRUE@visium_libdebug_a_SOURCES = \ +@CONFIG_VISIUM_TRUE@ $(visium_hosted_sources) \ +@CONFIG_VISIUM_TRUE@ visium/syscalls.c + @CONFIG_WINCE_TRUE@gdbdir = ${dir ${patsubst %/,%,${dir @srcdir@}}}gdb @CONFIG_WINCE_TRUE@wince_stub_exe_SOURCES = wince-stub.c @CONFIG_WINCE_TRUE@wince_stub_exe_CPPFLAGS = $(AM_CPPFLAGS) -I$(gdbdir) @@ -2029,19 +2100,19 @@ TEXINFO_TEX = ../texinfo/texinfo.tex @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@xtensa_libgloss_a_SOURCES = xtensa/sleep.S \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/syscalls.c \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/window-vectors.S \ -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_98) \ -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_102) +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_101) \ +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_105) @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@xtensa_libsys_qemu_a_CPPFLAGS = -DQEMU_SEMIHOSTING \ -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_99) \ -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_103) +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_102) \ +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_106) @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@xtensa_libsys_qemu_a_SOURCES = \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/sim-vectors.S \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/sim-call.S \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/syscalls.c @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@xtensa_libsys_openocd_a_CPPFLAGS = -DOPENOCD_SEMIHOSTING \ -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_100) \ -@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_104) +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_103) \ +@CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ $(am__append_107) @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@xtensa_libsys_openocd_a_SOURCES = \ @CONFIG_XTENSA_TRUE@@HAVE_XTENSA_BOARD_ESP_TRUE@ xtensa/syscalls.c @@ -2054,7 +2125,7 @@ all: config.h .SUFFIXES: .S .c .dvi .o .obj .ps .s am--refresh: Makefile @: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/../multilib.am $(srcdir)/doc/Makefile.inc $(srcdir)/aarch64/Makefile.inc $(srcdir)/aarch64/cpu-init/Makefile.inc $(srcdir)/arc/Makefile.inc $(srcdir)/arm/Makefile.inc $(srcdir)/arm/cpu-init/Makefile.inc $(srcdir)/bfin/Makefile.inc $(srcdir)/csky/Makefile.inc $(srcdir)/d30v/Makefile.inc $(srcdir)/frv/Makefile.inc $(srcdir)/i386/Makefile.inc $(srcdir)/i960/Makefile.inc $(srcdir)/iq2000/Makefile.inc $(srcdir)/libnosys/Makefile.inc $(srcdir)/lm32/Makefile.inc $(srcdir)/m32r/Makefile.inc $(srcdir)/mcore/Makefile.inc $(srcdir)/mn10200/Makefile.inc $(srcdir)/mn10300/Makefile.inc $(srcdir)/moxie/Makefile.inc $(srcdir)/msp430/Makefile.inc $(srcdir)/nds32/Makefile.inc $(srcdir)/nios2/Makefile.inc $(srcdir)/riscv/Makefile.inc $(srcdir)/rl78/Makefile.inc $(srcdir)/rx/Makefile.inc $(srcdir)/v850/Makefile.inc $(srcdir)/wince/Makefile.inc $(srcdir)/xstormy16/Makefile.inc $(srcdir)/xtensa/Makefile.inc $(am__configure_deps) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/../multilib.am $(srcdir)/doc/Makefile.inc $(srcdir)/aarch64/Makefile.inc $(srcdir)/aarch64/cpu-init/Makefile.inc $(srcdir)/arc/Makefile.inc $(srcdir)/arm/Makefile.inc $(srcdir)/arm/cpu-init/Makefile.inc $(srcdir)/bfin/Makefile.inc $(srcdir)/csky/Makefile.inc $(srcdir)/d30v/Makefile.inc $(srcdir)/frv/Makefile.inc $(srcdir)/i386/Makefile.inc $(srcdir)/i960/Makefile.inc $(srcdir)/iq2000/Makefile.inc $(srcdir)/libnosys/Makefile.inc $(srcdir)/lm32/Makefile.inc $(srcdir)/m32r/Makefile.inc $(srcdir)/mcore/Makefile.inc $(srcdir)/mn10200/Makefile.inc $(srcdir)/mn10300/Makefile.inc $(srcdir)/moxie/Makefile.inc $(srcdir)/msp430/Makefile.inc $(srcdir)/nds32/Makefile.inc $(srcdir)/nios2/Makefile.inc $(srcdir)/riscv/Makefile.inc $(srcdir)/rl78/Makefile.inc $(srcdir)/rx/Makefile.inc $(srcdir)/v850/Makefile.inc $(srcdir)/visium/Makefile.inc $(srcdir)/wince/Makefile.inc $(srcdir)/xstormy16/Makefile.inc $(srcdir)/xtensa/Makefile.inc $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ @@ -2076,7 +2147,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; -$(top_srcdir)/../multilib.am $(srcdir)/doc/Makefile.inc $(srcdir)/aarch64/Makefile.inc $(srcdir)/aarch64/cpu-init/Makefile.inc $(srcdir)/arc/Makefile.inc $(srcdir)/arm/Makefile.inc $(srcdir)/arm/cpu-init/Makefile.inc $(srcdir)/bfin/Makefile.inc $(srcdir)/csky/Makefile.inc $(srcdir)/d30v/Makefile.inc $(srcdir)/frv/Makefile.inc $(srcdir)/i386/Makefile.inc $(srcdir)/i960/Makefile.inc $(srcdir)/iq2000/Makefile.inc $(srcdir)/libnosys/Makefile.inc $(srcdir)/lm32/Makefile.inc $(srcdir)/m32r/Makefile.inc $(srcdir)/mcore/Makefile.inc $(srcdir)/mn10200/Makefile.inc $(srcdir)/mn10300/Makefile.inc $(srcdir)/moxie/Makefile.inc $(srcdir)/msp430/Makefile.inc $(srcdir)/nds32/Makefile.inc $(srcdir)/nios2/Makefile.inc $(srcdir)/riscv/Makefile.inc $(srcdir)/rl78/Makefile.inc $(srcdir)/rx/Makefile.inc $(srcdir)/v850/Makefile.inc $(srcdir)/wince/Makefile.inc $(srcdir)/xstormy16/Makefile.inc $(srcdir)/xtensa/Makefile.inc $(am__empty): +$(top_srcdir)/../multilib.am $(srcdir)/doc/Makefile.inc $(srcdir)/aarch64/Makefile.inc $(srcdir)/aarch64/cpu-init/Makefile.inc $(srcdir)/arc/Makefile.inc $(srcdir)/arm/Makefile.inc $(srcdir)/arm/cpu-init/Makefile.inc $(srcdir)/bfin/Makefile.inc $(srcdir)/csky/Makefile.inc $(srcdir)/d30v/Makefile.inc $(srcdir)/frv/Makefile.inc $(srcdir)/i386/Makefile.inc $(srcdir)/i960/Makefile.inc $(srcdir)/iq2000/Makefile.inc $(srcdir)/libnosys/Makefile.inc $(srcdir)/lm32/Makefile.inc $(srcdir)/m32r/Makefile.inc $(srcdir)/mcore/Makefile.inc $(srcdir)/mn10200/Makefile.inc $(srcdir)/mn10300/Makefile.inc $(srcdir)/moxie/Makefile.inc $(srcdir)/msp430/Makefile.inc $(srcdir)/nds32/Makefile.inc $(srcdir)/nios2/Makefile.inc $(srcdir)/riscv/Makefile.inc $(srcdir)/rl78/Makefile.inc $(srcdir)/rx/Makefile.inc $(srcdir)/v850/Makefile.inc $(srcdir)/visium/Makefile.inc $(srcdir)/wince/Makefile.inc $(srcdir)/xstormy16/Makefile.inc $(srcdir)/xtensa/Makefile.inc $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck @@ -2133,8 +2204,6 @@ microblaze/Makefile: $(top_builddir)/config.status $(top_srcdir)/microblaze/Make cd $(top_builddir) && $(SHELL) ./config.status $@ mt/Makefile: $(top_builddir)/config.status $(top_srcdir)/mt/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ -visium/Makefile: $(top_builddir)/config.status $(top_srcdir)/visium/Makefile.in - cd $(top_builddir) && $(SHELL) ./config.status $@ xc16x/Makefile: $(top_builddir)/config.status $(top_srcdir)/xc16x/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ m32c/Makefile: $(top_builddir)/config.status $(top_srcdir)/m32c/Makefile.in @@ -2686,6 +2755,14 @@ v850/$(DEPDIR)/$(am__dirstamp): @: > v850/$(DEPDIR)/$(am__dirstamp) v850/crt0.$(OBJEXT): v850/$(am__dirstamp) \ v850/$(DEPDIR)/$(am__dirstamp) +visium/$(am__dirstamp): + @$(MKDIR_P) visium + @: > visium/$(am__dirstamp) +visium/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) visium/$(DEPDIR) + @: > visium/$(DEPDIR)/$(am__dirstamp) +visium/crt0.$(OBJEXT): visium/$(am__dirstamp) \ + visium/$(DEPDIR)/$(am__dirstamp) xstormy16/$(am__dirstamp): @$(MKDIR_P) xstormy16 @: > xstormy16/$(am__dirstamp) @@ -3463,6 +3540,39 @@ v850/libsim.a: $(v850_libsim_a_OBJECTS) $(v850_libsim_a_DEPENDENCIES) $(EXTRA_v8 $(AM_V_at)-rm -f v850/libsim.a $(AM_V_AR)$(v850_libsim_a_AR) v850/libsim.a $(v850_libsim_a_OBJECTS) $(v850_libsim_a_LIBADD) $(AM_V_at)$(RANLIB) v850/libsim.a +visium/io-gdb.$(OBJEXT): visium/$(am__dirstamp) \ + visium/$(DEPDIR)/$(am__dirstamp) +visium/io-stubs.$(OBJEXT): visium/$(am__dirstamp) \ + visium/$(DEPDIR)/$(am__dirstamp) +visium/sbrk.$(OBJEXT): visium/$(am__dirstamp) \ + visium/$(DEPDIR)/$(am__dirstamp) +visium/syscalls.$(OBJEXT): visium/$(am__dirstamp) \ + visium/$(DEPDIR)/$(am__dirstamp) + +visium/libdebug.a: $(visium_libdebug_a_OBJECTS) $(visium_libdebug_a_DEPENDENCIES) $(EXTRA_visium_libdebug_a_DEPENDENCIES) visium/$(am__dirstamp) + $(AM_V_at)-rm -f visium/libdebug.a + $(AM_V_AR)$(visium_libdebug_a_AR) visium/libdebug.a $(visium_libdebug_a_OBJECTS) $(visium_libdebug_a_LIBADD) + $(AM_V_at)$(RANLIB) visium/libdebug.a +visium/_exit.$(OBJEXT): visium/$(am__dirstamp) \ + visium/$(DEPDIR)/$(am__dirstamp) +visium/gettod.$(OBJEXT): visium/$(am__dirstamp) \ + visium/$(DEPDIR)/$(am__dirstamp) +visium/serial-inbyte.$(OBJEXT): visium/$(am__dirstamp) \ + visium/$(DEPDIR)/$(am__dirstamp) +visium/serial-outbyte.$(OBJEXT): visium/$(am__dirstamp) \ + visium/$(DEPDIR)/$(am__dirstamp) + +visium/libserial.a: $(visium_libserial_a_OBJECTS) $(visium_libserial_a_DEPENDENCIES) $(EXTRA_visium_libserial_a_DEPENDENCIES) visium/$(am__dirstamp) + $(AM_V_at)-rm -f visium/libserial.a + $(AM_V_AR)$(visium_libserial_a_AR) visium/libserial.a $(visium_libserial_a_OBJECTS) $(visium_libserial_a_LIBADD) + $(AM_V_at)$(RANLIB) visium/libserial.a +visium/sim-syscalls.$(OBJEXT): visium/$(am__dirstamp) \ + visium/$(DEPDIR)/$(am__dirstamp) + +visium/libsim.a: $(visium_libsim_a_OBJECTS) $(visium_libsim_a_DEPENDENCIES) $(EXTRA_visium_libsim_a_DEPENDENCIES) visium/$(am__dirstamp) + $(AM_V_at)-rm -f visium/libsim.a + $(AM_V_AR)$(visium_libsim_a_AR) visium/libsim.a $(visium_libsim_a_OBJECTS) $(visium_libsim_a_LIBADD) + $(AM_V_at)$(RANLIB) visium/libsim.a xstormy16/close.$(OBJEXT): xstormy16/$(am__dirstamp) \ xstormy16/$(DEPDIR)/$(am__dirstamp) xstormy16/fstat.$(OBJEXT): xstormy16/$(am__dirstamp) \ @@ -3697,6 +3807,7 @@ mostlyclean-compile: -rm -f rl78/*.$(OBJEXT) -rm -f rx/*.$(OBJEXT) -rm -f v850/*.$(OBJEXT) + -rm -f visium/*.$(OBJEXT) -rm -f xstormy16/*.$(OBJEXT) -rm -f xtensa/*.$(OBJEXT) -rm -f xtensa/boards/esp32/*.$(OBJEXT) @@ -3705,12 +3816,21 @@ mostlyclean-compile: distclean-compile: -rm -f *.tab.c +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/close.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstat.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getpid.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isatty.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kill.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lseek.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/open.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/putnum.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/read.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbrk.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unlink.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wince_stub_exe-wince-stub.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/write.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@aarch64/$(DEPDIR)/aarch64_librdimon_a-_exit.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@aarch64/$(DEPDIR)/aarch64_librdimon_a-_kill.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@aarch64/$(DEPDIR)/aarch64_librdimon_a-ftruncate.Po@am__quote@ @@ -4197,6 +4317,16 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@v850/$(DEPDIR)/utime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@v850/$(DEPDIR)/wait.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@v850/$(DEPDIR)/write.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@visium/$(DEPDIR)/_exit.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@visium/$(DEPDIR)/crt0.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@visium/$(DEPDIR)/gettod.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@visium/$(DEPDIR)/io-gdb.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@visium/$(DEPDIR)/io-stubs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@visium/$(DEPDIR)/sbrk.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@visium/$(DEPDIR)/serial-inbyte.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@visium/$(DEPDIR)/serial-outbyte.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@visium/$(DEPDIR)/sim-syscalls.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@visium/$(DEPDIR)/syscalls.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@xstormy16/$(DEPDIR)/close.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@xstormy16/$(DEPDIR)/eva_app.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@xstormy16/$(DEPDIR)/fstat.Po@am__quote@ @@ -7027,6 +7157,8 @@ distclean-generic: -rm -f rx/$(am__dirstamp) -rm -f v850/$(DEPDIR)/$(am__dirstamp) -rm -f v850/$(am__dirstamp) + -rm -f visium/$(DEPDIR)/$(am__dirstamp) + -rm -f visium/$(am__dirstamp) -rm -f wince/$(am__dirstamp) -rm -f xstormy16/$(DEPDIR)/$(am__dirstamp) -rm -f xstormy16/$(am__dirstamp) @@ -7050,7 +7182,7 @@ clean-am: clean-aminfo clean-binPROGRAMS clean-checkPROGRAMS \ distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf ./$(DEPDIR) aarch64/$(DEPDIR) arc/$(DEPDIR) arm/$(DEPDIR) bfin/$(DEPDIR) csky/$(DEPDIR) d30v/$(DEPDIR) frv/$(DEPDIR) i386/$(DEPDIR) i960/$(DEPDIR) iq2000/$(DEPDIR) libnosys/$(DEPDIR) lm32/$(DEPDIR) m32r/$(DEPDIR) mcore/$(DEPDIR) mn10200/$(DEPDIR) mn10300/$(DEPDIR) moxie/$(DEPDIR) msp430/$(DEPDIR) nds32/$(DEPDIR) nios2/$(DEPDIR) riscv/$(DEPDIR) rl78/$(DEPDIR) rx/$(DEPDIR) v850/$(DEPDIR) xstormy16/$(DEPDIR) xtensa/$(DEPDIR) xtensa/boards/esp32/$(DEPDIR) xtensa/boards/esp32s3/$(DEPDIR) + -rm -rf ./$(DEPDIR) aarch64/$(DEPDIR) arc/$(DEPDIR) arm/$(DEPDIR) bfin/$(DEPDIR) csky/$(DEPDIR) d30v/$(DEPDIR) frv/$(DEPDIR) i386/$(DEPDIR) i960/$(DEPDIR) iq2000/$(DEPDIR) libnosys/$(DEPDIR) lm32/$(DEPDIR) m32r/$(DEPDIR) mcore/$(DEPDIR) mn10200/$(DEPDIR) mn10300/$(DEPDIR) moxie/$(DEPDIR) msp430/$(DEPDIR) nds32/$(DEPDIR) nios2/$(DEPDIR) riscv/$(DEPDIR) rl78/$(DEPDIR) rx/$(DEPDIR) v850/$(DEPDIR) visium/$(DEPDIR) xstormy16/$(DEPDIR) xtensa/$(DEPDIR) xtensa/boards/esp32/$(DEPDIR) xtensa/boards/esp32s3/$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-hdr distclean-local distclean-tags @@ -7193,7 +7325,7 @@ installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache - -rm -rf ./$(DEPDIR) aarch64/$(DEPDIR) arc/$(DEPDIR) arm/$(DEPDIR) bfin/$(DEPDIR) csky/$(DEPDIR) d30v/$(DEPDIR) frv/$(DEPDIR) i386/$(DEPDIR) i960/$(DEPDIR) iq2000/$(DEPDIR) libnosys/$(DEPDIR) lm32/$(DEPDIR) m32r/$(DEPDIR) mcore/$(DEPDIR) mn10200/$(DEPDIR) mn10300/$(DEPDIR) moxie/$(DEPDIR) msp430/$(DEPDIR) nds32/$(DEPDIR) nios2/$(DEPDIR) riscv/$(DEPDIR) rl78/$(DEPDIR) rx/$(DEPDIR) v850/$(DEPDIR) xstormy16/$(DEPDIR) xtensa/$(DEPDIR) xtensa/boards/esp32/$(DEPDIR) xtensa/boards/esp32s3/$(DEPDIR) + -rm -rf ./$(DEPDIR) aarch64/$(DEPDIR) arc/$(DEPDIR) arm/$(DEPDIR) bfin/$(DEPDIR) csky/$(DEPDIR) d30v/$(DEPDIR) frv/$(DEPDIR) i386/$(DEPDIR) i960/$(DEPDIR) iq2000/$(DEPDIR) libnosys/$(DEPDIR) lm32/$(DEPDIR) m32r/$(DEPDIR) mcore/$(DEPDIR) mn10200/$(DEPDIR) mn10300/$(DEPDIR) moxie/$(DEPDIR) msp430/$(DEPDIR) nds32/$(DEPDIR) nios2/$(DEPDIR) riscv/$(DEPDIR) rl78/$(DEPDIR) rx/$(DEPDIR) v850/$(DEPDIR) visium/$(DEPDIR) xstormy16/$(DEPDIR) xtensa/$(DEPDIR) xtensa/boards/esp32/$(DEPDIR) xtensa/boards/esp32s3/$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-aminfo \ maintainer-clean-generic maintainer-clean-local diff --git a/libgloss/configure b/libgloss/configure index 5aa46f002..970a4cb42 100755 --- a/libgloss/configure +++ b/libgloss/configure @@ -650,6 +650,8 @@ CONFIG_XSTORMY16_FALSE CONFIG_XSTORMY16_TRUE CONFIG_WINCE_FALSE CONFIG_WINCE_TRUE +CONFIG_VISIUM_FALSE +CONFIG_VISIUM_TRUE CONFIG_V850_FALSE CONFIG_V850_TRUE CONFIG_RX_FALSE @@ -2932,9 +2934,7 @@ case "${target}" in config_v850=true ;; visium-*-*) - ac_config_files="$ac_config_files visium/Makefile" - - subdirs="$subdirs visium" + config_visium=true config_testsuite=false ;; xc16x-*-*) @@ -3192,6 +3192,14 @@ else CONFIG_V850_FALSE= fi + if test x$config_visium = xtrue; then + CONFIG_VISIUM_TRUE= + CONFIG_VISIUM_FALSE='#' +else + CONFIG_VISIUM_TRUE='#' + CONFIG_VISIUM_FALSE= +fi + if test x$config_wince = xtrue; then CONFIG_WINCE_TRUE= CONFIG_WINCE_FALSE='#' @@ -5779,6 +5787,10 @@ if test -z "${CONFIG_V850_TRUE}" && test -z "${CONFIG_V850_FALSE}"; then as_fn_error $? "conditional \"CONFIG_V850\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${CONFIG_VISIUM_TRUE}" && test -z "${CONFIG_VISIUM_FALSE}"; then + as_fn_error $? "conditional \"CONFIG_VISIUM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${CONFIG_WINCE_TRUE}" && test -z "${CONFIG_WINCE_FALSE}"; then as_fn_error $? "conditional \"CONFIG_WINCE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -6455,7 +6467,6 @@ do "mep/Makefile") CONFIG_FILES="$CONFIG_FILES mep/Makefile" ;; "microblaze/Makefile") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile" ;; "mt/Makefile") CONFIG_FILES="$CONFIG_FILES mt/Makefile" ;; - "visium/Makefile") CONFIG_FILES="$CONFIG_FILES visium/Makefile" ;; "xc16x/Makefile") CONFIG_FILES="$CONFIG_FILES xc16x/Makefile" ;; "m32c/Makefile") CONFIG_FILES="$CONFIG_FILES m32c/Makefile" ;; "spu/Makefile") CONFIG_FILES="$CONFIG_FILES spu/Makefile" ;; diff --git a/libgloss/configure.ac b/libgloss/configure.ac index 498bde2b7..bff76fbc8 100644 --- a/libgloss/configure.ac +++ b/libgloss/configure.ac @@ -170,8 +170,7 @@ case "${target}" in config_v850=true ;; visium-*-*) - AC_CONFIG_FILES([visium/Makefile]) - subdirs="$subdirs visium" + config_visium=true config_testsuite=false ;; xc16x-*-*) @@ -236,7 +235,7 @@ dnl the ports above will too! m4_foreach_w([SUBDIR], [ aarch64 arc arm bfin csky d30v frv i386 i960 iq2000 libnosys lm32 m32r mcore mn10200 mn10300 moxie msp430 - nds32 nios2 riscv rl78 rx v850 wince xstormy16 xtensa + nds32 nios2 riscv rl78 rx v850 visium wince xstormy16 xtensa ], [dnl AM_CONDITIONAL([CONFIG_]m4_toupper(SUBDIR), [test x$config_]SUBDIR = xtrue) ]) diff --git a/libgloss/visium/Makefile.in b/libgloss/visium/Makefile.in deleted file mode 100644 index bc18b2951..000000000 --- a/libgloss/visium/Makefile.in +++ /dev/null @@ -1,132 +0,0 @@ -# Copyright (c) 1998 Cygnus Support -# -# The authors hereby grant permission to use, copy, modify, distribute, -# and license this software and its documentation for any purpose, provided -# that existing copyright notices are retained in all copies and that this -# notice is included verbatim in any distributions. No written agreement, -# license, or royalty fee is required for any of the authorized uses. -# Modifications to this software may be copyrighted by their authors -# and need not follow the licensing terms described here, provided that -# the new terms are clearly indicated on the first page of each file where -# they apply. - -DESTDIR = -VPATH = @srcdir@ -srcdir = @srcdir@ -objdir = . -srcroot = $(srcdir)/../.. -objroot = $(objdir)/../.. - -prefix = @prefix@ -exec_prefix = @exec_prefix@ - -host_alias = @host_alias@ -target_alias = @target_alias@ -program_transform_name = @program_transform_name@ - -bindir = @bindir@ -libdir = @libdir@ -tooldir = $(exec_prefix)/$(target_alias) - -# Multilib support variables. -# TOP is used instead of MULTI{BUILD,SRC}TOP. -MULTIDIRS = -MULTISUBDIR = -MULTIDO = true -MULTICLEAN = true - -INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ - -SHELL = /bin/sh - -mkinstalldirs = $(SHELL) $(srcroot)/mkinstalldirs - -CC = @CC@ - -AS = @AS@ - -AR = @AR@ - -LD = @LD@ - -RANLIB = @RANLIB@ - -OBJDUMP = `t='$(program_transform_name)'; echo objdump | sed -e $$t` -OBJCOPY = `t='$(program_transform_name)'; echo objcopy | sed -e $$t` - -# Generic object files common to some targets. -# These are LIBGLOSS stubs and minimal functionality in SBRK, READ and WRITE. -OBJS = close.o fstat.o getpid.o isatty.o kill.o lseek.o open.o \ - print.o putnum.o read.o stat.o unlink.o write.o - -# Object files specific to particular targets. -SERIALOBJS = ${OBJS} _exit.o gettod.o sbrk.o serial-inbyte.o serial-outbyte.o - -# These go with the hosted file I/O libraries with a version of syscalls. -HOSTEDOBJS = getpid.o kill.o io-gdb.o io-stubs.o sbrk.o - -SCRIPTS = -BSP = crt0.o libserial.a libsim.a libdebug.a - -# Host specific makefile fragment comes in here. -@host_makefile_frag@ - -all: ${BSP} - -# -# here's where we build the board support packages for each target -# - -libserial.a: $(SERIALOBJS) - $(AR) $(ARFLAGS) $@ $^ - $(RANLIB) $@ - -libsim.a: ${HOSTEDOBJS} sim-syscalls.o - ${AR} ${ARFLAGS} $@ $^ - ${RANLIB} $@ - -libdebug.a: ${HOSTEDOBJS} debug-syscalls.o - ${AR} ${ARFLAGS} $@ $^ - ${RANLIB} $@ - -sim-syscalls.o: syscalls.c syscall.h io.h - ${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -DTARGET_SIM -c -o $@ $< - -debug-syscalls.o: syscalls.c syscall.h io.h - ${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -c -o $@ $< - -sbrk.o: $(srcdir)/sbrk.c - ${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -c -o $@ $< - -$(OBJS): %.o: ../%.c - ${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -c -o $@ $< - -doc: - -clean mostlyclean: - rm -f a.out core *.i *~ *.o *-test *.srec *.dis *.map *.x - -distclean maintainer-clean realclean: clean - rm -f Makefile config.status a.out - -.PHONY: install info install-info clean-info -install: - ${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR} - @for bsp in ${BSP}; do\ - $(INSTALL_DATA) $${bsp} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ - done - @for script in ${SCRIPTS}; do\ - $(INSTALL_DATA) $(srcdir)/$${script}.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \ - done - -info: -install-info: -clean-info: - -# target specific makefile fragment comes in here. -@target_makefile_frag@ - -Makefile: Makefile.in ../config.status - cd .. && $(SHELL) config.status diff --git a/libgloss/visium/Makefile.inc b/libgloss/visium/Makefile.inc new file mode 100644 index 000000000..cd268c95b --- /dev/null +++ b/libgloss/visium/Makefile.inc @@ -0,0 +1,53 @@ +## Copyright (c) 1998 Cygnus Support +## +## The authors hereby grant permission to use, copy, modify, distribute, +## and license this software and its documentation for any purpose, provided +## that existing copyright notices are retained in all copies and that this +## notice is included verbatim in any distributions. No written agreement, +## license, or royalty fee is required for any of the authorized uses. +## Modifications to this software may be copyrighted by their authors +## and need not follow the licensing terms described here, provided that +## the new terms are clearly indicated on the first page of each file where +## they apply. + +multilibtool_DATA += %D%/crt0.o +libobjs_a_SOURCES += %D%/crt0.S + +## These go with the hosted file I/O libraries with a version of syscalls. +%C%_hosted_sources = \ + getpid.c \ + kill.c \ + %D%/io-gdb.c \ + %D%/io-stubs.c \ + %D%/sbrk.c + +multilibtool_LIBRARIES += %D%/libserial.a +%C%_libserial_a_SOURCES = \ + close.c \ + fstat.c \ + getpid.c \ + isatty.c \ + kill.c \ + lseek.c \ + open.c \ + print.c \ + putnum.c \ + read.c \ + stat.c \ + unlink.c \ + write.c \ + %D%/_exit.c \ + %D%/gettod.c \ + %D%/sbrk.c \ + %D%/serial-inbyte.c \ + %D%/serial-outbyte.c + +multilibtool_LIBRARIES += %D%/libsim.a +%C%_libsim_a_SOURCES = \ + $(%C%_hosted_sources) \ + %D%/sim-syscalls.c + +multilibtool_LIBRARIES += %D%/libdebug.a +%C%_libdebug_a_SOURCES = \ + $(%C%_hosted_sources) \ + %D%/syscalls.c diff --git a/libgloss/visium/sim-syscalls.c b/libgloss/visium/sim-syscalls.c new file mode 100644 index 000000000..1a6bb3259 --- /dev/null +++ b/libgloss/visium/sim-syscalls.c @@ -0,0 +1,31 @@ +/* system calls for the Visium processor. + + Copyright (c) 2015 Rolls-Royce Controls and Data Services Limited. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of Rolls-Royce Controls and Data Services Limited nor + the names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + THE POSSIBILITY OF SUCH DAMAGE. */ + +#define TARGET_SIM +#include "syscalls.c"