I want to add the ARMv6 instructions, who can give some advices?
Hi all,
I want to add the ARMv6 instructions support to the QEMU, and now I am analysing the QEMU architecture. I think maybe someone has done it or doing it now.
Can you give me some guide about this work or give your suggestions?
Please talk about it.
Quoted 7 lines · wang lianwei
Hi all,
I want to add the ARMv6 instructions support to the QEMU, and now I am analysing the QEMU architecture. I think maybe someone has done it or doing it now.
Can you give me some guide about this work or give your suggestions?
I have already implemented armv6 and armv7 support in qemu, but am unable to distribute it for legal reasons.
See the previous thread on this topic:
http://lists.gnu.org/archive/html/qemu-devel/2006-03/msg00199.html
If you want armv6 support in qemu your best bet is to contact ARM and persuade them to lift this restriction.
Paul
Or, someone who hasn't agreed to the contract could implement armv6 and 7 support.
-- John.
Quoted 2 lines · John R.
Or, someone who hasn't agreed to the contract could implement armv6 and 7 support.
That implies implementing it without looking at the architecture documentation, since the only way to get that documentation is to agree to the licence.
I do have access to the architecture documentation, so I probably wouldn't be able to touch that code. ie. I'd be unable to continue working on qemu.
Paul
Quoted 3 lines · Paul Brook
I do have access to the architecture documentation, so I probably wouldn't be able to touch that code. ie. I'd be unable to continue working on qemu.
Is there a time limit on that part of your documentation license?
Can you reveal to us what exactly your license prohibits, for example by pasting that part of the license here?
Thanks,
-- Jamie
Quoted 6 lines · Jamie Lokier
Quoted 3 lines · Paul Brook
I do have access to the architecture documentation, so I probably wouldn't be able to touch that code. ie. I'd be unable to continue working on qemu.
Is there a time limit on that part of your documentation license?
No.
Quoted 2 lines
Can you reveal to us what exactly your license prohibits, for example by pasting that part of the license here?
http://www.arm.com/products/CPUs/ARM_Cortex-M3_v7.html
Specifically clause 2(i):
"No right is granted to [...] use the ARM Architecture Reference Manual for the purposes of developing or having developed microprocessor cores or models thereof which are compatible in whole or part with either or both the instructions or programmer's models described in this ARM Architecture Reference Manual"
You may argue whether qemu constitutes a "microprocessor model". However the ARM licencing/legal department have stated that in their opinion it does, and is covered by this clause.
Also note clause 2(iii) that prohibits redistribution of the document.
Paul
Quoted 9 lines · Paul Brook
Quoted 2 lines
Can you reveal to us what exactly your license prohibits, for example by pasting that part of the license here?
http://www.arm.com/products/CPUs/ARM_Cortex-M3_v7.html
Specifically clause 2(i):
"No right is granted to [...] use the ARM Architecture Reference Manual for the purposes of developing or having developed microprocessor cores or models thereof which are compatible in whole
vvvv
Quoted 1 line
or part with either or both the instructions or programmer's models
^^^^
Quoted 1 line
described in this ARM Architecture Reference Manual"
Qemu is already compatible "in part" with the the instructions and models described in the manual, isn't it?
So by the language of clause 2(i), aren't you _already_ prohibited from working on Qemu's ARM code?
I suppose you could argue that you're not using those particular manuals to work on Qemu's ARM code at the moment.
Even though you've read and understood those manuals... that somehow, the knowledge you've gained from them (even "in part") isn't being used to write the existing Qemu code.
That seems dubious to me. Isn't it much the same as arguing that you're not using those particular manuals to develop ARMv6 support, if you can refer to other resources (books etc.) which provide the necessary information?
-- Jamie
Quoted 6 lines
Quoted 4 lines
Specifically clause 2(i):
"No right is granted to [...] use the ARM Architecture Reference Manual for the purposes of developing or having developed microprocessor cores or models thereof which are compatible in wholevvvv
Quoted 1 line
or part with either or both the instructions or programmer's models
Quoted 8 lines
^^^^Quoted 1 line
described in this ARM Architecture Reference Manual"
Qemu is already compatible "in part" with the the instructions and models described in the manual, isn't it?
So by the language of clause 2(i), aren't you _already_ prohibited from working on Qemu's ARM code?
All the information used to implement the current qemu Arm support is available from other sources not covered by this licence. I'm confident I could prove this if necessary.
Paul
Quoted 9 lines · Paul Brook
Quoted 5 lines
Qemu is already compatible "in part" with the the instructions and models described in the manual, isn't it?
So by the language of clause 2(i), aren't you _already_ prohibited from working on Qemu's ARM code?
All the information used to implement the current qemu Arm support is available from other sources not covered by this licence. I'm confident I could prove this if necessary.
Of course, I'm sure you're right.
In the thread you cited earlier, Wolfgang Schildbach refers to "ARM System Developer's Guide", by Sloss, Symes, and Wright, Elsevier 2004 as documentation that may be sufficient for Qemu ARMv6 support, and which is not covered by the license.
If ARMv6 support were developed by someone else, using only that book, and maybe looking at other code (GCC, Linux etc.), that would prove that all the information used is from other sources not covered by the license, wouldn't it?
The support might be missing a few features, if the other information sources are incomplete, but even incomplete support that can be deduced from those sources would be good enough for most purposes.
If that were done, you could prove that the resulting feature in Qemu was written using sources not covered by the license.
So would you have any problem contributing to Qemu after ARMv6 support was integrated, if the person who contributes ARMv6 support states that they have never seen the ARM document and refers to the sources they have used instead?
-- Jamie
Quoted 4 lines
So would you have any problem contributing to Qemu after ARMv6 support was integrated, if the person who contributes ARMv6 support states that they have never seen the ARM document and refers to the sources they have used instead?
As I mentioned before I have significant local patches implementing unreleased Arm features. The only way to avoid cross contamination between that and a third party qemu implementation two would be for me to stop contributing anything (or at minimum anything ARM related) back to qemu.
Basing work on the gcc/binutils code doesn't help me either because I wrote most of that code in the first place :-)
Paul
Quoted 10 lines · Paul Brook
Quoted 4 lines
So would you have any problem contributing to Qemu after ARMv6 support was integrated, if the person who contributes ARMv6 support states that they have never seen the ARM document and refers to the sources they have used instead?
As I mentioned before I have significant local patches implementing unreleased Arm features. The only way to avoid cross contamination between that and a third party qemu implementation two would be for me to stop contributing anything (or at minimum anything ARM related) back to qemu.
The idea is for someone else, working completely independently of you, and without ever seeing those patches of yours, to provide the later ARM support.
I know it doesn't feel good to think about someone else duplicating the work you have done, but that's not a reason to not do it, if it's the only legal solution to a useful feature.
So why "anything ARM related" and not "anything ARMv6 or later related"?
Isn't it sufficient for you to avoid contributing anything related to the versions/features the restrictive license covers, so that you could continue to contribute ARM related things for the older, publically documented features?
That may feel uncomfortable, but it is no different than your present situation. And for other people, it would provide a useful feature.
Quoted 2 lines
Basing work on the gcc/binutils code doesn't help me either because I wrote most of that code in the first place :-)
Since the idea is for someone else do it, that doesn't matter.
I'm wondering why, if it were done, it would be a problem for you to contribute in future in the areas which you contribute to now.
-- Jamie
Quoted 7 lines
Quoted 2 lines
Basing work on the gcc/binutils code doesn't help me either because I wrote most of that code in the first place :-)
Since the idea is for someone else do it, that doesn't matter.
I'm wondering why, if it were done, it would be a problem for you to contribute in future in the areas which you contribute to now.
Because a large proportion of my contributions, and most of my interest is in this area.
Paul
Quoted 5 lines · Paul Brook
Quoted 5 lines
Quoted 2 lines
Basing work on the gcc/binutils code doesn't help me either because I wrote most of that code in the first place :-)
Since the idea is for someone else do it, that doesn't matter.
Quoted 7 lines
Quoted 2 lines
I'm wondering why, if it were done, it would be a problem for you to contribute in future in the areas which you contribute to now.
Because a large proportion of my contributions, and most of my interest is in this area.
Paul
No one wants to lose your effort on the ARM port. For the most part you are the ARM port. Have you talked to an IP or contract lawyer about the issue? There's your liability and another issue is liability for the project or copyright issues. It is interesting to know how far both go and how they relate. To my mind this just seems pretty murkey. Yes the best solution would be a pass from ARM but everyone knows that isn't going to happen.
-- John.
Quoted 10 lines · Paul Brook
Quoted 7 lines
Quoted 2 lines
Basing work on the gcc/binutils code doesn't help me either because I wrote most of that code in the first place :-)
Since the idea is for someone else do it, that doesn't matter.
I'm wondering why, if it were done, it would be a problem for you to contribute in future in the areas which you contribute to now.
Because a large proportion of my contributions, and most of my interest is in this area.
Sorry, I guess my question wasn't clear.
I'm not asking why it would be a problem for you to stop contributing to ARM support in Qemu. That's not the meaning of my question above. Of course it would be a problem for all of us if you had to stop.
I am asking why you think you'd have to stop contributing to the pre-ARMv6 feature set, given that it's unrelated to the restrictions that you're bound by.
If it's post-ARMv6 contributions that you're interested in, you can't contribute them now or in future; so someone else contributing changes in that area makes no difference to you.
Or does it? That's my question; I don't see why post-ARMv6 functionality in Qemu would prevent you from contributing to the pre-ARMv6 functionality (devices, CPU model etc.), which is the only area you're publically able to contribute now anyway.
I realise they would overlap substantially in the code, but that doesn't mean you have to contribute any changes or reveal any information which depends on the ARMv6 or later documentation.
I don't see why it would make a difference to what you're able to do, and that's why I'm asking why you think it would.
Thanks,
-- Jamie
Quoted 7 lines · Paul Brook
Quoted 5 lines · wang lianwei
I want to add the ARMv6 instructions support to the QEMU, and now I am analysing the QEMU architecture. I think maybe someone has done it or doing it now.
Can you give me some guide about this work or give your suggestions?
Quoted 8 lines
I have already implemented armv6 and armv7 support in qemu, but am unable to distribute it for legal reasons.
See the previous thread on this topic:
http://lists.gnu.org/archive/html/qemu-devel/2006-03/msg00199.htmlIf you want armv6 support in qemu your best bet is to contact ARM and persuade them to lift this restriction.
There were three suggestions in that thread, and persuading ARM Ltd to lift the restriction was one of them.
The other two suggestions were:
1. For someone who is not bound by an ARM documentation license to do it, for example by working out the instruction set from reading Binutils, GCC and Linux code, and from reading books like the "ARM System Developer's Guide", by Sloss, Symes, and Wright, Elsevier 2004.
The objection was raised that although that would be possible, it would prevent some people (who are bound by an ARM license) from contributing to the new Qemu.
I think that would not be a problem if the ARMv6 support were in the form of a contributed patch, which those people could avoid looking at.
2. To add an explanation of why ARMv6 isn't supported to Qemu's FAQ.
Anyone in a position to add to the FAQ?
-- Jamie