[kaffe] CVS kaffe (dalibor): Small fix for m68k-netbsd build

Kaffe CVS cvs-commits at kaffe.org
Fri Jan 2 11:59:02 PST 2004


PatchSet 4259 
Date: 2004/01/02 19:55:37
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Small fix for m68k-netbsd build

2004-01-02  Dalibor Topic <robilad at kaffe.org>

        * config/m68k/netbsd1/config.frag
        (LDFLAGS) Added new LDFLAGS necessary to link in
        m68k_sync_icode.

        * config/m68k/netbsd1/jit-md.h
        (FLUSH_DCACHE) Use m68k_sync_icode.
        (FLUSH_040NETBSD_DCACHE) Commented out.

Members: 
	ChangeLog:1.1846->1.1847 
	config/m68k/netbsd1/config.frag:1.6->1.7 
	config/m68k/netbsd1/jit-md.h:1.6->1.7 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1846 kaffe/ChangeLog:1.1847
--- kaffe/ChangeLog:1.1846	Fri Jan  2 18:26:04 2004
+++ kaffe/ChangeLog	Fri Jan  2 19:55:37 2004
@@ -1,5 +1,15 @@
 2004-01-02  Dalibor Topic <robilad at kaffe.org>
 
+	* config/m68k/netbsd1/config.frag
+	(LDFLAGS) Added new LDFLAGS necessary to link in
+	m68k_sync_icode.
+
+	* config/m68k/netbsd1/jit-md.h
+	(FLUSH_DCACHE) Use m68k_sync_icode.
+	(FLUSH_040NETBSD_DCACHE) Commented out.
+
+2004-01-02  Dalibor Topic <robilad at kaffe.org>
+
 	* libraries/javalib/bootstrap.classlist:
 	Added missing class files to fix build with kjc.
 
Index: kaffe/config/m68k/netbsd1/config.frag
diff -u kaffe/config/m68k/netbsd1/config.frag:1.6 kaffe/config/m68k/netbsd1/config.frag:1.7
--- kaffe/config/m68k/netbsd1/config.frag:1.6	Mon Jul 28 18:28:41 2003
+++ kaffe/config/m68k/netbsd1/config.frag	Fri Jan  2 19:55:38 2004
@@ -2,7 +2,7 @@
 # m68k/Netbsd1 configuration.
 #
 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
-
+LDFLAGS="$LDFLAGS -lm68k"
 if [ "$cross_compiling" = yes ]; then
   ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
 fi
Index: kaffe/config/m68k/netbsd1/jit-md.h
diff -u kaffe/config/m68k/netbsd1/jit-md.h:1.6 kaffe/config/m68k/netbsd1/jit-md.h:1.7
--- kaffe/config/m68k/netbsd1/jit-md.h:1.6	Wed Aug 27 09:35:08 2003
+++ kaffe/config/m68k/netbsd1/jit-md.h	Fri Jan  2 19:55:38 2004
@@ -44,6 +44,7 @@
 /*
  * Flush the cache on netbsd.
  */
+/*
 #define FLUSH_040NETBSD_DCACHE(beg, end) \
 	__asm__ __volatile__( \
 		"movem%.l %/d0-%/d7/%/a0-%/a5,%-\n\t" \
@@ -54,8 +55,11 @@
 		"trap   %#12\n\t" \
 		"movem%.l %+,%/d0-%/d7/%/a0-%/a5" \
 		: : "g" (beg), "g" (end))
-
+*/
 #undef	FLUSH_DCACHE
+/*
 #define	FLUSH_DCACHE(B,E)	FLUSH_040NETBSD_DCACHE(B,E)
+*/
+#define FLUSH_DCACHE(_start,_end) m68k_sync_icache((_start), (uintp)(_end) - (uintp)(_start))
 
 #endif




More information about the kaffe mailing list