I fixed this issue.

The problem was that my patch broke the execution of ucSim for other ports.
It is fixed now and it is attached with this email, for those who want to
test it.

On Tue, Aug 23, 2022 at 8:21 PM Daniel Franzini <daniel.franz...@gmail.com>
wrote:

>
> I'm struggling to get "make test-stm8" working. I build a version with
> both stm8 and ucsim enabled and I can run "make test-stm8" but it seems to
> be in an infinite loop without stopping. What is the expected time the full
> test suite takes to run? I want to run this because maybe stm8 is some sort
> of reference I can follow to see how things are done.
>
>
>> Philipp
>>
>>
>> _______________________________________________
>> Sdcc-user mailing list
>> Sdcc-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>>
>
>
> --
> Daniel
>
> "Let us change our traditional attitude to the construction of programs.
> Instead of imagining that our main task is to instruct a computer what to
> do, let us concentrate rather on explaining to human beings what we want a
> computer to do." (Donald Knuth)
>
> "Yes, technogeeks can be funny, even if only to each other." (
> http://www.boogieonline.com/revolution/science/humor/)"
>
> "Man is driven to create; I know I really love to create things. And while
> I'm not good at painting, drawing, or music, I can write software."
> (Yukihiro Matsumoto, a.k.a. ``Matz'')
>


-- 
Daniel

"Let us change our traditional attitude to the construction of programs.
Instead of imagining that our main task is to instruct a computer what to
do, let us concentrate rather on explaining to human beings what we want a
computer to do." (Donald Knuth)

"Yes, technogeeks can be funny, even if only to each other." (
http://www.boogieonline.com/revolution/science/humor/)"

"Man is driven to create; I know I really love to create things. And while
I'm not good at painting, drawing, or music, I can write software."
(Yukihiro Matsumoto, a.k.a. ``Matz'')
Index: sdcc/support/regression/Makefile.in
===================================================================
--- sdcc/support/regression/Makefile.in	(revision 13668)
+++ sdcc/support/regression/Makefile.in	(working copy)
@@ -154,9 +154,9 @@
 	mos6502-stack-auto
 
 # unstable
-EXCLUDE_PORTS += \
-	pic14 \
-	pic16
+# EXCLUDE_PORTS += \
+#	pic14 \
+#	pic16
 
 # redundant, uCSim works better.
 EXCLUDE_PORTS += \
@@ -263,7 +263,17 @@
 # Only include if we're in a per-port call.
 ifdef PORT
 
-EMU_INPUT = < $(PORTS_DIR)/$(PORT_BASE)/uCsim.cmd
+ifeq ($(PORT_BASE), pic14)
+EMU_INPUT = $(PORTS_DIR)/$(PORT_BASE)/gpsim.cmd
+EMU_EXTRA_FLAGS = -i -c
+else
+ifeq ($(PORT_BASE), pic16)
+EMU_INPUT = $(PORTS_DIR)/$(PORT_BASE)/gpsim.cmd
+EMU_EXTRA_FLAGS = -i -c
+else
+EMU_INPUT = < $(PORTS_DIR)/$(PORT_BASE)/uCsim.cmd
+endif
+endif
 
 # run simulator with SIM_TIMEOUT seconds timeout
   # include ./$(PORT)/spec.mk if exists, else include $(PORTS_DIR)/$(PORT)/spec.mk
@@ -279,7 +289,7 @@
 	@echo --- Running: $< > $@;
 
 	-${M_V_at}if $(MAKE) $(MAKE_SUB_FLAGS) $(TMP_DIR)/$(PORT)/$*$(BINEXT) PORT=$(PORT); then \
-	  ${M_V_EMU}$(TMP_DIR)/timeout $(SIM_TIMEOUT) $(EMU) $(EMU_PORT_FLAG) $(EMU_FLAGS) $(TMP_DIR)/$(PORT)/$*$(BINEXT) ${EMU_INPUT} > $@; \
+	  ${M_V_EMU}$(TMP_DIR)/timeout $(SIM_TIMEOUT) $(EMU) $(EMU_PORT_FLAG) $(EMU_FLAGS) $(TMP_DIR)/$(PORT)/$*$(BINEXT) ${EMU_EXTRA_FLAGS} ${EMU_INPUT} > $@; \
 	  if [ 0 -ne $$? ]; then \
 	    echo --- FAIL: \"timeout, simulation killed\" in $< >> $@; \
 	    echo --- Summary: 1/1/1: timeout >> $@; \
Index: sdcc/support/regression/ports/pic14/spec.mk
===================================================================
--- sdcc/support/regression/ports/pic14/spec.mk	(revision 13668)
+++ sdcc/support/regression/ports/pic14/spec.mk	(working copy)
@@ -32,6 +32,8 @@
 OBJEXT = .o
 BINEXT = .cod
 
+EMU=$(GPSIM)
+
 EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
 
 # Rule to link into .ihx
Index: sdcc/support/regression/ports/pic16/spec.mk
===================================================================
--- sdcc/support/regression/ports/pic16/spec.mk	(revision 13668)
+++ sdcc/support/regression/ports/pic16/spec.mk	(working copy)
@@ -33,6 +33,8 @@
 OBJEXT = .o
 BINEXT = .cod
 
+EMU = $(GPSIM)
+
 EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
 
 # Rule to link into .ihx
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to