Age | Commit message (Collapse) | Author |
|
This allows us to drop dependency on NASM and build the test image
with GCC only. Adds support for x86_64, too.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Jan Bobek <jan.bobek@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
At least GCC defines the symbol "i386" to 1 to signal the target
platform. We need to use "i386" as an undefined symbol in order to
correctly include risu_reginfo_i386.h from risu.h. Add an -U option to
the build command to make sure the symbol remains undefined.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Jan Bobek <jan.bobek@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
Otherwise changes to reginfo don't cause the whole thing to be
re-built causing much confusion when bisecting.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180622141205.16306-7-alex.bennee@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
This can cause much confusion when you have been building in your
source tree. I've added a distclean so we don't unexpectedly drop the
config for normal make clean invocations.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180622141205.16306-5-alex.bennee@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
This uses the magic of zlib's gzread/write interface to wrap the
tracefile in compression. The code changes are tiny. I spent more time
messing about with the configure/linker stuff to auto-detect bits.
As you need decent multi-arch support or a correctly setup cross
toolchain we fall back if we can't compile with zlib. This
unfortunately needs some #ifdef hackery around the zlib bits in
risu.c.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20170621154244.28309-9-alex.bennee@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
send_register_info() is now essentially the same code for all
target CPUs, so move it into reginfo.c rather than having
duplicated code.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
For x86 the ucontext.h only provides the #defines for register indexes
if _GNU_SOURCE is enabled; enable it.
As part of this, split our CFLAGS into:
* CFLAGS: can be set by the user, defaults to -g
* EXTRA_CFLAGS: set by the user, additional to CFLAGS
* ALL_CFLAGS: the above, plus flags we must have in order
to build correctly (or otherwise don't want the user to disable)
Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
|
|
Add support for building outside the source tree, by running configure
from the build directory:
mkdir build
cd build
../configure
make
Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
|
|
This will dump any risu.bin files to the risu.asm files which are so
useful for working through stuff. Of course you can run an individual
make target by running:
make simd_copy.risu.asm
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
|
|
It is possible to build statically with some limitations on the use of
gethostbyname().
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
|
|
Useful for sysroot situations.
Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
|
|
Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
|
|
put the struct reginfo and its methods in a separate module.
This also addresses the problem with the memcmp
being used directly on the struct without the memset 0.
Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
|
|
adjust some types to be able to compile successfully on 64 bit.
To make it cleanly, add a configure step to check for the
appropriate types to use.
Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
|
|
Add the COPYING file and per-source-file boilerplate text to
place risu ender the Eclipse Public License.
|
|
one for the architecture.
|
|
image.
|
|
|
|
|
|
|