commit | 974cbd9cc5f47c572f135945a74e13c3a88c740d | [log] [tgz] |
---|---|---|
author | Scott Wakeling <scott.wakeling@linaro.org> | Fri Jan 27 15:16:45 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri Jan 27 15:16:45 2017 +0000 |
tree | 3e3e9e6ab9830012ffe92b9e71edeea476a6d576 | |
parent | 7bdec85d2027032533d6fd9e55827cb9cb738b87 [diff] | |
parent | 1340a67e99f4a164656b77fff164496c8bb48ef8 [diff] |
Merge remote-tracking branch 'aosp/upstream-master' into master am: d66a6515d5 am: 1eb82cc7c1 am: 1340a67e99 Change-Id: I6fcb2aa04c5118c7bdc70c5e2332c8738137f873
Contents:
VIXL contains three components.
The VIXL git repository can be found on 'https://git.linaro.org'.
Changes from previous versions of VIXL can be found in the Changelog.
This software is covered by the licence described in the LICENCE file.
To build VIXL the following software is required:
A 64-bit host machine is required, implementing an LP64 data model. VIXL has been tested using GCC on AArch64 Debian, GCC and Clang on amd64 Ubuntu systems.
To run the linter and code formatting stages of the tests, the following software is also required:
cpplint.py
Refer to the 'Usage' section for details.
VIXL was developed for JavaScript engines so a number of features from A64 were deemed unnecessary:
The VIXL simulator supports only those instructions that the VIXL assembler can generate. The doc
directory contains a list of supported A64 instructions.
The VIXL simulator was developed to run on 64-bit amd64 platforms. Whilst it builds and mostly works for 32-bit x86 platforms, there are a number of floating-point operations which do not work correctly, and a number of tests fail as a result.
VIXL may not build using Clang 3.7, due to a compiler warning. A workaround is to disable conversion of warnings to errors, or to delete the offending return
statement reported and rebuild. This problem will be fixed in the next release.
Your project's build system must define VIXL_DEBUG
(eg. -DVIXL_DEBUG
) when using a VIXL library that has been built with debug enabled.
Some classes defined in VIXL header files contain fields that are only present in debug builds, so if VIXL_DEBUG
is defined when the library is built, but not defined for the header files included in your project, you will see runtime failures.
All exclusive-access instructions are supported, but the simulator cannot accurately simulate their behaviour as described in the ARMv8 Architecture Reference Manual.
__sync_synchronize()
is used for this purpose.The simulator tries to be strict, and implements the following restrictions that the ARMv8 ARM allows:
Instructions affected by these limitations: stxrb
, stxrh
, stxr
, ldxrb
, ldxrh
, ldxr
, stxp
, ldxp
, stlxrb
, stlxrh
, stlxr
, ldaxrb
, ldaxrh
, ldaxr
, stlxp
, ldaxp
, stlrb
, stlrh
, stlr
, ldarb
, ldarh
, ldar
, clrex
.
The helper script tools/test.py
will build and run every test that is provided with VIXL, in both release and debug mode. It is a useful script for verifying that all of VIXL's dependencies are in place and that VIXL is working as it should.
By default, the tools/test.py
script runs a linter to check that the source code conforms with the code style guide, and to detect several common errors that the compiler may not warn about. This is most useful for VIXL developers. The linter has the following dependencies:
git clone
.cpplint.py
, as provided by Google, must be available (and executable) on the PATH
.It is possible to tell tools/test.py
to skip the linter stage by passing --nolint
. This removes the dependency on cpplint.py
and Git. The --nolint
option is implied if the VIXL project is a snapshot (with no .git
directory).
Additionally, tools/test.py
tests code formatting using clang-format-3.6
. If you don't have clang-format-3.6
, disable the test using the --noclang-format
option.
Also note that the tests for the tracing features depend upon external diff
and sed
tools. If these tools are not available in PATH
, these tests will fail.
We have separate guides for introducing VIXL, depending on what architecture you are targeting. A guide for working with AArch32 can be found here, while the AArch64 guide is here. Example source code is provided in the examples directory. You can build examples with either scons aarch32_examples
or scons aarch64_examples
from the root directory, or use scons --help
to get a detailed list of available build targets.