[kaffe] arm-linux and gcc 3.x

Helmer Krämer hkraemer@freenet.de
Tue Apr 6 08:21:02 2004


This is a multi-part message in MIME format.

--Multipart=_Tue__6_Apr_2004_17_18_06_+0200_3h.4GSu28gANMDG3
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


Hi all,

I've played a little bit with gcc 3.x on arm-linux,
trying to get the jit engine working and the results
are somewhat promising.

However, when I run the patched jitter on a strong
arm, it gets a SIGILL and terminates.

So I'm wondering if someone else with access to an
xscale could give the attached patch a try and report
whether they're more successful than me? Patch is
against cvs from a couple of minutes ago.

Thanks,
Helmer

--Multipart=_Tue__6_Apr_2004_17_18_06_+0200_3h.4GSu28gANMDG3
Content-Type: application/octet-stream;
 name="arm-patch"
Content-Disposition: attachment;
 filename="arm-patch"
Content-Transfer-Encoding: base64

SW5kZXg6IGthZmZlL2thZmZldm0vam5pLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9rYWZm
ZS9rYWZmZS9rYWZmZS9rYWZmZXZtL2puaS5jLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjEwOQpk
aWZmIC11IC1yMS4xMDkgam5pLmMKLS0tIGthZmZlL2thZmZldm0vam5pLmMJNSBBcHIgMjAwNCAx
Nzo0MzozOCAtMDAwMAkxLjEwOQorKysga2FmZmUva2FmZmV2bS9qbmkuYwk2IEFwciAyMDA0IDE1
OjA3OjQyIC0wMDAwCkBAIC0xMDMsNyArMTAzLDkgQEAKICAqLwogI2lmIGRlZmluZWQoVFJBTlNM
QVRPUikKICNkZWZpbmUgS0FGRkVfSk5JX1NFVEVYQ0VQVEZQKGVidWZwKSB7CQkJCVwKLSAgICAg
ICAgdm1FeGNlcHRfc2V0Sk5JRnJhbWUoZWJ1ZnAsIF9fYnVpbHRpbl9mcmFtZV9hZGRyZXNzKDAp
KTtcCisJZXhjZXB0aW9uRnJhbWU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U1RBQ0tU
UkFDRSwgZHByaW50ZiAoImZpcnN0RnJhbWU6IHBjIDB4JXgsIHNwIDB4JXgsIGZwIDB4JXhcbiIs
IHBjLCBzcCwgZnApOyApOworICB9IGVsc2UgeworICAKKyAgICBzcCA9IGYtPnJldHNwOworICAg
IGZwID0gZi0+cmV0ZnA7CisgICAgcGMgPSBmLT5yZXRwYzsKKworICAgIERCRyhTVEFDS1RSQUNF
LCBkcHJpbnRmICgibmV4dEZyYW1lOiBwYyAweCV4LCBzcCAweCV4LCBmcCAweCV4XG4iLCBwYywg
c3AsIGZwKTsgKTsKKworICAgIGlmIChwYyA9PSAwKSBBQk9SVCAoKTsKKyAgfQorCisgIC8qCisg
ICAgc2VhcmNoIGJhY2t3YXJkcyB1bnRpbCB3ZSBmaW5kIGFuCisgICAgc3RtYiBzcCEsIHssbHJ9
CisgICovCisgIGZvciAoOztwYy09NCkgeworICAgIC8qIERCRyhTVEFDS1RSQUNFLCBkcHJpbnRm
ICgiZm91bmQgMHgleCBhdCAlcFxuIiwgKnBjLCBwYyk7ICk7ICovCisgICAgdWludHAgaW5zbiA9
ICogKHVpbnRwICopIHBjOworCisgICAgaWYgKElTX1NUTURCKGluc24pKSB7CisgICAgICAvKiBz
dG1kYiAhc3AsIHsuLi59ICovCisKKyAgICAgIGlmICggKGluc24mKDE8PDE1KSkgIT0gMCApIHsK
KwkvKiBpZiBwYyBpcyBwdXNoZWQsIGFzc3VtZSB0aGF0IGZwIGhhcyB0byBiZSB1c2VkIHRvIHJl
c3RvcmUgcmVnaXN0ZXJzICovCisgICAgICAgIGludCBpOworCQorICAgICAgICBEQkcoU1RBQ0tU
UkFDRSwgZHByaW50ZiAoInVzaW5nIGZwIDB4JXggdG8gbG9hZCByZWdpc3RlcnNcbiIsIGZwKTsg
KTsKKworICAgICAgICBmb3IgKGk9MTU7IGk+PTA7IGktLSkgeworICAgICAgICAgIGlmIChpbnNu
ICYgKDE8PGkpKSB7CisJICAgIGlmIChpID09IDExKSB7CisJICAgICAgZi0+cmV0ZnAgPSAqICh1
aW50cCAqKSBmcDsKKwkgICAgfSBlbHNlIGlmIChpID09IDEyKSB7CisJICAgICAgc3AgPSAqICh1
aW50cCAqKSBmcDsKKwkgICAgfSBlbHNlIGlmIChpID09IDE0KSB7CisJICAgICAgZi0+cmV0cGMg
PSAqICh1aW50cCAqKSBmcDsKKwkgICAgfQorCisJICAgIGZwIC09IDQ7CisJICB9CisJfQorCQor
CWJyZWFrOworICAgICAgfSBlbHNlIHsKKwlpbnQgaTsKKworICAgICAgc3RtZGJfaW5zbjoKKwlE
QkcoU1RBQ0tUUkFDRSwgZHByaW50ZigidXNpbmcgc3AgMHgleCB0byBsb2FkIHJlZ2lzdGVyc1xu
Iiwgc3ApOyApOworCQorCWZvciAoaT0wOyBpPDE2OyBpKyspIHsKKwkgIGlmICggaW5zbiAmICgx
PDxpKSApIHsKKwkgICAgaWYgKGkgPT0gMTEpIHsKKwkgICAgICBmLT5yZXRmcCA9ICogKHVpbnRw
ICopIHNwOworCSAgICB9IGVsc2UgaWYgKGkgPT0gMTQpIHsKKwkgICAgICBmLT5yZXRwYyA9ICog
KHVpbnRwICopIHNwOworCSAgICB9CisJICAgIHNwICs9IDQ7CisJICB9CisJfQorCQorCXBjIC09
IDQ7CisJaW5zbiA9ICoodWludHAgKilwYzsKKworCWlmIChJU19TVE1EQihpbnNuKSkgeworCSAg
Z290byBzdG1kYl9pbnNuOworCX0KKworCWJyZWFrOworICAgICAgfQorICAgIH0KKyAgICBlbHNl
IGlmIChJU19TVFIoaW5zbikpIHsKKyAgICBzdHJfaW5zbjoKKyAgICAgIC8qIHN0ciBzb21ldGhp
bmcsIFtzcCwgIzRdISA9PiByZXN0b3JlIHJlZ2lzdGVyIGFuZCBzZXQgc3AgYWNjb3JkaW5nbHkg
Ki8KKyAgICAgIGluc24gPSAoaW5zbiA+PiAxMikgJiAweGY7CisKKyAgICAgIGlmIChpbnNuID09
IDExKSB7CisJZi0+cmV0ZnAgPSAqICh1aW50cCAqKSBzcDsKKyAgICAgIH0gZWxzZSBpZiAoaW5z
biA9PSAxNCkgeworCWYtPnJldHBjID0gKiAodWludHAgKikgc3A7ICAgICAgCisgICAgICB9Cisg
ICAgICAKKyAgICAgIHNwICs9IDQ7CisKKyAgICAgIHBjIC09IDQ7CisgICAgICBpbnNuID0gKiAo
dWludHAgKilwYzsKKworICAgICAgaWYgKElTX1NUUihpbnNuKSkgeworCWdvdG8gc3RyX2luc247
CisgICAgICB9CisgICAgICAKKyAgICAgIGJyZWFrOworICAgIH0KKyAgICBlbHNlIGlmICgoaW5z
biAmIDB4ZmZmZmYwMDApID09IDB4ZTI0ZGQwMDApIHsKKyAgICAgIC8qIHN1YiBzcCwgc3AsIGZy
YW1lc2l6ZSA9PiBleHRyYWN0IGZyYW1lc2l6ZSAqLworICAgICAgaW50IGltbWVkaWF0ZSA9IGlu
c24gJiAweGZmOworICAgICAgaW50IHNoaWZ0ID0gKGluc24gJiAweGYwMCkgPj4gNzsKKyAgICAg
IAorICAgICAgc3AgKz0gKGltbWVkaWF0ZSA+PiBzaGlmdCkgfCAoaW1tZWRpYXRlIDw8ICgzMiAt
IHNoaWZ0KSk7CisgICAgfQorICB9CisKKyAgZi0+cmV0c3AgPSBzcDsKKworICBEQkcoU1RBQ0tU
UkFDRSwgZHByaW50ZigiZm91bmQgcGMgMHgleCwgc3AgMHgleCwgZnAgMHgleFxuIiwgZi0+cmV0
cGMsIGYtPnJldHNwLCBmLT5yZXRmcCk7ICk7CisKKyAgcmV0dXJuIGY7Cit9CkluZGV4OiBjb25m
aWcvYXJtL2NvbW1vbi5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMva2FmZmUva2FmZmUvY29u
ZmlnL2FybS9jb21tb24uaCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xMApkaWZmIC11IC1yMS4x
MCBjb21tb24uaAotLS0g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A7CQkJCQlcCiAJKGYpLnJldHBjID0gKGMpLnJlZy5BUk1fcGM7CiAKICNlbHNl
CiAvKiBUaGlzIG9uZSBpcyBmb3IgRGViaWFuICovCiAjZGVmaW5lCUVYQ0VQVElPTkZSQU1FKGYs
IGMpCQkJCQkJXAogCShmKS5yZXRmcCA9IChjKS5hcm1fZnA7CQkJCQkJXAorCShmKS5yZXRzcCA9
IChjKS5hcm1fc3A7CQkJCQkJXAogCShmKS5yZXRwYyA9IChjKS5hcm1fcGM7CiAjZW5kaWYKIApJ
bmRleDogY29uZmlnL2FybS9saW51eC9tZC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMva2Fm
ZmUva2FmZmUvY29uZmlnL2FybS9saW51eC9tZC5jLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjUK
ZGlmZiAtdSAtcjEuNSBtZC5jCi0tLSBjb25maWcvYXJtL2xpbnV4L21kLmMJMTEgTWFyIDIwMDQg
MTE6Mzg6MTAgLTAwMDAJMS41CisrKyBjb25maWcvYXJtL2xpbnV4L21kLmMJNiBBcHIgMjAwNCAx
NTowNzo0MiAtMDAwMApAQCAtMzcsMyArMzcsNyBAQAogCQkgICAgOiAiciIgKChsb25nKXN0YXJ0
KSwgInIiICgobG9uZyllbmQpCiAJCSAgICA6ICJyMCIsInIxIiwicjIiKTsKIH0KKworI2lmIGRl
ZmluZWQoVFJBTlNMQVRPUikgJiYgKF9fR05VQ19fID09IDMpCisjaW5jbHVkZSAiYXJtL2FybS5j
IgorI2VuZGlmCg==

--Multipart=_Tue__6_Apr_2004_17_18_06_+0200_3h.4GSu28gANMDG3--