Update disassembler files from latest binutils
A message that is not in the archive (sent off-list or not yet received): [email protected]
RFC PATCH 1/1 Update disassembler files from latest binutils
Hi,
The disassembler files should be updated to get newer instructions supported. This is currently not easy because the *-dis.c files are concatenated using several files from binutils. There are some Qemu specific changes.
The first patch introduces a new directory "dis", moves sparc-dis.c there, and splits it to three files as used in binutils: sparc-dis.c, sparc-opc.c and sparc.h.
The second patch updates the files from binutils 2.18. The real changes from 2002 binutils to current are not that large, but there is some code movement and I changed tabs to spaces at one point. The license changes from GPL v2 to v3.
I can introduce more staging patches if necessary. Comments?
Quoted 1 line · Blue Swirl
The second patch updates the files from binutils 2.18.
Why not 2.19? It is almost released.
Signature · 3 lines
Regards, Kirill A. Shutemov + Belarus, Minsk + ALT Linux Team, http://www.altlinux.com/
Quoted 5 lines · Kirill A. Shutemov
Quoted 1 line · Blue Swirl
The second patch updates the files from binutils 2.18.
Why not 2.19? It is almost released.
That's of course possible too. I haven't followed binutils development at all.
Am 24.10.2008 um 21:12 schrieb Blue Swirl:
Quoted 4 lines
The second patch updates the files from binutils 2.18. The real changes from 2002 binutils to current are not that large, but there is some code movement and I changed tabs to spaces at one point. The license changes from GPL v2 to v3.
In January there were some complaints about GPLv3 (wasn't that for disassembler files?), try searching for "teenage mutant legal turtles". ;-)
It was reverted to using "GPLv2 or later" at the time.
Andreas
Quoted 10 lines · Andreas Färber
Am 24.10.2008 um 21:12 schrieb Blue Swirl:
Quoted 5 lines
The second patch updates the files from binutils 2.18. The real changes from 2002 binutils to current are not that large, but there is some code movement and I changed tabs to spaces at one point. The license changes from GPL v2 to v3.
Quoted 4 lines
In January there were some complaints about GPLv3 (wasn't that for
disassembler files?), try searching for "teenage mutant legal turtles". ;-)It was reverted to using "GPLv2 or later" at the time.
But there are a lot of files with GPL v3 now:
bt-host.c: * (at your option) version 3 of the License. bt-vhci.c: * (at your option) version 3 of the License. hw/blizzard.c: * (at your option) version 3 of the License. hw/blizzard_template.h: * (at your option) version 3 of the License. hw/bt-hci-csr.c: * (at your option) version 3 of the License. hw/bt-hid.c: * (at your option) version 3 of the License. hw/bt.c: * (at your option) version 3 of the License. hw/cbus.c: * (at your option) version 3 of the License. hw/lm832x.c: * (at your option) version 3 of the License. hw/nseries.c: * (at your option) version 3 of the License. hw/omap.h: * (at your option) version 3 of the License. hw/omap1.c: * (at your option) version 3 of the License. hw/omap2.c: * (at your option) version 3 of the License. hw/omap_dss.c: * (at your option) version 3 of the License. hw/omap_mmc.c: * (at your option) version 3 of the License. hw/onenand.c: * (at your option) version 3 of the License. hw/palm.c: * (at your option) version 3 of the License. hw/soc_dma.c: * (at your option) version 3 of the License. hw/soc_dma.h: * (at your option) version 3 of the License. hw/tmp105.c: * (at your option) version 3 of the License. hw/tsc2005.c: * (at your option) version 3 of the License. hw/tsc210x.c: * (at your option) version 3 of the License. hw/tusb6010.c: * (at your option) version 3 of the License. hw/twl92230.c: * (at your option) version 3 of the License. hw/usb-bt.c: * (at your option) version 3 of the License. hw/usb-musb.c: * (at your option) version 3 of the License. hw/zaurus.c: * (at your option) version 3 of the License.
Quoted 11 lines · Blue Swirl
Quoted 10 lines · Andreas Färber
Am 24.10.2008 um 21:12 schrieb Blue Swirl:
Quoted 5 lines
The second patch updates the files from binutils 2.18. The real changes from 2002 binutils to current are not that large, but there is some code movement and I changed tabs to spaces at one point. The license changes from GPL v2 to v3.
Quoted 6 lines
Quoted 4 lines
In January there were some complaints about GPLv3 (wasn't that for
disassembler files?), try searching for "teenage mutant legal turtles". ;-)It was reverted to using "GPLv2 or later" at the time.
But there are a lot of files with GPL v3 now:
The fact that we already have GPL v3 file is not relevant. GPL v2 only is not compatible with GPL v3. Either all the GPL v2 only file have to be relicensed, or the GPL v3 only files have to be relicensed or removed.
Quoted 27 lines
bt-host.c: * (at your option) version 3 of the License.bt-vhci.c: * (at your option) version 3 of the License.hw/blizzard.c: * (at your option) version 3 of the License.hw/blizzard_template.h: * (at your option) version 3 of the License.hw/bt-hci-csr.c: * (at your option) version 3 of the License.hw/bt-hid.c: * (at your option) version 3 of the License.hw/bt.c: * (at your option) version 3 of the License.hw/cbus.c: * (at your option) version 3 of the License.hw/lm832x.c: * (at your option) version 3 of the License.hw/nseries.c: * (at your option) version 3 of the License.hw/omap.h: * (at your option) version 3 of the License.hw/omap1.c: * (at your option) version 3 of the License.hw/omap2.c: * (at your option) version 3 of the License.hw/omap_dss.c: * (at your option) version 3 of the License.hw/omap_mmc.c: * (at your option) version 3 of the License.hw/onenand.c: * (at your option) version 3 of the License.hw/palm.c: * (at your option) version 3 of the License.hw/soc_dma.c: * (at your option) version 3 of the License.hw/soc_dma.h: * (at your option) version 3 of the License.hw/tmp105.c: * (at your option) version 3 of the License.hw/tsc2005.c: * (at your option) version 3 of the License.hw/tsc210x.c: * (at your option) version 3 of the License.hw/tusb6010.c: * (at your option) version 3 of the License.hw/twl92230.c: * (at your option) version 3 of the License.hw/usb-bt.c: * (at your option) version 3 of the License.hw/usb-musb.c: * (at your option) version 3 of the License.hw/zaurus.c: * (at your option) version 3 of the License.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 21 lines · Blue Swirl
But there are a lot of files with GPL v3 now:
bt-host.c: * (at your option) version 3 of the License.bt-vhci.c: * (at your option) version 3 of the License.hw/blizzard.c: * (at your option) version 3 of the License.hw/blizzard_template.h: * (at your option) version 3 of the License.hw/bt-hci-csr.c: * (at your option) version 3 of the License.hw/bt-hid.c: * (at your option) version 3 of the License.hw/bt.c: * (at your option) version 3 of the License.hw/cbus.c: * (at your option) version 3 of the License.hw/lm832x.c: * (at your option) version 3 of the License.hw/nseries.c: * (at your option) version 3 of the License.hw/omap.h: * (at your option) version 3 of the License.hw/omap1.c: * (at your option) version 3 of the License.hw/omap2.c: * (at your option) version 3 of the License.hw/omap_dss.c: * (at your option) version 3 of the License.hw/omap_mmc.c: * (at your option) version 3 of the License.hw/onenand.c: * (at your option) version 3 of the License.hw/palm.c: * (at your option) version 3 of the License.hw/soc_dma.c: * (at your option) version 3 of the License.hw/soc_dma.h: * (at your option) version 3 of the License.
Quoted 8 lines
hw/tmp105.c: * (at your option) version 3 of the License.hw/tsc2005.c: * (at your option) version 3 of the License.hw/tsc210x.c: * (at your option) version 3 of the License.hw/tusb6010.c: * (at your option) version 3 of the License.hw/twl92230.c: * (at your option) version 3 of the License.hw/usb-bt.c: * (at your option) version 3 of the License.hw/usb-musb.c: * (at your option) version 3 of the License.hw/zaurus.c: * (at your option) version 3 of the License.
These files are GPL v2, so they fit into Qemu:
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 or
* (at your option) version 3 of the License.
They may be used with GPL v3, too.
By the way: is it "at your option", or should it be "at your opinion"? Could one of the native speakers have a look, please?
Stefan
Quoted 37 lines · Stefan Weil
Quoted 21 lines · Blue Swirl
But there are a lot of files with GPL v3 now:
bt-host.c: * (at your option) version 3 of the License.bt-vhci.c: * (at your option) version 3 of the License.hw/blizzard.c: * (at your option) version 3 of the License.hw/blizzard_template.h: * (at your option) version 3 of the License.hw/bt-hci-csr.c: * (at your option) version 3 of the License.hw/bt-hid.c: * (at your option) version 3 of the License.hw/bt.c: * (at your option) version 3 of the License.hw/cbus.c: * (at your option) version 3 of the License.hw/lm832x.c: * (at your option) version 3 of the License.hw/nseries.c: * (at your option) version 3 of the License.hw/omap.h: * (at your option) version 3 of the License.hw/omap1.c: * (at your option) version 3 of the License.hw/omap2.c: * (at your option) version 3 of the License.hw/omap_dss.c: * (at your option) version 3 of the License.hw/omap_mmc.c: * (at your option) version 3 of the License.hw/onenand.c: * (at your option) version 3 of the License.hw/palm.c: * (at your option) version 3 of the License.hw/soc_dma.c: * (at your option) version 3 of the License.hw/soc_dma.h: * (at your option) version 3 of the License.Quoted 8 lines
hw/tmp105.c: * (at your option) version 3 of the License.hw/tsc2005.c: * (at your option) version 3 of the License.hw/tsc210x.c: * (at your option) version 3 of the License.hw/tusb6010.c: * (at your option) version 3 of the License.hw/twl92230.c: * (at your option) version 3 of the License.hw/usb-bt.c: * (at your option) version 3 of the License.hw/usb-musb.c: * (at your option) version 3 of the License.hw/zaurus.c: * (at your option) version 3 of the License.These files are GPL v2, so they fit into Qemu:
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 or
* (at your option) version 3 of the License.
Quoted 4 lines
They may be used with GPL v3, too.
By the way: is it "at your option", or should it be "at your opinion"? Could one of the native speakers have a look, please?
"At your option", since the user can choose any of them.
Thiemo
Quoted 11 lines · Blue Swirl
Hi,
The disassembler files should be updated to get newer instructions supported. This is currently not easy because the *-dis.c files are concatenated using several files from binutils. There are some Qemu specific changes.
The first patch introduces a new directory "dis", moves
sparc-dis.cthere, and splits it to three files as used in binutils:sparc-dis.c,sparc-opc.candsparc.h.
Quoted 6 lines
The second patch updates the files from binutils 2.18. The real changes from 2002 binutils to current are not that large, but there is some code movement and I changed tabs to spaces at one point. The license changes from GPL v2 to v3.
I can introduce more staging patches if necessary. Comments?
Some files in Qemu are licensed as GPLv2 only. This is incompatible with recent binutils files which are GPLv3 or later.
Thiemo
Quoted 4 lines
The second patch updates the files from binutils 2.18. The real changes from 2002 binutils to current are not that large, but there is some code movement and I changed tabs to spaces at one point. The license changes from GPL v2 to v3.
GPLv3 is not acceptable for qemu, which contains v2 only code.
Paul
Quoted 7 lines · Paul Brook
Quoted 4 lines
The second patch updates the files from binutils 2.18. The real changes from 2002 binutils to current are not that large, but there is some code movement and I changed tabs to spaces at one point. The license changes from GPL v2 to v3.
GPLv3 is not acceptable for qemu, which contains v2 only code.
We could update once to binutils 2.17 which is GPL v2+. For Sparc this would be about OK, since there is just one commit after GPLv3 switch. But for i386 this would mean missing 30 to 50 commits.
Alternatively we could develop new disassemblers, for example based on translate.c code (LGPL v2 for Sparc). Easy for Sparc, but a huge job for i386/amd64.
Quoted 3 lines · Blue Swirl
Alternatively we could develop new disassemblers, for example based on
translate.ccode (LGPL v2 for Sparc).
The main issue with that approach is that it may result in reproducing translate bugs in the disassembler, and I am sure the target I am familiar with has such bugs.
On the other hand if one uses translate to write a disassembler and does an exhaustive disassembly and compares the result with objdump output then both qemu and binutils (which also contains holes for the ARM target, at least last time I checked) will benefit.
Laurent
Quoted 6 lines · Blue Swirl
Quoted 2 lines
GPLv3 is not acceptable for qemu, which contains v2 only code.
We could update once to binutils 2.17 which is GPL v2+. For Sparc this would be about OK, since there is just one commit after GPLv3 switch. But for i386 this would mean missing 30 to 50 commits.
I took a quick look at binutils CVS repository: 2.17 released happened in June '06.
According to ChangeLog, the switch to GPLv3 occured in July '07:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/opcodes/ChangeLog-2007?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=src
So I *guess* getting source out of CVS from June '07 should be safe license wise, though probably slightly dangerous from a stability point of view. Perhaps Paul can comment on that?
Laurent
Quoted 11 lines · Laurent Desnogues
Quoted 6 lines · Blue Swirl
Quoted 2 lines
GPLv3 is not acceptable for qemu, which contains v2 only code.
We could update once to binutils 2.17 which is GPL v2+. For Sparc this would be about OK, since there is just one commit after GPLv3 switch. But for i386 this would mean missing 30 to 50 commits.
I took a quick look at binutils CVS repository: 2.17 released happened in June '06.
Quoted 6 lines
According to ChangeLog, the switch to GPLv3 occured in July '07:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/opcodes/ChangeLog-2007?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=srcSo I *guess* getting source out of CVS from June '07 should be safe license wise, though probably slightly dangerous from a stability point of view. Perhaps Paul can comment on that?
In case it matters, the ARM disassembler is exactly at the point I
mentionned: last commit before the switch to GPLv3.
Laurent