<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>24382</bug_id>
          
          <creation_ts>2009-03-05 07:32:13 -0800</creation_ts>
          <short_desc>request to add SH4 platform</short_desc>
          <delta_ts>2009-03-05 23:18:17 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Simone">simone.fiorentino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>112369</commentid>
    <comment_count>0</comment_count>
    <who name="Simone">simone.fiorentino</who>
    <bug_when>2009-03-05 07:32:13 -0800</bug_when>
    <thetext>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 a patch (against WebKit trunk) that 
introduce the SH4 platform and solves the non-aligned memory accesses (I use 
the same code as per ARM platform).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112370</commentid>
    <comment_count>1</comment_count>
      <attachid>28299</attachid>
    <who name="Simone">simone.fiorentino</who>
    <bug_when>2009-03-05 07:37:19 -0800</bug_when>
    <thetext>Created attachment 28299
Introduce the SH4 platform - solves the non-aligned memory accesses for SH4 in WebCore::equal

1. Introduce the SH4 platform
2. Solves the non-aligned memory accesses for SH4 (I use 
the same code as per ARM platform).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112523</commentid>
    <comment_count>2</comment_count>
      <attachid>28299</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2009-03-05 21:03:01 -0800</bug_when>
    <thetext>Comment on attachment 28299
Introduce the SH4 platform - solves the non-aligned memory accesses for SH4 in WebCore::equal

r=me

NOTE: Need to add the bug title and bug number to the ChangeLogs before landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112543</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2009-03-05 23:18:17 -0800</bug_when>
    <thetext>$ git svn dcommit
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	JavaScriptCore/ChangeLog
	M	JavaScriptCore/wtf/Platform.h
	M	WebCore/ChangeLog
	M	WebCore/platform/text/AtomicString.cpp
Committed r41475

http://trac.webkit.org/changeset/41475
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>28299</attachid>
            <date>2009-03-05 07:37:19 -0800</date>
            <delta_ts>2009-03-05 21:03:01 -0800</delta_ts>
            <desc>Introduce the SH4 platform - solves the non-aligned memory accesses for SH4 in WebCore::equal</desc>
            <filename>sh4Platform.patch</filename>
            <type>text/plain</type>
            <size>1944</size>
            <attacher name="Simone">simone.fiorentino</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBKYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDQxNDQ3KQorKysgSmF2YVNjcmlwdENvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTAgQEAKKzIwMDktMDMtMDUgIFNpbW9uZSBG
aW9yZW50aW5vICA8c2ltb25lLmZpb3JlbnRpbm9AY29uc3VsZW50aS5mYXN0d2ViLml0PgorCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogd3RmL1BsYXRm
b3JtLmg6CisgICAgICAgIEFkZGVkIHN1cHBvcnQgZm9yIFNINCBwbGF0Zm9ybQkKKwogMjAwOS0w
My0wNSAgTWFyayBSb3dlICA8bXJvd2VAYXBwbGUuY29tPgogCiAgICAgICAgIEZpeCB0aGUgYnVp
bGQuCkluZGV4OiBKYXZhU2NyaXB0Q29yZS93dGYvUGxhdGZvcm0uaAo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBK
YXZhU2NyaXB0Q29yZS93dGYvUGxhdGZvcm0uaAkocmV2aXNpb24gNDE0NDcpCisrKyBKYXZhU2Ny
aXB0Q29yZS93dGYvUGxhdGZvcm0uaAkod29ya2luZyBjb3B5KQpAQCAtMjMyLDYgKzIzMiwxMiBA
QAogIyAgIGVuZGlmCiAjZW5kaWYKIAorLyogUExBVEZPUk0oU0g0KSAqLworI2lmICAgZGVmaW5l
ZChfX1NINF9fKQorI2RlZmluZSBXVEZfUExBVEZPUk1fU0g0IDEKKyNlbmRpZgorCisKIC8qIENv
bXBpbGVyICovCiAKIC8qIENPTVBJTEVSKE1TVkMpICovCkluZGV4OiBXZWJDb3JlL0NoYW5nZUxv
Zwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09Ci0tLSBXZWJDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gNDE0NDcpCisrKyBX
ZWJDb3JlL0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ogc3RyaW5nQ2hhcmFjdGVycyA9
IHN0cmluZy0+Y2hhcmFjdGVycygpOwogICAgIGZvciAodW5zaWduZWQgaSA9IDA7IGkgIT0gbGVu
Z3RoOyArK2kpIHsKICAgICAgICAgaWYgKCpzdHJpbmdDaGFyYWN0ZXJzKysgIT0gKmNoYXJhY3Rl
cnMrKykK
</data>
<flag name="review"
          id="13850"
          type_id="1"
          status="+"
          setter="ddkilzer"
    />
          </attachment>
      

    </bug>

</bugzilla>