Hi,
I would like to gratify you for your great work.
I'm working in porting WebKit for SH4 platform.
I had some problems related to non-aligned memory accesses as done in 
WebCore::equal(StringImpl* string, const UChar* characters, unsigned length) 
function for the SH4 platform.
My question is: can you add support in WebKit sources for SH4 platform?

In attachment you can find two little patches (against WebKit trunk) that 
introduce the SH4 platform and solves the non-aligned memory accesses (I use 
the same code as per ARM platform).

Best regards.

Tnx,
Simone.
Index: JavaScriptCore/wtf/Platform.h
===================================================================
--- JavaScriptCore/wtf/Platform.h	(revision 41446)
+++ JavaScriptCore/wtf/Platform.h	(working copy)
@@ -232,6 +232,12 @@
 #   endif
 #endif
 
+/* PLATFORM(SH4) */
+#if   defined(__SH4__)
+#define WTF_PLATFORM_SH4 1
+#endif
+
+
 /* Compiler */
 
 /* COMPILER(MSVC) */
Index: WebCore/platform/text/AtomicString.cpp
===================================================================
--- WebCore/platform/text/AtomicString.cpp	(revision 41446)
+++ WebCore/platform/text/AtomicString.cpp	(working copy)
@@ -101,7 +101,7 @@
     if (string->length() != length)
         return false;
 
-#if PLATFORM(ARM)
+#if PLATFORM(ARM) || PLATFORM(SH4)
     const UChar* stringCharacters = string->characters();
     for (unsigned i = 0; i != length; ++i) {
         if (*stringCharacters++ != *characters++)
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to