]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
7 years agoMerge VEX_3_13_BRANCH into VALGRIND_3_13_BRANCH svn/VALGRIND_3_13_BRANCH svn/VALGRIND_3_13_0
Ivo Raisr [Mon, 14 Aug 2017 10:26:29 +0000 (12:26 +0200)] 
Merge VEX_3_13_BRANCH into VALGRIND_3_13_BRANCH

8 years ago-> 3.13.0 final
Julian Seward [Thu, 15 Jun 2017 13:41:22 +0000 (13:41 +0000)] 
-> 3.13.0 final

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16446

8 years ago-> 3.13.0.RC2
Julian Seward [Fri, 9 Jun 2017 13:53:25 +0000 (13:53 +0000)] 
-> 3.13.0.RC2

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16443

8 years agoMerge from trunk, r16438:
Julian Seward [Fri, 9 Jun 2017 13:35:11 +0000 (13:35 +0000)] 
Merge from trunk, r16438:
  fix: Bug 380202 - Assertion failure for cache line size [..]

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16442

8 years agoMerge from trunk, r16437:
Julian Seward [Fri, 9 Jun 2017 13:33:37 +0000 (13:33 +0000)] 
Merge from trunk, r16437:
  Fix pub_tool_basics.h build issue with g++ 4.4.7.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16441

8 years agoMerge from trunk, r16436:
Julian Seward [Fri, 9 Jun 2017 13:31:00 +0000 (13:31 +0000)] 
Merge from trunk, r16436:
  Add a replacement for __GI_strcspn() required on s390x/Linux.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16440

8 years agoMerge from trunk, r16435:
Julian Seward [Fri, 9 Jun 2017 13:27:34 +0000 (13:27 +0000)] 
Merge from trunk, r16435:
  Fix 380200 - xtree generated callgrind files [..]

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16439

8 years ago-> 3.13.0.RC1 (this time with the correct version number)
Julian Seward [Fri, 2 Jun 2017 11:44:06 +0000 (11:44 +0000)] 
-> 3.13.0.RC1 (this time with the correct version number)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16434

8 years ago-> 3.13.0.RC1
Julian Seward [Thu, 1 Jun 2017 15:54:54 +0000 (15:54 +0000)] 
-> 3.13.0.RC1

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16433

8 years agoMerge from trunk:
Julian Seward [Thu, 1 Jun 2017 15:47:14 +0000 (15:47 +0000)] 
Merge from trunk:
  r16430 (Finalise for 3.13)
  r16431 (Update version numbers for 3.13.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16432

8 years agoMerge from trunk, r16428:
Julian Seward [Thu, 1 Jun 2017 05:49:50 +0000 (05:49 +0000)] 
Merge from trunk, r16428:
  Back out r16414 (Enable fair scheduling by default on Linux.)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16429

8 years agoMerge, from trunk, revs:
Julian Seward [Wed, 31 May 2017 16:07:27 +0000 (16:07 +0000)] 
Merge, from trunk, revs:
  16421 Split test cases from none/tests/amd64/cet_nops into three different files
  16422 Connect cet_nops test cases with other OSes
  16423 Connect also 32-bit cet_nops tests.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16427

8 years agoBack out r16425, since that was merged in the wrong order. It is:
Julian Seward [Wed, 31 May 2017 15:56:49 +0000 (15:56 +0000)] 
Back out r16425, since that was merged in the wrong order.  It is:
  Merge from trunk, r16422 (Connect cet_nops test cases with other OSes)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16426

8 years agoMerge from trunk, r16422 (Connect cet_nops test cases with other OSes)
Julian Seward [Wed, 31 May 2017 14:53:06 +0000 (14:53 +0000)] 
Merge from trunk, r16422 (Connect cet_nops test cases with other OSes)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16425

8 years agoMerge, from trunk, r3385 (Handle x86 CET prefixes (32 bit only)).
Julian Seward [Wed, 31 May 2017 14:47:53 +0000 (14:47 +0000)] 
Merge, from trunk, r3385 (Handle x86 CET prefixes (32 bit only)).

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_13_BRANCH@3386

8 years agoConnect also 32-bit cet_nops tests.
Ivo Raisr [Wed, 31 May 2017 12:36:26 +0000 (12:36 +0000)] 
Connect also 32-bit cet_nops tests.
Pertains to BZ#379525.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16423

8 years agoConnect cet_nops test cases with other OSes:
Ivo Raisr [Wed, 31 May 2017 11:22:06 +0000 (11:22 +0000)] 
Connect cet_nops test cases with other OSes:
- with fs prefix for Solaris
- with gs prefix for OS X (Darwin)
Pertains to BZ#379525.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16422

8 years agoSplit test cases from none/tests/amd64/cet_nops
Ivo Raisr [Wed, 31 May 2017 06:19:50 +0000 (06:19 +0000)] 
Split test cases from none/tests/amd64/cet_nops
into three different files with regards to using
fs prefix, gs prefix or no fs/gs prefix.
Pertains to BZ#379525.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16421

8 years agoHandle x86 CET prefixes (32 bit only). Pertains to #379525.
Julian Seward [Tue, 30 May 2017 13:17:23 +0000 (13:17 +0000)] 
Handle x86 CET prefixes (32 bit only).  Pertains to #379525.
Patch from tatyana.a.mineeva@intel.com.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3385

8 years agoSwizzle external.
Julian Seward [Wed, 24 May 2017 16:11:28 +0000 (16:11 +0000)] 
Swizzle external.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16420

8 years agoCreate branches/VALGRIND_3_13_BRANCH as a copy of trunk r16418.
Julian Seward [Wed, 24 May 2017 16:10:30 +0000 (16:10 +0000)] 
Create branches/VALGRIND_3_13_BRANCH as a copy of trunk r16418.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_13_BRANCH@16419

8 years agoCreate branches/VEX_3_13_BRANCH as a copy of trunk r3383.
Julian Seward [Wed, 24 May 2017 16:09:03 +0000 (16:09 +0000)] 
Create branches/VEX_3_13_BRANCH as a copy of trunk r3383.

git-svn-id: svn://svn.valgrind.org/vex/branches/VEX_3_13_BRANCH@3384

8 years agoForce removal of include/vgversion.h.tmp in make_or_upd_vgversion_h.
Mark Wielaard [Wed, 24 May 2017 15:59:53 +0000 (15:59 +0000)] 
Force removal of include/vgversion.h.tmp in make_or_upd_vgversion_h.

When someone created a read only src dir and builds in a separate build
dir then the original read only vgversion.h is copied from the src dir
into the build dir as vgversion.h.tmp (also read only). It could then
not be removed again in the auxprogs/make_or_upd_vgversion_h script.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16418

8 years agoFinal update before creating the 3_13 branch.
Julian Seward [Wed, 24 May 2017 15:25:27 +0000 (15:25 +0000)] 
Final update before creating the 3_13 branch.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16417

8 years agoUpdate doc building notes for Fedora 25.
Julian Seward [Wed, 24 May 2017 15:24:16 +0000 (15:24 +0000)] 
Update doc building notes for Fedora 25.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16416

8 years agoAdd test cases for x86 CET nops. Pertains to #379525.
Julian Seward [Wed, 24 May 2017 14:29:41 +0000 (14:29 +0000)] 
Add test cases for x86 CET nops.  Pertains to #379525.
Test case from tatyana.a.mineeva@intel.com.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16415

8 years agoHandle x86 CET prefixes (64 bit only). Fixes #379525.
Julian Seward [Wed, 24 May 2017 14:28:25 +0000 (14:28 +0000)] 
Handle x86 CET prefixes (64 bit only).  Fixes #379525.
Patch from tatyana.a.mineeva@intel.com.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3383

8 years agoEnable fair scheduling by default on Linux. n-i-bz.
Julian Seward [Wed, 24 May 2017 14:07:49 +0000 (14:07 +0000)] 
Enable fair scheduling by default on Linux.  n-i-bz.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16414

8 years agoUpdate.
Julian Seward [Wed, 24 May 2017 13:43:08 +0000 (13:43 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16413

8 years agoWhen a thread hints that it is in a spin-wait loop (eg, x86 REP NOP insn),
Julian Seward [Wed, 24 May 2017 13:42:33 +0000 (13:42 +0000)] 
When a thread hints that it is in a spin-wait loop (eg, x86 REP NOP insn),
deschedule the thread much sooner (300 evchecks) than previously (1000
evchecks).  Once the thread is spinning, there's absolutely no point in
continuing with it, since only a different thread can get it out of the loop,
so we need to drop the current thread ASAP.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16412

8 years agoPort changes from r16407 to Solaris OS.
Ivo Raisr [Tue, 23 May 2017 21:37:50 +0000 (21:37 +0000)] 
Port changes from r16407 to Solaris OS.
n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16411

8 years agoFix expected output of brk tests after r16407.
Ivo Raisr [Tue, 23 May 2017 21:22:31 +0000 (21:22 +0000)] 
Fix expected output of brk tests after r16407.
n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16410

8 years agoFix expected output of none/tests/cmdline{1,2}.
Ivo Raisr [Tue, 23 May 2017 09:13:31 +0000 (09:13 +0000)] 
Fix expected output of none/tests/cmdline{1,2}.
Follow up to r16406.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16409

8 years agomips: implement missing case for Iop_Not64
Petar Jovanovic [Mon, 22 May 2017 15:22:06 +0000 (15:22 +0000)] 
mips: implement missing case for Iop_Not64

Add missing implementation of Iop_Not64 in iselInt64Expr_wrk.

Patch by Aleksandar Rikalo.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3382

8 years agomips: fix set_MIPS_rounding_mode()
Petar Jovanovic [Mon, 22 May 2017 15:14:06 +0000 (15:14 +0000)] 
mips: fix set_MIPS_rounding_mode()

Do not override input argument. This fixes issues seen with CSE.

Patch by Tamara Vlahovic.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3381

8 years agomips32: add Iex_ITE implementation for floating point numbers
Petar Jovanovic [Mon, 22 May 2017 12:21:18 +0000 (12:21 +0000)] 
mips32: add Iex_ITE implementation for floating point numbers

Add missing case in Iex_ITE implementation for floating point numbers on
mips32.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3380

8 years agoAllow "sub.w reg, sp, reg, lsl #N" for N in 0 .. 5 rather than N in 0 .. 3.
Julian Seward [Mon, 22 May 2017 09:03:54 +0000 (09:03 +0000)] 
Allow "sub.w reg, sp, reg, lsl #N" for N in 0 .. 5 rather than N in 0 .. 3.
Fixes bug 379890.  (jeundery@gmail.com)

git-svn-id: svn://svn.valgrind.org/vex/trunk@3379

8 years agoEnable reading of inlined unwind info for exp-dhat. n-i-bz.
Julian Seward [Mon, 22 May 2017 08:53:37 +0000 (08:53 +0000)] 
Enable reading of inlined unwind info for exp-dhat.  n-i-bz.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16408

8 years agoMake the message "brk segment overflow in thread #%u: can't grow to %#lx"
Julian Seward [Mon, 22 May 2017 08:50:07 +0000 (08:50 +0000)] 
Make the message "brk segment overflow in thread #%u: can't grow to %#lx"
be printed only once, rather than every time it happens.  Also make it
not be printed in silent mode (-q).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16407

8 years agoIncrease the size of the translation cache to keep up with the demands
Julian Seward [Mon, 22 May 2017 08:47:24 +0000 (08:47 +0000)] 
Increase the size of the translation cache to keep up with the demands
of running modern large applications:

* the maximum number of sectors is increased from 24 to 48

* the default number of sectors is increased from 16 to 32 on all targets
  except Android

* the default number of sectors is increased from 6 to 12 on Android targets

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16406

8 years agoFix order of strings in a warning message, that has always been wrong.
Julian Seward [Mon, 22 May 2017 08:41:07 +0000 (08:41 +0000)] 
Fix order of strings in a warning message, that has always been wrong.
n-i-bz.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16405

8 years agoDocuments --sim-hints=fallback-llsc. Pertains to bug 369459.
Julian Seward [Mon, 22 May 2017 08:29:58 +0000 (08:29 +0000)] 
Documents --sim-hints=fallback-llsc.  Pertains to bug 369459.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16404

8 years agoBug 379966 - WARNING: unhandled amd64-linux syscall: 313 (finit_module).
Julian Seward [Mon, 22 May 2017 07:53:04 +0000 (07:53 +0000)] 
Bug 379966 - WARNING: unhandled amd64-linux syscall: 313 (finit_module).
Patch from Bartosz Golaszewski (bartekgola@gmail.com).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16403

8 years agoFix some warnings reported by PVS studio (see bug 379502)
Philippe Waroquiers [Sat, 20 May 2017 17:00:39 +0000 (17:00 +0000)] 
Fix some warnings reported by PVS studio (see bug 379502)

git-svn-id: svn://svn.valgrind.org/vex/trunk@3378

8 years agoRemoves a useless part of a condition, as discussed in bug 375415
Philippe Waroquiers [Sat, 20 May 2017 16:13:33 +0000 (16:13 +0000)] 
Removes a useless part of a condition, as discussed in bug 375415

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16402

8 years agoCompile fb_test_amd64 only if adx instructions can be compiled
Philippe Waroquiers [Sat, 20 May 2017 14:59:54 +0000 (14:59 +0000)] 
Compile fb_test_amd64 only if adx instructions can be compiled

Note: this just unbreaks the build on avx + non_adx capable systems
(such as gcc farm gcc20).

adx capable system should probably be better handled:
  * ./tests/x86_amd64_features cannot check for adx flag
    (so fb_test_amd64 is run if compiled and system is avx capable, which
     might give problems if gcc/as can compile the test, but the cpu
     cannot execute adx instructions)
  * on an adx capable system, a native run of cpuid tells it is adx capable
    but under valgrind, cpuid reports the valgrind synthetic cpu is not adx
    capable.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16401

8 years agomips: fix a typo in log
Petar Jovanovic [Fri, 19 May 2017 13:57:28 +0000 (13:57 +0000)] 
mips: fix a typo in log

Minor typo. Log "cfc1 " instead of "ctc1 " for Min_MfFCSR.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3377

8 years agomips32: remove assembler warning in memcheck/leak* tests
Petar Jovanovic [Fri, 19 May 2017 13:51:02 +0000 (13:51 +0000)] 
mips32: remove assembler warning in memcheck/leak* tests

Use .set noat directive to prevent assembler from complaining about
subsequent instructions that use register $at.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16400

8 years agomips32: fix wrong register use
Petar Jovanovic [Fri, 19 May 2017 13:25:41 +0000 (13:25 +0000)] 
mips32: fix wrong register use

Fix wrong register use in none/tests/mips32/MoveIns.c.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16399

8 years agoMissing VEX commit for Valgrind SVN r16393.
Ivo Raisr [Thu, 18 May 2017 09:47:51 +0000 (09:47 +0000)] 
Missing VEX commit for Valgrind SVN r16393.
Follow up to VEX r3365 and BZ#360415.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3376

8 years agoProtect vgversion.h in a tarball from getting deleted by make clean
Mark Wielaard [Thu, 18 May 2017 08:39:21 +0000 (08:39 +0000)] 
Protect vgversion.h in a tarball from getting deleted by make clean

Create a file vgversion_dist.h in the tarball.
This file is not deleted by make clean
Change auxprogs/make_or_upd_vgversion_h to use vgversion_dist.h if it is
available.
Add some missing quotes to auxprogs/make_or_upd_vgversion_h

Patch by Matthias Schwarzott <zzam@gentoo.org>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16398

8 years agoFix vgversion.h generation for builddir != srcdir.
Mark Wielaard [Wed, 17 May 2017 20:38:18 +0000 (20:38 +0000)] 
Fix vgversion.h generation for builddir != srcdir.

Make sure to include the builddir include directory to find the
generated vgversion.h. Make include/vgversion.h a .PHONY target
so it always gets regenerated even if the file is already there.
Make sure to run svnversion in the srcdir.

Patch by Matthias Schwarzott <zzam@gentoo.org>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16397

8 years agoPPC64, ISA 3.0 fixes
Carl Love [Wed, 17 May 2017 20:11:32 +0000 (20:11 +0000)] 
PPC64, ISA 3.0 fixes

- Fix mffs instruction, FPSCR, C_FPCC field access is not
  working correctly.
- Fix xscmpexpdp again still had a bug.
- Remove duplicate tests from test_isa_3_0.c
- Comment out he tests for the new ISA 3.0B instructions.  There
  seem to be some issues between the simulator and early HW that
  need to be sorted out.

Bugzilla 379925, VEX commit 3375

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16396

8 years agoPPC64, ISA 3.0 fixes
Carl Love [Wed, 17 May 2017 20:09:46 +0000 (20:09 +0000)] 
PPC64, ISA 3.0 fixes

- Fix mffs instruction, FPSCR, C_FPCC field access is not
  working correctly.
- Fix xscmpexpdp again still had a bug.
- Remove duplicate tests from test_isa_3_0.c
- Comment out he tests for the new ISA 3.0B instructions.  There
  seem to be some issues between the simulator and early HW that
  need to be sorted out.

Bugzilla 379925

git-svn-id: svn://svn.valgrind.org/vex/trunk@3375

8 years agomips32: update clobbers in none/mips32/LoadStore tests
Petar Jovanovic [Wed, 17 May 2017 15:35:48 +0000 (15:35 +0000)] 
mips32: update clobbers in none/mips32/LoadStore tests

Add missing registers to clobbers.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16395

8 years agomips32: minor update to the branches test
Petar Jovanovic [Wed, 17 May 2017 14:51:13 +0000 (14:51 +0000)] 
mips32: minor update to the branches test

Update inline assembly with .set noreorder.
This prevents assembler from reordering the instructions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16394

8 years agoFix test fb_test_amd64.
Ivo Raisr [Wed, 17 May 2017 11:06:53 +0000 (11:06 +0000)] 
Fix test fb_test_amd64.
Follow up to r16372.

The test is now built if the compiler understands AVX
instructions. The test is executed if the host speaks AVX
is well. Finally bogus printf format flags were fixed as
they caused the output to be inconsistent on Linux and Solaris.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16393

8 years agoPOST syscall wrapper for clock_gettime was not properly hooked up on Solaris.
Ivo Raisr [Wed, 17 May 2017 04:36:06 +0000 (04:36 +0000)] 
POST syscall wrapper for clock_gettime was not properly hooked up on Solaris.
This resulted in false positive undefined warnings.
Fixes BZ#379895.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16392

8 years agoPower PC ISA 3.0 fixes:
Carl Love [Tue, 16 May 2017 20:38:35 +0000 (20:38 +0000)] 
Power PC ISA 3.0 fixes:
  Fix for stxvx instruction.
  Add LE support for stxv instruction
  Fix for the xscmpexpdp instruction

Bugzilla: 379703

VEX commit: 3374

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16391

8 years agoPower PC ISA 3.0 fixes:
Carl Love [Tue, 16 May 2017 20:35:28 +0000 (20:35 +0000)] 
Power PC ISA 3.0 fixes:
  Fix for stxvx instruction.
  Add LE support for stxv instruction
  Fix for the xscmpexpdp instruction

Bugzilla: 379703

git-svn-id: svn://svn.valgrind.org/vex/trunk@3374

8 years agomips64: add a workaround for Cavium CPUs to support mips32r1-r2-mips64r1
Petar Jovanovic [Tue, 16 May 2017 16:31:16 +0000 (16:31 +0000)] 
mips64: add a workaround for Cavium CPUs to support mips32r1-r2-mips64r1

Linux kernel incorrectly shows that MIPS Cavium CPUs do not support mips32r1,
mips32r2 and mips64r1. This is due to incorrect defines in

arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h

that affect show_cpuinfo() function.

Until that is changed in Linux kernel, we need a workaround in Valgrind, so
all supported ISAs can be executed correctly.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16390

8 years agomips: rewrite parts of mips_dirtyhelper_rdhwr
Petar Jovanovic [Tue, 16 May 2017 15:21:35 +0000 (15:21 +0000)] 
mips: rewrite parts of mips_dirtyhelper_rdhwr

The idea behind this change is to be less dependent on build-flags, and
more dependent on runtime environment.
So, if the code is compiled for mips32r1, it should be able to execute
mips32r2 code if the platforms supports it.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3373

8 years agoAdd include/vgversion.h to clean-local.
Mark Wielaard [Tue, 16 May 2017 15:17:13 +0000 (15:17 +0000)] 
Add include/vgversion.h to clean-local.

It is a generated file that needs to be cleaned up.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16389

8 years agoAdd dlopen_lib.h to drd/tests/Makefile.am noinst_HEADERS.
Mark Wielaard [Tue, 16 May 2017 15:17:12 +0000 (15:17 +0000)] 
Add dlopen_lib.h to drd/tests/Makefile.am noinst_HEADERS.

It is used in drd/tests/dlopen_lib.c and drd/tests/dlopen_main.c.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16388

8 years agoCall $(top_srcdir)/auxprogs/make_or_upd_vgversion_h.
Mark Wielaard [Tue, 16 May 2017 15:17:10 +0000 (15:17 +0000)] 
Call $(top_srcdir)/auxprogs/make_or_upd_vgversion_h.

Fixes srcdir != builddir builds.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16387

8 years agoRedo rev 16384 to use the "house" conditionalisation scheme. Pertains to
Julian Seward [Tue, 16 May 2017 09:30:50 +0000 (09:30 +0000)] 
Redo rev 16384 to use the "house" conditionalisation scheme.  Pertains to
BZ#368529.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16386

8 years agoMore bug squashing! Yay!
Ivo Raisr [Tue, 16 May 2017 08:54:31 +0000 (08:54 +0000)] 
More bug squashing! Yay!

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16385

8 years agoImplement required stubs for Android on arm when built with clang/llvm.
Ivo Raisr [Tue, 16 May 2017 08:50:48 +0000 (08:50 +0000)] 
Implement required stubs for Android on arm when built with clang/llvm.
Fixes BZ#368529
Slightly modified patch by: Elliott Hughes <enh@google.com>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16384

8 years agoIncrease Valgrind's load address to prevent mmap failure.
Ivo Raisr [Tue, 16 May 2017 08:22:51 +0000 (08:22 +0000)] 
Increase Valgrind's load address to prevent mmap failure.
Fixes BZ#374963.

Previously Valgrind failed to start when the executable contained
large text, data or bss segments. The load address was increased
for almost all platforms to 0x58000000 (from 0x38000000),
giving another 512 MB for the executable.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16383

8 years agoFixes for BZ#370028 are now finished.
Ivo Raisr [Tue, 16 May 2017 08:03:10 +0000 (08:03 +0000)] 
Fixes for BZ#370028 are now finished.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16382

8 years agoReduce the number of compiler warnings on MIPS platforms
Ivo Raisr [Tue, 16 May 2017 07:59:31 +0000 (07:59 +0000)] 
Reduce the number of compiler warnings on MIPS platforms
Partial fix for BZ#370028
Slightly modified patch by: Tamara Vlahovic <tamara.vlahovic@imgtec.com>

git-svn-id: svn://svn.valgrind.org/vex/trunk@3372

8 years agoarm64-linux: detect Cavium CPUs (implementer = 0x43) and enable the
Julian Seward [Tue, 16 May 2017 06:26:48 +0000 (06:26 +0000)] 
arm64-linux: detect Cavium CPUs (implementer = 0x43) and enable the
fallback LLSC implementation in that case.  Pertains to bug #369459.
(VEX side changes)

git-svn-id: svn://svn.valgrind.org/vex/trunk@3371

8 years agoBug 368507 - valgrind throws std::bad_alloc on memory allocations larger than 3425542...
Julian Seward [Tue, 16 May 2017 06:20:26 +0000 (06:20 +0000)] 
Bug 368507 - valgrind throws std::bad_alloc on memory allocations larger than 34255421416 bytes.
Increase the amount of usable memory from 64GB to 128GB on Linux and Solaris.
(Solaris bits from Ivo Raisr.)  OSX is so far unchanged.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16381

8 years agoarm64-linux: detect Cavium CPUs (implementer = 0x43) and enable the
Julian Seward [Tue, 16 May 2017 05:35:23 +0000 (05:35 +0000)] 
arm64-linux: detect Cavium CPUs (implementer = 0x43) and enable the
fallback LLSC implementation in that case.  Pertains to bug #369459.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16380

8 years agoFix 2 errors found by PVS studio
Philippe Waroquiers [Mon, 15 May 2017 21:00:16 +0000 (21:00 +0000)] 
Fix 2 errors found by PVS studio
(see  https://www.viva64.com/en/b/0504/ and bug 379502)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16379

8 years agomips: implement set/long_jmp instead of builtins
Petar Jovanovic [Mon, 15 May 2017 14:56:22 +0000 (14:56 +0000)] 
mips: implement set/long_jmp instead of builtins

- VG_MINIMAL_SETJMP and VG_MINIMAL_LONGJMP for VGP_mips64_linux are defined.
- Implementation of VG_MINIMAL_SETJMP and VG_MINIMAL_LONGJMP for mips32 is
  improved by rescuing FP registers.

This should unbreak mips64/clang build.

Patch by Aleksandar Rikalo.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16378

8 years agoFix a build problem introduced by SVN commit r16365.
Ivo Raisr [Mon, 15 May 2017 11:01:28 +0000 (11:01 +0000)] 
Fix a build problem introduced by SVN commit r16365.
Fixes BZ#370028
Patch by: Tamara Vlahovic <tamara.vlahovic@imgtec.com>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16377

8 years agoMore bug squashing updates.
Ivo Raisr [Mon, 15 May 2017 08:33:16 +0000 (08:33 +0000)] 
More bug squashing updates.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16376

8 years agoAnnounce fix of bug 379838.
Ivo Raisr [Mon, 15 May 2017 08:16:36 +0000 (08:16 +0000)] 
Announce fix of bug 379838.
VEX SVN commit r3370.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16375

8 years agoFix decoding failure in X86 VEX frontend.
Ivo Raisr [Mon, 15 May 2017 08:15:22 +0000 (08:15 +0000)] 
Fix decoding failure in X86 VEX frontend.
Fixes BZ#379838.
Patch by: Julian Seward <jseward@acm.org>

git-svn-id: svn://svn.valgrind.org/vex/trunk@3370

8 years agoAdd none/tests/amd64/ build artifacts to svn ignore list. n-i-bz.
Rhys Kidd [Sun, 14 May 2017 22:05:51 +0000 (22:05 +0000)] 
Add none/tests/amd64/ build artifacts to svn ignore list. n-i-bz.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16374

8 years agoUpdate.
Julian Seward [Sun, 14 May 2017 14:32:15 +0000 (14:32 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16373

8 years agoImplement PRFM (unscaled offset). Fixes #371503.
Julian Seward [Sun, 14 May 2017 14:30:26 +0000 (14:30 +0000)] 
Implement PRFM (unscaled offset).  Fixes #371503.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3369

8 years agoImplement "mrs <reg>, cntfrq_el0". Fixes #368868.
Julian Seward [Sun, 14 May 2017 13:00:07 +0000 (13:00 +0000)] 
Implement "mrs <reg>, cntfrq_el0".  Fixes #368868.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3368

8 years agoAdd a test for amd64 basic instructions, with particular emphasis on testing
Julian Seward [Sun, 14 May 2017 07:56:41 +0000 (07:56 +0000)] 
Add a test for amd64 basic instructions, with particular emphasis on testing
condition codes.  This is originally by Fabrice Bellard (GPL2+'d), with MD5
support from Alexander Peslyak (public domain) and has been extended to cover
ADOX and ADCX as per bug #360415.

The program generates more than 800MB of output, which it MD5 sums, so the final
MD5 sum serves as the pass/fail check.  It takes roughly a minute to run.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16372

8 years agoUpdate.
Julian Seward [Sat, 13 May 2017 16:56:52 +0000 (16:56 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16371

8 years agoAdd a test case for flag handling for BT/BTC/BTS/BTR. Pertains to #367543.
Julian Seward [Sat, 13 May 2017 16:52:33 +0000 (16:52 +0000)] 
Add a test case for flag handling for BT/BTC/BTS/BTR.  Pertains to #367543.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16370

8 years agoBug 367543 - bt/btc/btr/bts x86/x86_64 instructions are poorly-handled wrt flags.
Julian Seward [Sat, 13 May 2017 16:40:59 +0000 (16:40 +0000)] 
Bug 367543 - bt/btc/btr/bts x86/x86_64 instructions are poorly-handled wrt flags.
This fixes the flag handling to be like Skylake.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3367

8 years agoFix mempool2 test
Philippe Waroquiers [Sat, 13 May 2017 10:19:16 +0000 (10:19 +0000)] 
Fix mempool2 test
mempool2 test was using a wrong address for the pool arguments
in the client requests VALGRIND_MEMPOOL_FREE.
So, instead of testing what it was supposed to test (e.g. reading
memory from a freed mempool block), this was all causing
an illegal memory pool address.
So, fix the calls, and add a specific test to verify the illegal
mempool address.

(detected while looking at bug 375415)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16369

8 years agoReduce the number of compiler warnings on MIPS platforms in coregrind/m_mallocfree.c
Ivo Raisr [Fri, 12 May 2017 17:18:05 +0000 (17:18 +0000)] 
Reduce the number of compiler warnings on MIPS platforms in coregrind/m_mallocfree.c
Fixes BZ#370028
Patch by: Tamara Vlahovic <tamara.vlahovic@imgtec.com>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16368

8 years agoAdd test cases for PCMPxSTRx variant $0x10. Pertains to #371288.
Julian Seward [Fri, 12 May 2017 14:11:03 +0000 (14:11 +0000)] 
Add test cases for PCMPxSTRx variant $0x10.  Pertains to #371288.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16367

8 years agoEnable the PCMPxSTRx variant $0x10. Fixes #372188.
Julian Seward [Fri, 12 May 2017 14:09:36 +0000 (14:09 +0000)] 
Enable the PCMPxSTRx variant $0x10.  Fixes #372188.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3366

8 years agoImplement ADCX and ADOX instructions. Modified version of a patch from
Julian Seward [Fri, 12 May 2017 13:32:02 +0000 (13:32 +0000)] 
Implement ADCX and ADOX instructions.  Modified version of a patch from
jacobly.alt@gmail.com.  Bug 360415.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3365

8 years agoFix build problems on Solaris and OS X.
Ivo Raisr [Fri, 12 May 2017 01:37:33 +0000 (01:37 +0000)] 
Fix build problems on Solaris and OS X.
Follow up to SVN r16364.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16366

8 years agoReduce the number of compiler warnings on MIPS platforms in coregrind/launcher-linux.c
Ivo Raisr [Fri, 12 May 2017 01:16:01 +0000 (01:16 +0000)] 
Reduce the number of compiler warnings on MIPS platforms in coregrind/launcher-linux.c
Fixes BZ#370028
Patch by: Tamara Vlahovic <tamara.vlahovic@imgtec.com>

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16365

8 years agoFix a problem when reading .valgrindrc and it is a directory instead of a file.
Ivo Raisr [Thu, 11 May 2017 17:00:17 +0000 (17:00 +0000)] 
Fix a problem when reading .valgrindrc and it is a directory instead of a file.
Fixes BZ#362223.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16364

8 years agomips32: improve none/tests/mips32/MIPS32int
Petar Jovanovic [Thu, 11 May 2017 16:59:33 +0000 (16:59 +0000)] 
mips32: improve none/tests/mips32/MIPS32int

- Invalid memory access fixed;
- Inappropriate immediate value on ROTR test changed;
- Stricter tests for LWL/LWR instructions.

Patch by Aleksandar Rikalo.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16363

8 years agoBug 371491 - handleAddrOverrides() is truncating the segment base address when ASO...
Julian Seward [Thu, 11 May 2017 14:28:10 +0000 (14:28 +0000)] 
Bug 371491 - handleAddrOverrides() is truncating the segment base address when ASO prefix is used.
Patch from Michael Daniels (mdaniels@blackberry.com).

git-svn-id: svn://svn.valgrind.org/vex/trunk@3364

8 years agoMinor update.
Julian Seward [Thu, 11 May 2017 14:21:08 +0000 (14:21 +0000)] 
Minor update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16362

8 years agonone/tests/amd64/bug132918.c: Mark f64 as an output parameter
Bart Van Assche [Thu, 11 May 2017 03:07:49 +0000 (03:07 +0000)] 
none/tests/amd64/bug132918.c: Mark f64 as an output parameter

This change avoids that gcc 7 complains that f64 is used uninitialized
in this source file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16361