@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * README-HACKING: Delete mention of tconfig.h.
+
2015-11-24 Nick Clifton <nickc@redhat.com>
* configure.tgt: Add aarch64 entry.
@@ -7,7 +7,6 @@ Contents
- Common Makefile Support
- TAGS support
- Generating "configure" files
-- tconfig.h
- C Language Assumptions
- "dump" commands under gdb
@@ -159,16 +158,6 @@ To add the entries to an alternative ChangeLog file, use:
$ make ChangeLog=MyChangeLog ....
-tconfig.h
-==========
-
-File tconfig.h defines one or more target configuration macros
-(e.g. a tm.h file). There are very few that need defining.
-For a list of all of them, see common/tconfig.h.
-It contains them all, commented out.
-The intent is that a new port can just copy this file and
-define the ones it needs.
-
C Language Assumptions
======================
@@ -1,5 +1,9 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * config.in, configure: Regenerate.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* interp.c (sim_create_inferior): Update comment and argv check.
2015-12-14 Nick Clifton <nickc@redhat.com>
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-12-25 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_OBJS): Delete bag.o.
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-12-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
* interp.c (sign_ext): Fix left shift of negative value.
@@ -1,5 +1,9 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * config.in, configure: Regenerate.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* devices.c (bfin_mmr_invalid): Delete cpu arg and add missing arg.
Add cpu, rw, and reason local vars. Rewrite error messages. Add
more todo comments.
@@ -1,5 +1,24 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
+ * config.in, configure: Regenerate.
+ * Make-common.in (sim-basics_h): Delete tconfig.h.
+ (distclean): Likewise.
+ * sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
+ (new_sim_core_mapping): Delete WITH_HW and device *device.
+ (sim_core_map_attach, sim_core_attach): Likewise.
+ (sim_core_read_buffer): Delete WITH_DEVICES logic.
+ (sim_core_write_buffer): Likewise.
+ * sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
+ *device.
+ (sim_core_attach): Likewise.
+ (device_io_read_buffer, device_io_write_buffer): Delete.
+ * sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
+ (sim_core_write_aligned_N): Likewise.
+ * tconfig.h: Delete file.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
Call sim_cpu_hw_io_read_buffer if cpu is valid.
(sim_core_write_buffer): Move cia decl to top of func. Call
@@ -361,7 +361,6 @@ sim-base_h = $(srccom)/sim-base.h \
$(sim-cpu_h)
sim-basics_h = $(srccom)/sim-basics.h \
../common/cconfig.h \
- tconfig.h \
$(sim-config_h) \
$(callback_h) \
$(sim-inline_h) \
@@ -536,7 +535,7 @@ clean: $(SIM_EXTRA_CLEAN)
distclean mostlyclean maintainer-clean realclean: clean $(SIM_EXTRA_DISTCLEAN)
rm -f TAGS
rm -f Makefile config.cache config.log config.status .gdbinit
- rm -f tconfig.h config.h stamp-h
+ rm -f config.h stamp-h
rm -f targ-vals.def
.c.o:
@@ -53,9 +53,6 @@ AR=${AR-ar}
AC_SUBST(AR)
AC_PROG_RANLIB
-dnl Pull in the target configuration file directly.
-AH_BOTTOM([#include "tconfig.h"])
-
# Some of the common include files depend on bfd.h, and bfd.h checks
# that config.h is included first by testing that the PACKAGE macro
# is defined.
@@ -28,8 +28,6 @@
#if (WITH_HW)
#include "sim-hw.h"
-#define device_io_read_buffer(client, ...) device_io_read_buffer ((device *)(client), __VA_ARGS__)
-#define device_io_write_buffer(client, ...) device_io_write_buffer ((device *)(client), __VA_ARGS__)
#endif
/* "core" module install handler.
@@ -141,11 +139,7 @@ new_sim_core_mapping (SIM_DESC sd,
address_word addr,
address_word nr_bytes,
unsigned modulo,
-#if WITH_HW
struct hw *device,
-#else
- device *device,
-#endif
void *buffer,
void *free_buffer)
{
@@ -174,11 +168,7 @@ sim_core_map_attach (SIM_DESC sd,
address_word addr,
address_word nr_bytes,
unsigned modulo,
-#if WITH_HW
struct hw *client, /*callback/default*/
-#else
- device *client, /*callback/default*/
-#endif
void *buffer, /*raw_memory*/
void *free_buffer) /*raw_memory*/
{
@@ -264,11 +254,7 @@ sim_core_attach (SIM_DESC sd,
address_word addr,
address_word nr_bytes,
unsigned modulo,
-#if WITH_HW
struct hw *client,
-#else
- device *client,
-#endif
void *optional_buffer)
{
sim_core *memory = STATE_CORE (sd);
@@ -485,26 +471,6 @@ sim_core_read_buffer (SIM_DESC sd,
0 /*dont-abort*/, NULL, NULL_CIA);
if (mapping == NULL)
break;
-#if (WITH_DEVICES)
- if (mapping->device != NULL)
- {
- int nr_bytes = len - count;
- sim_cia cia = cpu ? CPU_PC_GET (cpu) : NULL_CIA;
- if (raddr + nr_bytes - 1> mapping->bound)
- nr_bytes = mapping->bound - raddr + 1;
- if (device_io_read_buffer (mapping->device,
- (unsigned_1*)buffer + count,
- mapping->space,
- raddr,
- nr_bytes,
- sd,
- cpu,
- cia) != nr_bytes)
- break;
- count += nr_bytes;
- continue;
- }
-#endif
#if (WITH_HW)
if (mapping->device != NULL)
{
@@ -563,26 +529,6 @@ sim_core_write_buffer (SIM_DESC sd,
0 /*dont-abort*/, NULL, NULL_CIA);
if (mapping == NULL)
break;
-#if (WITH_DEVICES)
- if (mapping->device != NULL)
- {
- int nr_bytes = len - count;
- sim_cia cia = cpu ? CPU_PC_GET (cpu) : NULL_CIA;
- if (raddr + nr_bytes - 1 > mapping->bound)
- nr_bytes = mapping->bound - raddr + 1;
- if (device_io_write_buffer (mapping->device,
- (unsigned_1*)buffer + count,
- mapping->space,
- raddr,
- nr_bytes,
- sd,
- cpu,
- cia) != nr_bytes)
- break;
- count += nr_bytes;
- continue;
- }
-#endif
#if (WITH_HW)
if (mapping->device != NULL)
{
@@ -57,11 +57,7 @@ struct _sim_core_mapping {
void *free_buffer;
void *buffer;
/* callback map */
-#if (WITH_HW)
struct hw *device;
-#else
- device *device;
-#endif
/* tracing */
int trace;
/* growth */
@@ -144,11 +140,7 @@ extern void sim_core_attach
address_word addr,
address_word nr_bytes,
unsigned modulo,
-#if (WITH_HW)
struct hw *client,
-#else
- device *client,
-#endif
void *optional_buffer);
@@ -347,13 +339,4 @@ DECLARE_SIM_CORE_READ_N(misaligned,7,8)
#undef DECLARE_SIM_CORE_READ_N
-
-#if (WITH_DEVICES)
-/* TODO: create sim/common/device.h */
-/* These are defined with each particular cpu. */
-int device_io_read_buffer(device *me, void *dest, int space, address_word addr, unsigned nr_bytes, SIM_DESC sd, sim_cpu *processor, sim_cia cia);
-int device_io_write_buffer(device *me, const void *source, int space, address_word addr, unsigned nr_bytes, SIM_DESC sd, sim_cpu *processor, sim_cia cia);
-#endif
-
-
#endif
@@ -164,18 +164,6 @@ sim_core_read_aligned_N(sim_cpu *cpu,
mapping = sim_core_find_mapping (core, map, addr, N, read_transfer, 1 /*abort*/, cpu, cia);
do
{
-#if (WITH_DEVICES)
- if (mapping->device != NULL)
- {
- unsigned_M data;
- if (device_io_read_buffer (mapping->device, &data, mapping->space, addr, N, CPU_STATE (cpu), cpu, cia) != N)
- sim_engine_abort (CPU_STATE (cpu), cpu, cia,
- "internal error - %s - io_read_buffer should not fail",
- XSTRING (sim_core_read_aligned_N));
- val = T2H_M (data);
- break;
- }
-#endif
#if (WITH_HW)
if (mapping->device != NULL)
{
@@ -296,17 +284,6 @@ sim_core_write_aligned_N(sim_cpu *cpu,
mapping = sim_core_find_mapping (core, map, addr, N, write_transfer, 1 /*abort*/, cpu, cia);
do
{
-#if (WITH_DEVICES)
- if (mapping->device != NULL)
- {
- unsigned_M data = H2T_M (val);
- if (device_io_write_buffer (mapping->device, &data, mapping->space, addr, N, CPU_STATE (cpu), cpu, cia) != N)
- sim_engine_abort (CPU_STATE (cpu), cpu, cia,
- "internal error - %s - io_write_buffer should not fail",
- XSTRING (sim_core_read_aligned_N));
- break;
- }
-#endif
#if (WITH_HW)
if (mapping->device != NULL)
{
deleted file mode 100644
@@ -1,3 +0,0 @@
-/* Default target configuration file.
- To override this, create file `tconfig.in' in the simulator's
- source directory. */
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* sim-if.c (cris_option_install): Delete.
@@ -1,5 +1,10 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * config.in, configure: Regenerate.
+ * Makefile.in (rvdummy.o): Delete tconfig.h.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (sim_open): Delete cpu variable. Pass NULL/NULL_CIA to
sim_core_write_buffer.
@@ -72,7 +72,7 @@ check: rvdummy$(EXEEXT)
rvdummy$(EXEEXT): rvdummy.o $(EXTRA_LIBDEPS)
$(CC) $(ALL_CFLAGS) -o rvdummy$(EXEEXT) rvdummy.o $(EXTRA_LIBS)
-rvdummy.o: rvdummy.c config.h tconfig.h $(remote_sim_h) $(callback_h)
+rvdummy.o: rvdummy.c config.h $(remote_sim_h) $(callback_h)
# CRISV10 objs
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-11-15 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-06-23 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
@@ -1,5 +1,9 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * config.in, configure: Regenerate.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (sim_create_inferior): Replace old #if 0 code with dupargv.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
@@ -1,5 +1,9 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * config.in, configure: Regenerate.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* interp.c (sim_create_inferior): Update comment and argv check.
2015-11-15 Mike Frysinger <vapier@gentoo.org>
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* compile.c (H8300_OPTIONS): New enum from common/sim-options.c.
@@ -1,5 +1,9 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * config.in, configure: Regenerate.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (sim_create_inferior): Replace old #if 0 code with dupargv.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
@@ -1,5 +1,9 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * config.in, configure: Regenerate.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (sim_create_inferior): Replace old #if 0 code with dupargv.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-11-09 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (sample.x, sample.mot, sample2.x, sample2.o, gloss.o):
@@ -1,5 +1,9 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * config.in, configure: Regenerate.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (sim_create_inferior): Replace old #if 0 code with dupargv.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (SIM_HANDLES_LMA): Delete.
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-11-15 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_OBJS): Delete sim-reason.o, sim-reg.o, and
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-11-15 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
@@ -1,5 +1,9 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * config.in, configure: Regenerate.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* interp.c (sim_write, sim_read): Delete.
(store_word): Delete call to AddressTranslation and set paddr=vaddr.
(load_word): Likewise.
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (SIM_HANDLES_LMA): Delete.
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-11-15 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-12-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
* msp430-sim.c (get_op, put_op): Fix left shift of negative value.
@@ -1,3 +1,9 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (TCONFIG_H): Delete.
+ (sim-fpu.o): Delete $(TCONFIG_H).
+ (tconfig.h): Delete rule.
+
2015-11-21 Mike Frysinger <vapier@gentoo.org>
PR sim/13834
@@ -446,9 +446,6 @@ SUPPORT_H = \
TARG_VALS_H = \
targ-vals.h
-TCONFIG_H = \
- tconfig.h
-
INLINE = \
inline.h \
inline.c
@@ -659,13 +656,9 @@ callback.o: $(srcdir)/../common/callback.c $(TARG_VALS_H) $(CONFIG_H)
targ-map.o: targ-map.c $(ANSIDECL_H) $(GDB_CALLBACK_H) $(TARG_VALS_H)
-sim-fpu.o: $(srcdir)/../common/sim-fpu.c $(CONFIG_H) $(TCONFIG_H)
+sim-fpu.o: $(srcdir)/../common/sim-fpu.c $(CONFIG_H)
$(CC) -c $(STD_CFLAGS) -DHAVE_CONFIG_H $(srcdir)/../common/sim-fpu.c
-tconfig.h:
- rm -f tconfig.h
- echo > tconfig.h
-
# Rebuild options whenever something changes so the date/time is up to date.
options.o: options.c $(CPU_H) $(OPTIONS_H) $(DEFINES_H) $(BASICS_H) $(IDECODE_H) $(INLINE) $(LIB_SRC) $(BUILT_SRC) config.status Makefile
$(CC) -c $(STD_CFLAGS) '-DOPCODE_RULES="@sim_opcode@"' '-DIGEN_FLAGS="$(IGEN_FLAGS)"' '-DDGEN_FLAGS="$(DGEN_FLAGS)"' $(srcdir)/options.c
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-06-23 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-11-10 Nick Clifton <nickc@redhat.com>
* rx.c (id_names): Add nop4, nop5, nop6 and nop7.
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-11-21 Mike Frysinger <vapier@gentoo.org>
* gencode.c (tab): Pass sd into trap calls.
@@ -1,5 +1,9 @@
2015-12-26 Mike Frysinger <vapier@gentoo.org>
+ * config.in, configure: Regenerate.
+
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
* sim-if.c (sim_create_inferior): Replace old #if 0 code with dupargv.
2015-12-25 Mike Frysinger <vapier@gentoo.org>
@@ -1,3 +1,7 @@
+2015-12-26 Mike Frysinger <vapier@gentoo.org>
+
+ * config.in, configure: Regenerate.
+
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (WITH_WATCHPOINTS): Delete.