Author: sewardj
Date: Fri Jun 6 09:30:13 2014
New Revision: 2869
Log:
Add a port of 3_8_BRANCH to IBM BlueGene/Q (VEX side).
Added:
branches/VEX_3_8_BRANCH_BGQ/
branches/VEX_3_8_BRANCH_BGQ/HACKING.README
branches/VEX_3_8_BRANCH_BGQ/LICENSE.GPL
branches/VEX_3_8_BRANCH_BGQ/LICENSE.README
branches/VEX_3_8_BRANCH_BGQ/Makefile-gcc
branches/VEX_3_8_BRANCH_BGQ/Makefile-icc
branches/VEX_3_8_BRANCH_BGQ/TODO.txt
branches/VEX_3_8_BRANCH_BGQ/auxprogs/
branches/VEX_3_8_BRANCH_BGQ/auxprogs/genoffsets.c
branches/VEX_3_8_BRANCH_BGQ/docs/
branches/VEX_3_8_BRANCH_BGQ/nanoarm.orig
branches/VEX_3_8_BRANCH_BGQ/newline.txt
branches/VEX_3_8_BRANCH_BGQ/orig_amd64/
branches/VEX_3_8_BRANCH_BGQ/orig_amd64/Compare.hs
branches/VEX_3_8_BRANCH_BGQ/orig_amd64/SortedToOrig.hs
branches/VEX_3_8_BRANCH_BGQ/orig_amd64/test1.orig
branches/VEX_3_8_BRANCH_BGQ/orig_amd64/test1.sorted
branches/VEX_3_8_BRANCH_BGQ/orig_amd64/test2.orig
branches/VEX_3_8_BRANCH_BGQ/orig_amd64/test2.sorted
branches/VEX_3_8_BRANCH_BGQ/orig_arm/
branches/VEX_3_8_BRANCH_BGQ/orig_arm/nanoarm
branches/VEX_3_8_BRANCH_BGQ/orig_arm/nanoarm.orig
branches/VEX_3_8_BRANCH_BGQ/orig_ppc32/
branches/VEX_3_8_BRANCH_BGQ/orig_ppc32/date.orig
branches/VEX_3_8_BRANCH_BGQ/orig_ppc32/loadsafp.orig
branches/VEX_3_8_BRANCH_BGQ/orig_ppc32/morefp.orig
branches/VEX_3_8_BRANCH_BGQ/orig_ppc32/return0.orig
branches/VEX_3_8_BRANCH_BGQ/orig_x86/
branches/VEX_3_8_BRANCH_BGQ/orig_x86/exit42.orig
branches/VEX_3_8_BRANCH_BGQ/orig_x86/fpu_mmx_sse.orig
branches/VEX_3_8_BRANCH_BGQ/orig_x86/manyfp.orig
branches/VEX_3_8_BRANCH_BGQ/priv/
branches/VEX_3_8_BRANCH_BGQ/priv/guest_amd64_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/guest_amd64_helpers.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_amd64_toIR.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_arm_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/guest_arm_helpers.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_arm_toIR.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_generic_bb_to_IR.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_generic_bb_to_IR.h
branches/VEX_3_8_BRANCH_BGQ/priv/guest_generic_x87.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_generic_x87.h
branches/VEX_3_8_BRANCH_BGQ/priv/guest_mips_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/guest_mips_helpers.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_mips_toIR.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_ppc_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/guest_ppc_helpers.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_ppc_toIR.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_s390_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/guest_s390_helpers.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_s390_toIR.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_x86_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/guest_x86_helpers.c
branches/VEX_3_8_BRANCH_BGQ/priv/guest_x86_toIR.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_amd64_defs.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_amd64_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/host_amd64_isel.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_arm_defs.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_arm_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/host_arm_isel.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_generic_reg_alloc2.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_generic_regs.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_generic_regs.h
branches/VEX_3_8_BRANCH_BGQ/priv/host_generic_simd128.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_generic_simd128.h
branches/VEX_3_8_BRANCH_BGQ/priv/host_generic_simd64.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_generic_simd64.h
branches/VEX_3_8_BRANCH_BGQ/priv/host_mips_defs.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_mips_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/host_mips_isel.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_ppc_defs.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_ppc_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/host_ppc_isel.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_s390_defs.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_s390_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/host_s390_disasm.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_s390_disasm.h
branches/VEX_3_8_BRANCH_BGQ/priv/host_s390_isel.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_x86_defs.c
branches/VEX_3_8_BRANCH_BGQ/priv/host_x86_defs.h
branches/VEX_3_8_BRANCH_BGQ/priv/host_x86_isel.c
branches/VEX_3_8_BRANCH_BGQ/priv/ir_defs.c
branches/VEX_3_8_BRANCH_BGQ/priv/ir_match.c
branches/VEX_3_8_BRANCH_BGQ/priv/ir_match.h
branches/VEX_3_8_BRANCH_BGQ/priv/ir_opt.c
branches/VEX_3_8_BRANCH_BGQ/priv/ir_opt.h
branches/VEX_3_8_BRANCH_BGQ/priv/main_globals.c
branches/VEX_3_8_BRANCH_BGQ/priv/main_globals.h
branches/VEX_3_8_BRANCH_BGQ/priv/main_main.c
branches/VEX_3_8_BRANCH_BGQ/priv/main_util.c
branches/VEX_3_8_BRANCH_BGQ/priv/main_util.h
branches/VEX_3_8_BRANCH_BGQ/pub/
branches/VEX_3_8_BRANCH_BGQ/pub/libvex.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_basictypes.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_emwarn.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_guest_amd64.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_guest_arm.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_guest_mips32.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_guest_ppc32.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_guest_ppc64.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_guest_s390x.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_guest_x86.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_ir.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_s390x_common.h
branches/VEX_3_8_BRANCH_BGQ/pub/libvex_trc_values.h
branches/VEX_3_8_BRANCH_BGQ/quote.txt
branches/VEX_3_8_BRANCH_BGQ/switchback/
branches/VEX_3_8_BRANCH_BGQ/switchback/Makefile
branches/VEX_3_8_BRANCH_BGQ/switchback/binary_switchback.pl (with props)
branches/VEX_3_8_BRANCH_BGQ/switchback/linker.c
branches/VEX_3_8_BRANCH_BGQ/switchback/linker.h
branches/VEX_3_8_BRANCH_BGQ/switchback/switchback.c
branches/VEX_3_8_BRANCH_BGQ/switchback/test_bzip2.c
branches/VEX_3_8_BRANCH_BGQ/switchback/test_emfloat.c
branches/VEX_3_8_BRANCH_BGQ/switchback/test_hello.c
branches/VEX_3_8_BRANCH_BGQ/switchback/test_ppc_jm1.c
branches/VEX_3_8_BRANCH_BGQ/switchback/test_simple.c
branches/VEX_3_8_BRANCH_BGQ/test/
branches/VEX_3_8_BRANCH_BGQ/test/fldenv.c
branches/VEX_3_8_BRANCH_BGQ/test/fp1.c
branches/VEX_3_8_BRANCH_BGQ/test/fp1.s
branches/VEX_3_8_BRANCH_BGQ/test/fpconst.c
branches/VEX_3_8_BRANCH_BGQ/test/fpgames.s
branches/VEX_3_8_BRANCH_BGQ/test/fpspeed.c
branches/VEX_3_8_BRANCH_BGQ/test/fpucw.c
branches/VEX_3_8_BRANCH_BGQ/test/frstor.c
branches/VEX_3_8_BRANCH_BGQ/test/fsave.c
branches/VEX_3_8_BRANCH_BGQ/test/fstenv.c
branches/VEX_3_8_BRANCH_BGQ/test/fxsave.c
branches/VEX_3_8_BRANCH_BGQ/test/mmxtest.c
branches/VEX_3_8_BRANCH_BGQ/test/mxcsr.c
branches/VEX_3_8_BRANCH_BGQ/test/rounderr.c
branches/VEX_3_8_BRANCH_BGQ/test/test-amd64-muldiv.h
branches/VEX_3_8_BRANCH_BGQ/test/test-amd64-shift.h
branches/VEX_3_8_BRANCH_BGQ/test/test-amd64.c
branches/VEX_3_8_BRANCH_BGQ/test/test-amd64.h
branches/VEX_3_8_BRANCH_BGQ/test/test-i386-muldiv.h
branches/VEX_3_8_BRANCH_BGQ/test/test-i386-shift.h
branches/VEX_3_8_BRANCH_BGQ/test/test-i386.c
branches/VEX_3_8_BRANCH_BGQ/test/test-i386.h
branches/VEX_3_8_BRANCH_BGQ/test/x87fxam.c
branches/VEX_3_8_BRANCH_BGQ/test/x87tst.c
branches/VEX_3_8_BRANCH_BGQ/test_main.c
branches/VEX_3_8_BRANCH_BGQ/test_main.h
branches/VEX_3_8_BRANCH_BGQ/test_main.h.base
branches/VEX_3_8_BRANCH_BGQ/unused/
branches/VEX_3_8_BRANCH_BGQ/unused/arena.h
branches/VEX_3_8_BRANCH_BGQ/unused/dispatch.c
branches/VEX_3_8_BRANCH_BGQ/unused/linker.c
branches/VEX_3_8_BRANCH_BGQ/useful/
branches/VEX_3_8_BRANCH_BGQ/useful/cpuid.c
branches/VEX_3_8_BRANCH_BGQ/useful/fp_80_64.c
branches/VEX_3_8_BRANCH_BGQ/useful/fpround.c
branches/VEX_3_8_BRANCH_BGQ/useful/fspill.c
branches/VEX_3_8_BRANCH_BGQ/useful/gradual_underflow.c
branches/VEX_3_8_BRANCH_BGQ/useful/hd_fpu.c
branches/VEX_3_8_BRANCH_BGQ/useful/show_fp_state.c
branches/VEX_3_8_BRANCH_BGQ/useful/smchash.c
branches/VEX_3_8_BRANCH_BGQ/useful/x87_to_vex_and_back.c
Added: branches/VEX_3_8_BRANCH_BGQ/HACKING.README
==============================================================================
--- branches/VEX_3_8_BRANCH_BGQ/HACKING.README (added)
+++ branches/VEX_3_8_BRANCH_BGQ/HACKING.README Fri Jun 6 09:30:13 2014
@@ -0,0 +1,5 @@
+
+This directory and its children contain LibVEX, a library for dynamic
+binary instrumentation and translation. See LICENSE.README for
+licensing and contribution information.
+
Added: branches/VEX_3_8_BRANCH_BGQ/LICENSE.GPL
==============================================================================
--- branches/VEX_3_8_BRANCH_BGQ/LICENSE.GPL (added)
+++ branches/VEX_3_8_BRANCH_BGQ/LICENSE.GPL Fri Jun 6 09:30:13 2014
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ 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 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Library General
+Public License instead of this License.
Added: branches/VEX_3_8_BRANCH_BGQ/LICENSE.README
==============================================================================
--- branches/VEX_3_8_BRANCH_BGQ/LICENSE.README (added)
+++ branches/VEX_3_8_BRANCH_BGQ/LICENSE.README Fri Jun 6 09:30:13 2014
@@ -0,0 +1,23 @@
+
+This directory and its children contain LibVEX, a library for dynamic
+binary instrumentation and translation.
+
+ 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 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+ The GNU General Public License is contained in the file LICENSE.GPL.
+
+If you want to contribute code to LibVEX, please ensure it is licensed
+as "GPL v2 or later".
Added: branches/VEX_3_8_BRANCH_BGQ/Makefile-gcc
==============================================================================
--- branches/VEX_3_8_BRANCH_BGQ/Makefile-gcc (added)
+++ branches/VEX_3_8_BRANCH_BGQ/Makefile-gcc Fri Jun 6 09:30:13 2014
@@ -0,0 +1,376 @@
+
+PUB_HEADERS = pub/libvex_basictypes.h \
+ pub/libvex_ir.h \
+ pub/libvex.h \
+ pub/libvex_trc_values.h \
+ pub/libvex_emwarn.h \
+ pub/libvex_guest_x86.h \
+ pub/libvex_guest_amd64.h \
+ pub/libvex_guest_arm.h \
+ pub/libvex_guest_ppc32.h \
+ pub/libvex_guest_ppc64.h \
+ pub/libvex_guest_s390x.h \
+ pub/libvex_s390x_common.h \
+ pub/libvex_guest_mips.h \
+ pub/libvex_guest_offsets.h
+
+PRIV_HEADERS = priv/host_x86_defs.h \
+ priv/host_amd64_defs.h \
+ priv/host_arm_defs.h \
+ priv/host_ppc_defs.h \
+ priv/host_s390_defs.h \
+ priv/host_s390_disasm.h \
+ priv/host_mips_defs.h \
+ priv/host_generic_regs.h \
+ priv/host_generic_simd64.h \
+ priv/host_generic_simd128.h \
+ priv/main_globals.h \
+ priv/main_util.h \
+ priv/guest_generic_x87.h \
+ priv/guest_generic_bb_to_IR.h \
+ priv/guest_x86_defs.h \
+ priv/guest_amd64_defs.h \
+ priv/guest_arm_defs.h \
+ priv/guest_ppc_defs.h \
+ priv/guest_mips_defs.h \
+ priv/ir_match.h \
+ priv/ir_opt.h
+
+LIB_OBJS = priv/ir_defs.o \
+ priv/ir_match.o \
+ priv/ir_opt.o \
+ priv/main_main.o \
+ priv/main_globals.o \
+ priv/main_util.o \
+ priv/host_x86_defs.o \
+ priv/host_amd64_defs.o \
+ priv/host_arm_defs.o \
+ priv/host_ppc_defs.o \
+ priv/host_s390_defs.o \
+ priv/host_mips_defs.o \
+ priv/host_x86_isel.o \
+ priv/host_amd64_isel.o \
+ priv/host_arm_isel.o \
+ priv/host_ppc_isel.o \
+ priv/host_s390_isel.o \
+ priv/host_s390_disasm.o \
+ priv/host_mips_isel.o \
+ priv/host_generic_regs.o \
+ priv/host_generic_simd64.o \
+ priv/host_generic_simd128.o \
+ priv/host_generic_reg_alloc2.o \
+ priv/guest_generic_x87.o \
+ priv/guest_generic_bb_to_IR.o \
+ priv/guest_x86_helpers.o \
+ priv/guest_amd64_helpers.o \
+ priv/guest_arm_helpers.o \
+ priv/guest_ppc_helpers.o \
+ priv/guest_s390_helpers.o \
+ priv/guest_mips_helpers.o \
+ priv/guest_x86_toIR.o \
+ priv/guest_amd64_toIR.o \
+ priv/guest_arm_toIR.o \
+ priv/guest_ppc_toIR.o \
+ priv/guest_s390_toIR.o \
+ priv/guest_mips_toIR.o
+
+PUB_INCLUDES = -Ipub
+
+# Do not add any priv/host-ARCH or priv/guest-ARCH directories to this
+# list, as they contain duplicate file names (each host has a hdefs.h,
+# for example).
+PRIV_INCLUDES = -Ipriv
+
+
+ifndef CC
+ CC = gcc
+endif
+ifndef AR
+ AR = ar
+endif
+
+# Put -g -O2 after any flags we inherit from V. -O2 vs -O
+# makes a significant difference, at least with gcc4.
+CCFLAGS = -Wall -Wmissing-prototypes -Wshadow \
+ -Wpointer-arith -Wbad-function-cast -Wcast-qual \
+ -Wcast-align -Wmissing-declarations \
+ -Wno-pointer-sign \
+ $(EXTRA_CFLAGS) -g -O2 -fstrict-aliasing \
+ \
+ -O
+
+#CC = icc
+#CCFLAGS = -g -Wall -wd981 -wd279 -wd1287 -wd869 -wd111 -wd188 -wd186
+# 981: operands are evaluated in unspecified order
+# 279: controlling expression is constant
+# 1287: invalid attribute for parameter
+# 869: parameter "..." was never referenced
+# 111: statement is unreachable
+# 188: enumerated type mixed with another type
+# (the above are for icc 8.0 -- 8.0.0.55 I think)
+# 186: pointless comparison of unsigned integer with zero
+
+# kludge: stops V biarch builds screwing up at -j 2 or above
+# The Right fix is to autoconf/automake-ise vex.
+.NOTPARALLEL:
+
+all: vex
+
+# Empty, needed for Valgrind
+install:
+
+scratch: clean all
+
+vex: libvex.a test_main.o
+ $(CC) $(CCFLAGS) -o vex test_main.o libvex.a
+
+libvex.a: $(LIB_OBJS)
+ rm -f libvex.a
+ $(AR) crus libvex.a $(LIB_OBJS)
+
+
+# The idea with these TAG-s is to mark the flavour of libvex.a
+# most recently built, so if the same target is re-requested, we
+# don't rebuild everything, but if a different one is requested
+# then we scrub everything and start over.
+
+libvex-x86-linux.a: TAG-x86-linux libvex.a
+ mv -f libvex.a libvex-x86-linux.a
+TAG-x86-linux:
+ if [ ! -f TAG-x86-linux ] ; then rm -f $(LIB_OBJS) TAG-* libvex.a ; fi
+ touch TAG-x86-linux
+
+libvex-amd64-linux.a: TAG-amd64-linux libvex.a
+ mv -f libvex.a libvex-amd64-linux.a
+TAG-amd64-linux:
+ if [ ! -f TAG-amd64-linux ] ; then rm -f $(LIB_OBJS) TAG-* libvex.a ; fi
+ touch TAG-amd64-linux
+
+libvex-ppc32-linux.a: TAG-ppc32-linux libvex.a
+ mv -f libvex.a libvex-ppc32-linux.a
+TAG-ppc32-linux:
+ if [ ! -f TAG-ppc32-linux ] ; then rm -f $(LIB_OBJS) TAG-* libvex.a ; fi
+ touch TAG-ppc32-linux
+
+libvex-ppc64-linux.a: TAG-ppc64-linux libvex.a
+ mv -f libvex.a libvex-ppc64-linux.a
+TAG-ppc64-linux:
+ if [ ! -f TAG-ppc64-linux ] ; then rm -f $(LIB_OBJS) TAG-* libvex.a ; fi
+ touch TAG-ppc64-linux
+
+libvex-mips-linux.a: TAG-mips32-linux libvex.a
+ mv -f libvex.a libvex-mips32-linux.a
+TAG-mips-linux:
+ if [ ! -f TAG-mips32-linux ] ; then rm -f $(LIB_OBJS) TAG-* libvex.a ; fi
+ touch TAG-mips32-linux
+
+libvex-ppc32-aix5.a: TAG-ppc32-aix5 libvex.a
+ mv -f libvex.a libvex-ppc32-aix5.a
+TAG-ppc32-aix5:
+ if [ ! -f TAG-ppc32-aix5 ] ; then rm -f $(LIB_OBJS) TAG-* libvex.a ; fi
+ touch TAG-ppc32-aix5
+
+libvex-ppc64-aix5.a: TAG-ppc64-aix5 libvex.a
+ mv -f libvex.a libvex-ppc64-aix5.a
+TAG-ppc64-aix5:
+ if [ ! -f TAG-ppc64-aix5 ] ; then rm -f $(LIB_OBJS) TAG-* libvex.a ; fi
+ touch TAG-ppc64-aix5
+
+libvex-x86-darwin.a: TAG-x86-darwin libvex.a
+ mv -f libvex.a libvex-x86-darwin.a
+TAG-x86-darwin:
+ if [ ! -f TAG-x86-darwin ] ; then rm -f $(LIB_OBJS) TAG-* libvex.a ; fi
+ touch TAG-x86-darwin
+
+libvex-amd64-darwin.a: TAG-amd64-darwin libvex.a
+ mv -f libvex.a libvex-amd64-darwin.a
+TAG-amd64-darwin:
+ if [ ! -f TAG-amd64-darwin ] ; then rm -f $(LIB_OBJS) TAG-* libvex.a ; fi
+ touch TAG-amd64-darwin
+
+
+clean:
+ rm -f $(LIB_OBJS) *.a vex test_main.o TAG-* \
+ pub/libvex_guest_offsets.h \
+ auxprogs/genoffsets.s
+
+minidist:
+ rm -f vex--minidist-2005MMDD.tar
+ tar cf vex--minidist-2005MMDD.tar $(PUB_HEADERS) $(PRIV_HEADERS) \
+ test_main.c test_main.h \
+ Makefile \
+ `echo $(LIB_OBJS) | sed "s/\.o/\.c/g"`
+ @echo
+ @echo minidist done, size follows:
+ @ls -l vex--minidist-2005MMDD.tar
+ @echo
+
+# This is very uggerly. Need to sed out both "xyzzyN" and
+# "xyzzy$N" since gcc on different targets emits the constants
+# differently -- with a leading $ on x86/amd64 but none on ppc32/64.
+pub/libvex_guest_offsets.h:
+ rm -f auxprogs/genoffsets.s
+ $(CC) $(CCFLAGS) -O -S -o auxprogs/genoffsets.s \
+ auxprogs/genoffsets.c
+ grep xyzzy auxprogs/genoffsets.s | grep "^#define" \
+ | sed "s/xyzzy\\$$//g" \
+ | sed "s/xyzzy#//g" \
+ | sed "s/xyzzy//g" \
+ > pub/libvex_guest_offsets.h
+ rm -f auxprogs/genoffsets.s
+
+
+ALL_HEADERS = $(PUB_HEADERS) $(PRIV_HEADERS)
+ALL_INCLUDES = $(PUB_INCLUDES) $(PRIV_INCLUDES)
+
+test_main.o: $(PUB_HEADERS) test_main.c test_main.h
+ $(CC) $(CCFLAGS) $(PUB_INCLUDES) -o test_main.o \
+ -c test_main.c
+
+priv/ir_defs.o: $(ALL_HEADERS) priv/ir_defs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/ir_defs.o \
+ -c priv/ir_defs.c
+
+priv/ir_match.o: $(ALL_HEADERS) priv/ir_match.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/ir_match.o \
+ -c priv/ir_match.c
+
+priv/ir_opt.o: $(ALL_HEADERS) priv/ir_opt.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/ir_opt.o \
+ -c priv/ir_opt.c
+
+priv/main_main.o: $(ALL_HEADERS) priv/main_main.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/main_main.o \
+ -c priv/main_main.c
+
+priv/main_globals.o: $(ALL_HEADERS) priv/main_globals.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/main_globals.o \
+ -c priv/main_globals.c
+
+priv/main_util.o: $(ALL_HEADERS) priv/main_util.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/main_util.o \
+ -c priv/main_util.c
+
+priv/host_x86_defs.o: $(ALL_HEADERS) priv/host_x86_defs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_x86_defs.o \
+ -c priv/host_x86_defs.c
+
+priv/host_amd64_defs.o: $(ALL_HEADERS) priv/host_amd64_defs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_amd64_defs.o \
+ -c priv/host_amd64_defs.c
+
+priv/host_arm_defs.o: $(ALL_HEADERS) priv/host_arm_defs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_arm_defs.o \
+ -c priv/host_arm_defs.c
+
+priv/host_ppc_defs.o: $(ALL_HEADERS) priv/host_ppc_defs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_ppc_defs.o \
+ -c priv/host_ppc_defs.c
+
+priv/host_s390_defs.o: $(ALL_HEADERS) priv/host_s390_defs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_s390_defs.o \
+ -c priv/host_s390_defs.c
+
+priv/host_mips_defs.o: $(ALL_HEADERS) priv/host_mips_defs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_mips_defs.o \
+ -c priv/host_mips_defs.c
+
+priv/host_x86_isel.o: $(ALL_HEADERS) priv/host_x86_isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_x86_isel.o \
+ -c priv/host_x86_isel.c
+
+priv/host_amd64_isel.o: $(ALL_HEADERS) priv/host_amd64_isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_amd64_isel.o \
+ -c priv/host_amd64_isel.c
+
+priv/host_arm_isel.o: $(ALL_HEADERS) priv/host_arm_isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_arm_isel.o \
+ -c priv/host_arm_isel.c
+
+priv/host_ppc_isel.o: $(ALL_HEADERS) priv/host_ppc_isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_ppc_isel.o \
+ -c priv/host_ppc_isel.c
+
+priv/host_s390_isel.o: $(ALL_HEADERS) priv/host_s390_isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_s390_isel.o \
+ -c priv/host_s390_isel.c
+
+priv/host_mips_isel.o: $(ALL_HEADERS) priv/host_mips_isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_mips_isel.o \
+ -c priv/host_mips_isel.c
+
+priv/host_generic_regs.o: $(ALL_HEADERS) priv/host_generic_regs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_generic_regs.o \
+ -c priv/host_generic_regs.c
+
+priv/host_generic_simd64.o: $(ALL_HEADERS) priv/host_generic_simd64.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_generic_simd64.o \
+ -c priv/host_generic_simd64.c
+
+priv/host_generic_simd128.o: $(ALL_HEADERS) priv/host_generic_simd128.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_generic_simd128.o \
+ -c priv/host_generic_simd128.c
+
+priv/host_generic_reg_alloc2.o: $(ALL_HEADERS) priv/host_generic_reg_alloc2.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_generic_reg_alloc2.o \
+ -c priv/host_generic_reg_alloc2.c
+
+priv/guest_x86_toIR.o: $(ALL_HEADERS) priv/guest_x86_toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_x86_toIR.o \
+ -c priv/guest_x86_toIR.c
+
+priv/guest_generic_x87.o: $(ALL_HEADERS) priv/guest_generic_x87.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_generic_x87.o \
+ -c priv/guest_generic_x87.c
+
+priv/guest_generic_bb_to_IR.o: $(ALL_HEADERS) priv/guest_generic_bb_to_IR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_generic_bb_to_IR.o \
+ -c priv/guest_generic_bb_to_IR.c
+
+priv/guest_x86_helpers.o: $(ALL_HEADERS) priv/guest_x86_helpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_x86_helpers.o \
+ -c priv/guest_x86_helpers.c
+
+priv/guest_amd64_helpers.o: $(ALL_HEADERS) priv/guest_amd64_helpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_amd64_helpers.o \
+ -c priv/guest_amd64_helpers.c
+
+priv/guest_amd64_toIR.o: $(ALL_HEADERS) priv/guest_amd64_toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_amd64_toIR.o \
+ -c priv/guest_amd64_toIR.c
+
+priv/guest_arm_helpers.o: $(ALL_HEADERS) priv/guest_arm_helpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_arm_helpers.o \
+ -c priv/guest_arm_helpers.c
+
+priv/guest_arm_toIR.o: $(ALL_HEADERS) priv/guest_arm_toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_arm_toIR.o \
+ -c priv/guest_arm_toIR.c
+
+priv/guest_ppc_helpers.o: $(ALL_HEADERS) priv/guest_ppc_helpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_ppc_helpers.o \
+ -c priv/guest_ppc_helpers.c
+
+priv/guest_s390_helpers.o: $(ALL_HEADERS) priv/guest_s390_helpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_s390_helpers.o \
+ -c priv/guest_s390_helpers.c
+
+priv/guest_ppc_toIR.o: $(ALL_HEADERS) priv/guest_ppc_toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_ppc_toIR.o \
+ -c priv/guest_ppc_toIR.c
+
+priv/guest_s390_toIR.o: $(ALL_HEADERS) priv/guest_s390_toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_s390_toIR.o \
+ -c priv/guest_s390_toIR.c
+
+priv/host_s390_disasm.o: $(ALL_HEADERS) priv/host_s390_disasm.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host_s390_disasm.o \
+ -c priv/host_s390_disasm.c
+
+priv/guest_mips_helpers.o: $(ALL_HEADERS) priv/guest_mips_helpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_mips_helpers.o \
+ -c priv/guest_mips_helpers.c
+
+priv/guest_mips_toIR.o: $(ALL_HEADERS) priv/guest_mips_toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest_mips_toIR.o \
+ -c priv/guest_mips_toIR.c
Added: branches/VEX_3_8_BRANCH_BGQ/Makefile-icc
==============================================================================
--- branches/VEX_3_8_BRANCH_BGQ/Makefile-icc (added)
+++ branches/VEX_3_8_BRANCH_BGQ/Makefile-icc Fri Jun 6 09:30:13 2014
@@ -0,0 +1,261 @@
+
+PUB_HEADERS = pub/libvex_basictypes.h \
+ pub/libvex_ir.h \
+ pub/libvex.h \
+ pub/libvex_trc_values.h \
+ pub/libvex_emwarn.h \
+ pub/libvex_guest_x86.h \
+ pub/libvex_guest_amd64.h \
+ pub/libvex_guest_arm.h \
+ pub/libvex_guest_ppc32.h \
+ pub/libvex_guest_ppc64.h \
+ pub/libvex_guest_mips.h \
+ pub/libvex_guest_offsets.h
+
+PRIV_HEADERS = priv/host-x86/hdefs.h \
+ priv/host-amd64/hdefs.h \
+ priv/host-arm/hdefs.h \
+ priv/host-ppc/hdefs.h \
+ priv/host-mips/hdefs.h \
+ priv/host-generic/h_generic_regs.h \
+ priv/host-generic/h_generic_simd64.h \
+ priv/main/vex_globals.h \
+ priv/main/vex_util.h \
+ priv/guest-generic/g_generic_x87.h \
+ priv/guest-generic/bb_to_IR.h \
+ priv/guest-x86/gdefs.h \
+ priv/guest-amd64/gdefs.h \
+ priv/guest-arm/gdefs.h \
+ priv/guest-ppc/gdefs.h \
+ priv/guest-mips/gdefs.h \
+ priv/ir/irmatch.h \
+ priv/ir/iropt.h
+
+LIB_OBJS = priv/ir/irdefs.o \
+ priv/ir/irmatch.o \
+ priv/ir/iropt.o \
+ priv/main/vex_main.o \
+ priv/main/vex_globals.o \
+ priv/main/vex_util.o \
+ priv/host-x86/hdefs.o \
+ priv/host-amd64/hdefs.o \
+ priv/host-arm/hdefs.o \
+ priv/host-ppc/hdefs.o \
+ priv/host-x86/isel.o \
+ priv/host-amd64/isel.o \
+ priv/host-arm/isel.o \
+ priv/host-ppc/isel.o \
+ priv/host-mips/isel.o \
+ priv/host-generic/h_generic_regs.o \
+ priv/host-generic/h_generic_simd64.o \
+ priv/host-generic/reg_alloc2.o \
+ priv/guest-generic/g_generic_x87.o \
+ priv/guest-generic/bb_to_IR.o \
+ priv/guest-x86/ghelpers.o \
+ priv/guest-amd64/ghelpers.o \
+ priv/guest-arm/ghelpers.o \
+ priv/guest-ppc/ghelpers.o \
+ priv/guest-mips/ghelpers.o \
+ priv/guest-x86/toIR.o \
+ priv/guest-amd64/toIR.o \
+ priv/guest-arm/toIR.o \
+ priv/guest-ppc/toIR.o \
+ priv/guest-mips/toIR.o
+
+PUB_INCLUDES = -Ipub
+
+# Do not add any priv/host-ARCH or priv/guest-ARCH directories to this
+# list, as they contain duplicate file names (each host has a hdefs.h,
+# for example).
+PRIV_INCLUDES = -Ipriv
+
+
+#CC = gcc
+#CCFLAGS = -g -O -Wall -Wmissing-prototypes -Wshadow -Winline \
+# -Wpointer-arith -Wbad-function-cast -Wcast-qual \
+# -Wcast-align -Wmissing-declarations \
+# $(EXTRA_CFLAGS)
+
+CC = icc
+CCFLAGS = -g -Wall -wd981 -wd279 -wd1287 -wd869 -wd111 -wd188 -wd186 -wd810
+# 981: operands are evaluated in unspecified order
+# 279: controlling expression is constant
+# 1287: invalid attribute for parameter
+# 869: parameter "..." was never referenced
+# 111: statement is unreachable
+# 188: enumerated type mixed with another type
+# (the above are for icc 8.0 -- 8.0.0.55 I think)
+# 186: pointless comparison of unsigned integer with zero
+# 810: conversion from ... to ... may lose significant bits
+
+all: vex
+
+scratch: clean version all
+
+vex: libvex.a test_main.o
+ $(CC) $(CCFLAGS) -o vex test_main.o libvex.a
+
+libvex.a: $(LIB_OBJS)
+ rm -f libvex.a
+ ar clq libvex.a $(LIB_OBJS)
+
+clean:
+ rm -f $(LIB_OBJS) libvex.a vex test_main.o \
+ priv/main/vex_svnversion.h \
+ pub/libvex_guest_offsets.h
+
+version:
+ rm -f priv/main/vex_svnversion.h
+ echo -n "\"" > priv/main/vex_svnversion.h
+ svnversion -n . >> priv/main/vex_svnversion.h
+ echo "\"" >> priv/main/vex_svnversion.h
+
+minidist: version
+ rm -f vex--minidist-2005MMDD.tar
+ tar cf vex--minidist-2005MMDD.tar $(PUB_HEADERS) $(PRIV_HEADERS) \
+ priv/main/vex_svnversion.h \
+ test_main.c test_main.h \
+ Makefile \
+ `echo $(LIB_OBJS) | sed "s/\.o/\.c/g"`
+ @echo
+ @echo minidist done, size and svnversion follow:
+ @ls -l vex--minidist-2005MMDD.tar
+ @cat priv/main/vex_svnversion.h
+ @echo
+
+pub/libvex_guest_offsets.h:
+ gcc -Wall -g -o auxprogs/genoffsets auxprogs/genoffsets.c
+ ./auxprogs/genoffsets > pub/libvex_guest_offsets.h
+
+
+ALL_HEADERS = $(PUB_HEADERS) $(PRIV_HEADERS)
+ALL_INCLUDES = $(PUB_INCLUDES) $(PRIV_INCLUDES)
+
+test_main.o: $(PUB_HEADERS) test_main.c test_main.h
+ $(CC) $(CCFLAGS) $(PUB_INCLUDES) -o test_main.o \
+ -c test_main.c
+
+priv/ir/irdefs.o: $(ALL_HEADERS) priv/ir/irdefs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/ir/irdefs.o \
+ -c priv/ir/irdefs.c
+
+priv/ir/irmatch.o: $(ALL_HEADERS) priv/ir/irmatch.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/ir/irmatch.o \
+ -c priv/ir/irmatch.c
+
+priv/ir/iropt.o: $(ALL_HEADERS) priv/ir/iropt.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/ir/iropt.o \
+ -c priv/ir/iropt.c
+
+priv/main/vex_main.o: $(ALL_HEADERS) priv/main/vex_main.c \
+ priv/main/vex_svnversion.h
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/main/vex_main.o \
+ -c priv/main/vex_main.c
+
+priv/main/vex_globals.o: $(ALL_HEADERS) priv/main/vex_globals.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/main/vex_globals.o \
+ -c priv/main/vex_globals.c
+
+priv/main/vex_util.o: $(ALL_HEADERS) priv/main/vex_util.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/main/vex_util.o \
+ -c priv/main/vex_util.c
+
+priv/host-x86/hdefs.o: $(ALL_HEADERS) priv/host-x86/hdefs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-x86/hdefs.o \
+ -c priv/host-x86/hdefs.c
+
+priv/host-amd64/hdefs.o: $(ALL_HEADERS) priv/host-amd64/hdefs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-amd64/hdefs.o \
+ -c priv/host-amd64/hdefs.c
+
+priv/host-arm/hdefs.o: $(ALL_HEADERS) priv/host-arm/hdefs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-arm/hdefs.o \
+ -c priv/host-arm/hdefs.c
+
+priv/host-ppc/hdefs.o: $(ALL_HEADERS) priv/host-ppc/hdefs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-ppc/hdefs.o \
+ -c priv/host-ppc/hdefs.c
+
+priv/host-mips/hdefs.o: $(ALL_HEADERS) priv/host-mips/hdefs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-mips/hdefs.o \
+ -c priv/host-mips/hdefs.c
+
+priv/host-x86/isel.o: $(ALL_HEADERS) priv/host-x86/isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-x86/isel.o \
+ -c priv/host-x86/isel.c
+
+priv/host-amd64/isel.o: $(ALL_HEADERS) priv/host-amd64/isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-amd64/isel.o \
+ -c priv/host-amd64/isel.c
+
+priv/host-arm/isel.o: $(ALL_HEADERS) priv/host-arm/isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-arm/isel.o \
+ -c priv/host-arm/isel.c
+
+priv/host-ppc/isel.o: $(ALL_HEADERS) priv/host-ppc/isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-ppc/isel.o \
+ -c priv/host-ppc/isel.c
+
+priv/host-mips/isel.o: $(ALL_HEADERS) priv/host-mips/isel.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-mips/isel.o \
+ -c priv/host-mips/isel.c
+
+priv/host-generic/h_generic_regs.o: $(ALL_HEADERS) priv/host-generic/h_generic_regs.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-generic/h_generic_regs.o \
+ -c priv/host-generic/h_generic_regs.c
+
+priv/host-generic/h_generic_simd64.o: $(ALL_HEADERS) priv/host-generic/h_generic_simd64.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-generic/h_generic_simd64.o \
+ -c priv/host-generic/h_generic_simd64.c
+
+priv/host-generic/reg_alloc2.o: $(ALL_HEADERS) priv/host-generic/reg_alloc2.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/host-generic/reg_alloc2.o \
+ -c priv/host-generic/reg_alloc2.c
+
+priv/guest-x86/toIR.o: $(ALL_HEADERS) priv/guest-x86/toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-x86/toIR.o \
+ -c priv/guest-x86/toIR.c
+
+priv/guest-generic/g_generic_x87.o: $(ALL_HEADERS) priv/guest-generic/g_generic_x87.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-generic/g_generic_x87.o \
+ -c priv/guest-generic/g_generic_x87.c
+
+priv/guest-generic/bb_to_IR.o: $(ALL_HEADERS) priv/guest-generic/bb_to_IR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-generic/bb_to_IR.o \
+ -c priv/guest-generic/bb_to_IR.c
+
+priv/guest-x86/ghelpers.o: $(ALL_HEADERS) priv/guest-x86/ghelpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-x86/ghelpers.o \
+ -c priv/guest-x86/ghelpers.c
+
+priv/guest-amd64/ghelpers.o: $(ALL_HEADERS) priv/guest-amd64/ghelpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-amd64/ghelpers.o \
+ -c priv/guest-amd64/ghelpers.c
+
+priv/guest-amd64/toIR.o: $(ALL_HEADERS) priv/guest-amd64/toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-amd64/toIR.o \
+ -c priv/guest-amd64/toIR.c
+
+priv/guest-arm/ghelpers.o: $(ALL_HEADERS) priv/guest-arm/ghelpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-arm/ghelpers.o \
+ -c priv/guest-arm/ghelpers.c
+
+priv/guest-arm/toIR.o: $(ALL_HEADERS) priv/guest-arm/toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-arm/toIR.o \
+ -c priv/guest-arm/toIR.c
+
+priv/guest-ppc/ghelpers.o: $(ALL_HEADERS) priv/guest-ppc/ghelpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-ppc/ghelpers.o \
+ -c priv/guest-ppc/ghelpers.c
+
+priv/guest-ppc/toIR.o: $(ALL_HEADERS) priv/guest-ppc/toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-ppc/toIR.o \
+ -c priv/guest-ppc/toIR.c
+
+priv/guest-mips/ghelpers.o: $(ALL_HEADERS) priv/guest-mips/ghelpers.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-mips/ghelpers.o \
+ -c priv/guest-mips/ghelpers.c
+
+priv/guest-mips/toIR.o: $(ALL_HEADERS) priv/guest-mips/toIR.c
+ $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/guest-mips/toIR.o \
+ -c priv/guest-mips/toIR.c
Added: branches/VEX_3_8_BRANCH_BGQ/TODO.txt
==============================================================================
--- branches/VEX_3_8_BRANCH_BGQ/TODO.txt (added)
+++ branches/VEX_3_8_BRANCH_BGQ/TODO.txt Fri Jun 6 09:30:13 2014
@@ -0,0 +1,55 @@
+
+Last updated 15 Nov 04
+~~~~~~~~~~~~~~~~~~~~~~
+
+Critical (correctness)
+~~~~~~~~~~~~~~~~~~~~~~
+x86 isel: should free up all fp reg tags when calling a helper.
+And save FP and SSE insns across the helper.
+
+iropt: reconsider precise exceptions
+
+x86 guest: look at FP accuracy
+
+
+Optimisation opportunities
+~~~~~~~~~~~~~~~~~~~~~~~~~~
+Improved isel for memcheck artefacts on x86 (generate neg ; sbbl)
+
+Assess tt_fast miss rates
+
+improve stack-update pass
+
+proper profiling machinery
+
+do not CSE exprs :: Ity_Bit
+
+x86 iselIntExpr_RMI: actually generate the M case if possible
+
+
+JIT speedups
+~~~~~~~~~~~~
+Ensure incremental flatness throughout
+
+Profile again with cachegrind/calltree
+
+change IRTemp to 16 bits?
+
+
+Integration
+~~~~~~~~~~~
+Get rid of sloppy-malloc
+
+Get rid of partial-loads-ok
+
+Optimisation after first instrumentation rather than 2nd ?
+
+disallow dirty helpers from writing SP/IP
+
+write API doc, clarify IR semantics
+
+make IR utils module
+
+generic stack pointer identification at startup?
+
+New memstack_k: old or new sp?
Added: branches/VEX_3_8_BRANCH_BGQ/auxprogs/genoffsets.c
==============================================================================
--- branches/VEX_3_8_BRANCH_BGQ/auxprogs/genoffsets.c (added)
+++ branches/VEX_3_8_BRANCH_BGQ/auxprogs/genoffsets.c Fri Jun 6 09:30:13 2014
@@ -0,0 +1,218 @@
+
+/*--------------------------------------------------------------------*/
+/*--- begin genoffsets.c ---*/
+/*--------------------------------------------------------------------*/
+
+/*
+ This file is part of Valgrind, a dynamic binary instrumentation
+ framework.
+
+ Copyright (C) 2004-2012 OpenWorks LLP
+ in...@op...
+
+ 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 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+ The GNU General Public License is contained in the file COPYING.
+
+ Neither the names of the U.S. Department of Energy nor the
+ University of California nor the names of its contributors may be
+ used to endorse or promote products derived from this software
+ without prior written permission.
+*/
+
+#include <stdio.h>
+
+/* A program which, when compiled to assembly, exposes various guest
+ state offsets. The program isn't executed, since that breaks
+ cross-compilation.
+
+ It does rely on the assumption that 'my_offsetof(Ty,Field)' is
+ folded to a constant at a compile time, which seems a bit dodgy
+ to me. On gcc4 it is possible to use __builtin_offsetof, which
+ sounds safer, but that doesn't exist on older gccs. Oh Well.
+*/
+
+#include "../pub/libvex_basictypes.h"
+#include "../pub/libvex_guest_x86.h"
+#include "../pub/libvex_guest_amd64.h"
+#include "../pub/libvex_guest_ppc32.h"
+#include "../pub/libvex_guest_ppc64.h"
+#include "../pub/libvex_guest_arm.h"
+#include "../pub/libvex_guest_s390x.h"
+#include "../pub/libvex_guest_mips32.h"
+
+#define VG_STRINGIFZ(__str) #__str
+#define VG_STRINGIFY(__str) VG_STRINGIFZ(__str)
+
+#define my_offsetof(__type,__field) (&((__type*)0)->__field)
+
+/* This forces gcc to evaluate the my_offsetof call at compile time,
+ and then emits it in the assembly, along with the nonsense string
+ "xyzzy", for easy greppability. Once this file is compiled to
+ assembly, the lines containing "xyzzy" are grepped out and sed-ed
+ to produce the final result. See the Makefile rule for
+ pub/libvex_guest_offsets.h. */
+#define GENOFFSET(_structUppercase,_structLowercase,_fieldname) \
+ __asm__ __volatile__ ( \
+ "\n#define OFFSET_" \
+ VG_STRINGIFY(_structLowercase) "_" \
+ VG_STRINGIFY(_fieldname) \
+ " xyzzy%0\n" : /*out*/ \
+ : /*in*/ "n" \
+ (my_offsetof(VexGuest##_structUppercase##State, \
+ guest_##_fieldname)) \
+ )
+
+void foo ( void );
+__attribute__((noinline))
+void foo ( void )
+{
+ // x86
+ GENOFFSET(X86,x86,EAX);
+ GENOFFSET(X86,x86,EBX);
+ GENOFFSET(X86,x86,ECX);
+ GENOFFSET(X86,x86,EDX);
+ GENOFFSET(X86,x86,ESI);
+ GENOFFSET(X86,x86,EDI);
+ GENOFFSET(X86,x86,EBP);
+ GENOFFSET(X86,x86,ESP);
+ GENOFFSET(X86,x86,EIP);
+ GENOFFSET(X86,x86,CS);
+ GENOFFSET(X86,x86,DS);
+ GENOFFSET(X86,x86,ES);
+ GENOFFSET(X86,x86,FS);
+ GENOFFSET(X86,x86,GS);
+ GENOFFSET(X86,x86,SS);
+
+ // amd64
+ GENOFFSET(AMD64,amd64,RAX);
+ GENOFFSET(AMD64,amd64,RBX);
+ GENOFFSET(AMD64,amd64,RCX);
+ GENOFFSET(AMD64,amd64,RDX);
+ GENOFFSET(AMD64,amd64,RSI);
+ GENOFFSET(AMD64,amd64,RDI);
+ GENOFFSET(AMD64,amd64,RSP);
+ GENOFFSET(AMD64,amd64,RBP);
+ GENOFFSET(AMD64,amd64,R8);
+ GENOFFSET(AMD64,amd64,R9);
+ GENOFFSET(AMD64,amd64,R10);
+ GENOFFSET(AMD64,amd64,R11);
+ GENOFFSET(AMD64,amd64,R12);
+ GENOFFSET(AMD64,amd64,R13);
+ GENOFFSET(AMD64,amd64,R14);
+ GENOFFSET(AMD64,amd64,R15);
+ GENOFFSET(AMD64,amd64,RIP);
+
+ // ppc32
+ GENOFFSET(PPC32,ppc32,GPR0);
+ GENOFFSET(PPC32,ppc32,GPR1);
+ GENOFFSET(PPC32,ppc32,GPR2);
+ GENOFFSET(PPC32,ppc32,GPR3);
+ GENOFFSET(PPC32,ppc32,GPR4);
+ GENOFFSET(PPC32,ppc32,GPR5);
+ GENOFFSET(PPC32,ppc32,GPR6);
+ GENOFFSET(PPC32,ppc32,GPR7);
+ GENOFFSET(PPC32,ppc32,GPR8);
+ GENOFFSET(PPC32,ppc32,GPR9);
+ GENOFFSET(PPC32,ppc32,GPR10);
+ GENOFFSET(PPC32,ppc32,CIA);
+ GENOFFSET(PPC32,ppc32,CR0_0);
+
+ // ppc64
+ GENOFFSET(PPC64,ppc64,GPR0);
+ GENOFFSET(PPC64,ppc64,GPR1);
+ GENOFFSET(PPC64,ppc64,GPR2);
+ GENOFFSET(PPC64,ppc64,GPR3);
+ GENOFFSET(PPC64,ppc64,GPR4);
+ GENOFFSET(PPC64,ppc64,GPR5);
+ GENOFFSET(PPC64,ppc64,GPR6);
+ GENOFFSET(PPC64,ppc64,GPR7);
+ GENOFFSET(PPC64,ppc64,GPR8);
+ GENOFFSET(PPC64,ppc64,GPR9);
+ GENOFFSET(PPC64,ppc64,GPR10);
+ GENOFFSET(PPC64,ppc64,CIA);
+ GENOFFSET(PPC64,ppc64,CR0_0);
+
+ // arm
+ GENOFFSET(ARM,arm,R0);
+ GENOFFSET(ARM,arm,R1);
+ GENOFFSET(ARM,arm,R2);
+ GENOFFSET(ARM,arm,R3);
+ GENOFFSET(ARM,arm,R4);
+ GENOFFSET(ARM,arm,R5);
+ GENOFFSET(ARM,arm,R7);
+ GENOFFSET(ARM,arm,R13);
+ GENOFFSET(ARM,arm,R14);
+ GENOFFSET(ARM,arm,R15T);
+
+ // s390x
+ GENOFFSET(S390X,s390x,r2);
+ GENOFFSET(S390X,s390x,r3);
+ GENOFFSET(S390X,s390x,r4);
+ GENOFFSET(S390X,s390x,r5);
+ GENOFFSET(S390X,s390x,r6);
+ GENOFFSET(S390X,s390x,r7);
+ GENOFFSET(S390X,s390x,r15);
+ GENOFFSET(S390X,s390x,IA);
+ GENOFFSET(S390X,s390x,SYSNO);
+ GENOFFSET(S390X,s390x,IP_AT_SYSCALL);
+ GENOFFSET(S390X,s390x,fpc);
+ GENOFFSET(S390X,s390x,CC_OP);
+ GENOFFSET(S390X,s390x,CC_DEP1);
+ GENOFFSET(S390X,s390x,CC_DEP2);
+ GENOFFSET(S390X,s390x,CC_NDEP);
+
+ // MIPS32
+ GENOFFSET(MIPS32,mips32,r0);
+ GENOFFSET(MIPS32,mips32,r1);
+ GENOFFSET(MIPS32,mips32,r2);
+ GENOFFSET(MIPS32,mips32,r3);
+ GENOFFSET(MIPS32,mips32,r4);
+ GENOFFSET(MIPS32,mips32,r5);
+ GENOFFSET(MIPS32,mips32,r6);
+ GENOFFSET(MIPS32,mips32,r7);
+ GENOFFSET(MIPS32,mips32,r8);
+ GENOFFSET(MIPS32,mips32,r9);
+ GENOFFSET(MIPS32,mips32,r10);
+ GENOFFSET(MIPS32,mips32,r11);
+ GENOFFSET(MIPS32,mips32,r12);
+ GENOFFSET(MIPS32,mips32,r13);
+ GENOFFSET(MIPS32,mips32,r14);
+ GENOFFSET(MIPS32,mips32,r15);
+ GENOFFSET(MIPS32,mips32,r15);
+ GENOFFSET(MIPS32,mips32,r17);
+ GENOFFSET(MIPS32,mips32,r18);
+ GENOFFSET(MIPS32,mips32,r19);
+ GENOFFSET(MIPS32,mips32,r20);
+ GENOFFSET(MIPS32,mips32,r21);
+ GENOFFSET(MIPS32,mips32,r22);
+ GENOFFSET(MIPS32,mips32,r23);
+ GENOFFSET(MIPS32,mips32,r24);
+ GENOFFSET(MIPS32,mips32,r25);
+ GENOFFSET(MIPS32,mips32,r26);
+ GENOFFSET(MIPS32,mips32,r27);
+ GENOFFSET(MIPS32,mips32,r28);
+ GENOFFSET(MIPS32,mips32,r29);
+ GENOFFSET(MIPS32,mips32,r30);
+ GENOFFSET(MIPS32,mips32,r31);
+ GENOFFSET(MIPS32,mips32,PC);
+ GENOFFSET(MIPS32,mips32,HI);
+ GENOFFSET(MIPS32,mips32,LO);
+}
+
+/*--------------------------------------------------------------------*/
+/*--- end genoffsets.c ---*/
+/*--------------------------------------------------------------------*/
Added: branches/VEX_3_8_BRANCH_BGQ/nanoarm.orig
==============================================================================
--- branches/VEX_3_8_BRANCH_BGQ/nanoarm.orig (added)
+++ branches/VEX_3_8_BRANCH_BGQ/nanoarm.orig Fri Jun 6 09:30:13 2014
@@ -0,0 +1,19 @@
+ 0: e1a0c00d mov ip, sp
+. 0 00008000 4
+. 0d c0 a0 e1
+
+ ...
[truncated message content] |