sim/frv not regeneratable with cgen and guile-1.8.5
Frank Ch. Eigler
fche@redhat.com
Tue Dec 23 17:32:00 GMT 2008
Hi -
On Tue, Dec 23, 2008 at 02:43:48AM +0100, Hans-Peter Nilsson wrote:
> I had to find an installation with guile-1.3.4 in order to
> regenerate the frv sim. Maybe a guile/scheme-savvy
> person/maintainer can look into it? I had to give up myself,
> sorry. CGEN and guile..lacks in the debuggability department.
It's clumsy. Changing the sim/.../Makefile thusly activated
backtracing:
CGEN = "`if [ -f ../../guile/libguile/guile ]; then echo ../../guile/libguile/guile; else echo guile ; fi` -l $(CGENDIR)/guile.scm --debug -s"
CGENFLAGS = -v -b
The operative flags being "--debug" for guile *and* "-b" for cgen.
Perhaps we should simply activate these all the time, machines being
fast enough.
The following patch, committed, fixes cgen for frv; tested also on m32r.
2008-12-23 Frank Ch. Eigler <fche@redhat.com>
* sim.scm (-op-gen-queued-write): Add needed symbol->string.
Index: sim.scm
===================================================================
RCS file: /cvs/src/src/cgen/sim.scm,v
retrieving revision 1.14
diff -r1.14 sim.scm
1147c1147
< (string-downcase (if sem-mode
---
> (string-downcase (symbol->string (if sem-mode
1149c1149
< (mode-real-name mode))))))
---
- FChE
More information about the Cgen
mailing list