From 0c92feda4d3ffb450d4ba62aaab29d4f0f510adb Mon Sep 17 00:00:00 2001 From: Matthew Green Date: Fri, 14 Dec 2001 00:22:13 +0000 Subject: * support sim-fpu.c for correct FP emulation. * Makefile.in (LIB_OBJ): Add @sim_fpu@. (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables. (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS. (sim-fpu.o, sim-bits.o, tconfig.h): New targets. * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags. * configure: Regenerate. * device.h (device_find_integer_array_property): Match function definition. * gen-icache.c (print_icache_internal_function_declaration): Rename INLINE_ICACHE to PSIM_INLINE_ICACHE. * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE to PSIM_INLINE_IDECODE. * gen-semantics.c (print_semantic_function_header): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS. * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to PSIM_INLINE_SUPPORT. * igen.c (print_function_name): Also escape `(' and `)'. (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS. (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h" * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN. (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN. (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN. (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS. (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT. (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT. (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS. (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS. (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE. (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE. (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE. (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE. * options.c (options_inline): Fix names. * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN. * sim-endian.h: Likewise. * sim-main.h: New file. * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. --- sim/ppc/Makefile.in | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'sim/ppc/Makefile.in') diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index 6007ce08d9a..5aea414fc37 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -306,6 +306,7 @@ LIB_OBJ = \ semantics.o \ idecode.o \ support.o \ + @sim_fpu@ \ psim.o \ $(PACKAGE_OBJ) \ $(HW_OBJ) \ @@ -314,6 +315,9 @@ LIB_OBJ = \ GDB_OBJ = sim_calls.o @sim_callback@ +ICACHE_CFLAGS = @sim_fpu_cflags@ +SEMANTICS_CFLAGS = @sim_fpu_cflags@ + HW_SRC = @sim_hw_src@ HW_OBJ = @sim_hw_obj@ @@ -386,10 +390,10 @@ device_table.o: device_table.c $(DEVICE_TABLE_H) events.h hw.c cap.o: cap.c cap.h $(BASICS_H) semantics.o: semantics.c semantics.h $(CPU_H) $(IDECODE_H) - $(CC) -c $(NOWARN_CFLAGS) $< + $(CC) -c $(SEMANTICS_CFLAGS) $(NOWARN_CFLAGS) $< icache.o: icache.c icache.h $(IDECODE_H) $(CPU_H) - $(CC) -c $(NOWARN_CFLAGS) $< + $(CC) -c $(ICACHE_CFLAGS) $(NOWARN_CFLAGS) $< support.o: support.c support.h $(IDECODE_H) $(CPU_H) @@ -422,6 +426,16 @@ callback.o: ../common/callback.c targ-vals.h config.h targ-map.o: targ-map.c targ-vals.h +sim-fpu.o: $(srcdir)/../common/sim-fpu.c config.h tconfig.h + $(CC) -c $(STD_CFLAGS) -DHAVE_CONFIG_H $(srcdir)/../common/sim-fpu.c + +sim-bits.o: $(srcdir)/../common/sim-bits.c config.h tconfig.h + $(CC) -c $(STD_CFLAGS) -DHAVE_CONFIG_H $(srcdir)/../common/sim-bits.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 $(BASICS_H) $(CPU_H) $(IDECODE_H) $(INLINE) $(LIB_SRC) $(BUILT_SRC) config.status Makefile defines.h $(CC) -c $(STD_CFLAGS) '-DOPCODE_RULES="@sim_opcode@"' '-DIGEN_FLAGS="$(IGEN_FLAGS)"' '-DDGEN_FLAGS="$(DGEN_FLAGS)"' $< -- cgit v1.2.1