[kaffe] CVS kaffe (dalibor): Fixes for SH4
Kaffe CVS
Kaffe Mailing List <kaffe@kaffe.org>
Tue Apr 6 10:39:03 2004
PatchSet 4625
Date: 2004/04/06 17:12:20
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixes for SH4
2004-04-06 Tomo, Sasaki <tomo@livedoor.jp>
* config/superh/common.h:
Added ALIGNMENT_OF_SIZE.
* config/superh/linux/md.h:
Fixed include.
Members:
ChangeLog:1.2202->1.2203
config/superh/common.h:1.2->1.3
config/superh/linux/md.h:1.3->1.4
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2202 kaffe/ChangeLog:1.2203
--- kaffe/ChangeLog:1.2202 Mon Apr 5 17:43:34 2004
+++ kaffe/ChangeLog Tue Apr 6 17:12:20 2004
@@ -1,3 +1,11 @@
+2004-04-06 Tomo, Sasaki <tomo@livedoor.jp>
+
+ * config/superh/common.h:
+ Added ALIGNMENT_OF_SIZE.
+
+ * config/superh/linux/md.h:
+ Fixed include.
+
2004-04-05 Nektarios K. Papadopoulos <npapadop@inaccessnetworks.com>
* kaffe/kaffevm/{classMethod,exception,jni,soft,stackTrace,
Index: kaffe/config/superh/common.h
diff -u kaffe/config/superh/common.h:1.2 kaffe/config/superh/common.h:1.3
--- kaffe/config/superh/common.h:1.2 Sun Dec 14 16:31:39 2003
+++ kaffe/config/superh/common.h Tue Apr 6 17:12:22 2004
@@ -15,6 +15,9 @@
#ifndef __superh_common_h
#define __superh_common_h
+/* The SuperH never aligns to more than a 4 byte boundary. */
+#define ALIGNMENT_OF_SIZE(S) ((S) < 4 ? (S) : 4)
+
#include <stddef.h>
/*
Index: kaffe/config/superh/linux/md.h
diff -u kaffe/config/superh/linux/md.h:1.3 kaffe/config/superh/linux/md.h:1.4
--- kaffe/config/superh/linux/md.h:1.3 Sun Dec 14 16:31:40 2003
+++ kaffe/config/superh/linux/md.h Tue Apr 6 17:12:22 2004
@@ -15,7 +15,7 @@
#ifndef __superh_linux_md_h
#define __superh_linux_md_h
-#include "superh/common.h
+#include "superh/common.h"
#include "superh/sysdepCallMethod.h"
#include "superh/threads.h"