Closed
Bug 497596
Opened 16 years ago
Closed 16 years ago
ARM avmshell getstack does not generate correct ARM instructions
Categories
(Tamarin Graveyard :: Baseline JIT (CodegenLIR), defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: tomd, Assigned: edwsmith)
Details
Attachments
(1 file, 1 obsolete file)
366 bytes,
patch
|
edwsmith
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.65 Safari/525.19
Build Identifier: 1,4 2009-04-24
UnixPlatform::getStackBase() in avmshellUnix.cpp has no provision for ARM asm instructions to get the stack base. The Intel instructions are not accepted by gcc.
Reproducible: Always
Steps to Reproduce:
1. Compile Tamarin on ARM/Linux with gcc 4.3.2
2.
3.
Actual Results:
Error: bad instruction `movl %esp,r0'
Expected Results:
no error
Reporter | ||
Comment 1•16 years ago
|
||
Updated•16 years ago
|
Attachment #382729 -
Flags: review?(edwsmith)
Assignee | ||
Comment 3•16 years ago
|
||
Comment on attachment 382729 [details] [diff] [review]
avmshellUnix ARM patch
this should use VMCFG_ARM, AVMPLUS_ARM is being phased out. R+ with this change.
also, it will only work on compilers with asm() support, (gcc + armcc), which presumably isnt a problem in avmshellUnix.cpp?
Attachment #382729 -
Flags: review?(edwsmith) → review+
Assignee | ||
Comment 4•16 years ago
|
||
It looks like this bug is no longer a problem with the latest code in tamarin-redux, which uses getrlimit(). Anyone want to confirm or deny? either way this bug patches code which is now gone, so please rebase & resubmit a new patch if something more is needed.
Comment 5•16 years ago
|
||
We had a report from the field (tamarin-discuss) that this very patch fixes compilation on a Maemo IIRC, but it's not clear to me if that was tamarin-redux or tamarin-central. Investigating.
Assignee: nobody → edwsmith
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 6•16 years ago
|
||
The correspondent reports that he's working from tamarin-central (rev 710).
Comment 7•16 years ago
|
||
Attachment #384839 -
Flags: review?(edwsmith)
Assignee | ||
Comment 8•16 years ago
|
||
Comment on attachment 384839 [details] [diff] [review]
__clear_cache patch for unix
i moved the patch to bug 499914, I will push it to tamarin-redux
Attachment #384839 -
Flags: review?(edwsmith) → review+
Assignee | ||
Comment 9•16 years ago
|
||
Comment on attachment 382729 [details] [diff] [review]
avmshellUnix ARM patch
I'll push this to tamarin-central but there's nothing to merge with tamarin-redux since the code changed.
Assignee | ||
Comment 10•16 years ago
|
||
Comment on attachment 382729 [details] [diff] [review]
avmshellUnix ARM patch
pushed
http://hg.mozilla.org/tamarin-central/rev/dab354bc047c
Assignee | ||
Updated•16 years ago
|
Attachment #384839 -
Attachment is obsolete: true
Assignee | ||
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 11•16 years ago
|
||
(In reply to comment #9)
> (From update of attachment 382729 [details] [diff] [review])
> I'll push this to tamarin-central but there's nothing to merge with
> tamarin-redux since the code changed.
I have tried to use __clear_cache similar way as tamarin-redux, it still hangs with unmapped PC on ARMV7. I guess there are lot of ARMJIT changes which need to be merged into TC. Is there any easier way to get the ARMJIT related diff and apply it to TC?
Assignee | ||
Comment 12•16 years ago
|
||
you can search through the TR history to find the change that corresponds to the TC tip, and do hg diff. But, it might be easier to just use TR; its a deveopment branch but its pretty stable.
Comment 13•15 years ago
|
||
Resolved fixed engineering / work item that has been pushed. Setting status to verified.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•