]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
13 years agoUpdate.
Julian Seward [Sun, 2 Sep 2012 21:53:17 +0000 (21:53 +0000)] 
Update.

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

13 years agoUpdate.
Julian Seward [Sun, 2 Sep 2012 21:20:27 +0000 (21:20 +0000)] 
Update.

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

13 years ago"Fix" stack bounds check when compiled by Clang 4.0. Fix from Andrew
Julian Seward [Sun, 2 Sep 2012 21:17:36 +0000 (21:17 +0000)] 
"Fix" stack bounds check when compiled by Clang 4.0.  Fix from Andrew
Morrow, analysis by Florian Krohm.

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

13 years agoImprove callgrind performance by 4 to 8% using UNLIKELY
Philippe Waroquiers [Sun, 2 Sep 2012 20:26:23 +0000 (20:26 +0000)] 
Improve callgrind performance by 4 to 8% using UNLIKELY
Performance improvements from 4 to 8% obtained on amd64 on the perf tests by:
1. using UNLIKELY inside tracing macros
2. avoid calling CLG_(switch_thread)(tid) on the hot patch setup_bbcc
   unless tid differs from CLG_(current_tid).

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

13 years agoAdd testcase to check the emulation warning for new supported opcodes
Florian Krohm [Sun, 2 Sep 2012 18:10:34 +0000 (18:10 +0000)] 
Add testcase to check the emulation warning for new supported opcodes
on hosts without floating point extension facility.
See companion patch VEX r2501.
Part of fixing bugzilla #306098.

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

13 years agoSupport the variety of "convert to/from fixed" and "load rounded" opcodes
Florian Krohm [Sun, 2 Sep 2012 18:07:08 +0000 (18:07 +0000)] 
Support the variety of "convert to/from fixed" and "load rounded" opcodes
that have an additional m3 and/or m4 field.
Add emulation warning EmWarn_S390X_fpext_rounding and issue it in case
the current opcode cannot be emulated correctly (i.e. with the specified
rounding mode).
New function: emulation_warning.
Part of fixing bugzilla #306098.

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

13 years agoRemove alignment checks for VMPSADBW, VPHMINPOSUW, VPALIGNR since they
Julian Seward [Sun, 2 Sep 2012 12:13:34 +0000 (12:13 +0000)] 
Remove alignment checks for VMPSADBW, VPHMINPOSUW, VPALIGNR since they
do not apply to the AVX versions of these instructions.  Fixes #305926.
(Jakub Jelinek, jakub@redhat.com)

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

13 years agoChange s390-features to allow testing for absence of a feature.
Florian Krohm [Sun, 2 Sep 2012 03:30:38 +0000 (03:30 +0000)] 
Change s390-features to allow testing for absence of a feature.
This is infintely less painful than to find out how to invert
the condition in a test prerequisite.

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

13 years agoFix an uninitialised variable found be BEAM.
Florian Krohm [Sat, 1 Sep 2012 23:48:09 +0000 (23:48 +0000)] 
Fix an uninitialised variable found be BEAM.

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

13 years agoFix Makefile.am for fpext_fail testcase.
Florian Krohm [Sat, 1 Sep 2012 23:43:03 +0000 (23:43 +0000)] 
Fix Makefile.am for fpext_fail testcase.

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

13 years agoUpdate.
Julian Seward [Sat, 1 Sep 2012 20:33:46 +0000 (20:33 +0000)] 
Update.

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

13 years agoMark two fixes for s390x as [390] because they weren't fixed for 3.8.0
Florian Krohm [Sat, 1 Sep 2012 20:23:59 +0000 (20:23 +0000)] 
Mark two fixes for s390x as [390] because they weren't fixed for 3.8.0

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

13 years agoGuard against negative symbol sizes in ELF symbol tables, which
Julian Seward [Sat, 1 Sep 2012 20:08:35 +0000 (20:08 +0000)] 
Guard against negative symbol sizes in ELF symbol tables, which
lead to assertion failures in ML_(find_rx_mapping).  Most closely
related to #304980.

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

13 years agos390: Mark a few more function parameters as unused.
Florian Krohm [Sat, 1 Sep 2012 20:01:39 +0000 (20:01 +0000)] 
s390: Mark a few more function parameters as unused.

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

13 years agos390: Add testcase for emulation failure.
Florian Krohm [Sat, 1 Sep 2012 17:55:10 +0000 (17:55 +0000)] 
s390: Add testcase for emulation failure.

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

13 years agos390: Generate an emulation failure if an insn is encountered that
Florian Krohm [Sat, 1 Sep 2012 17:54:09 +0000 (17:54 +0000)] 
s390: Generate an emulation failure if an insn is encountered that
requires the floating point extension facility but the host does not
have it. Factored out function emulation_failure.

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

13 years agos390: Valgrind-side changes to fixing bugzilla #274695:
Florian Krohm [Sat, 1 Sep 2012 00:15:45 +0000 (00:15 +0000)] 
s390: Valgrind-side changes to fixing bugzilla #274695:
Testcase, vbit tester update, memcheck support for the new IROps,
NEWS announcement and opcode list update.
Patch by Christian Borntraeger (borntraeger@de.ibm.com).
Vbit tester tweaks by myself.
Fixes bugzilla #274695.
See also companion patch VEX r2496.

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

13 years agos390: Add support for the "convert from/to logical" instruction family.
Florian Krohm [Sat, 1 Sep 2012 00:12:11 +0000 (00:12 +0000)] 
s390: Add support for the "convert from/to logical" instruction family.
A few (7) new IROps are introduced.
Patch by Christian Borntraeger (borntraeger@de.ibm.com).
Fixes bugzilla #274695.

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

13 years agoComment only change.
Florian Krohm [Thu, 30 Aug 2012 22:57:47 +0000 (22:57 +0000)] 
Comment only change.

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

13 years agos390: Detect floating point extension facility. Update s390-features.c
Florian Krohm [Thu, 30 Aug 2012 20:30:32 +0000 (20:30 +0000)] 
s390: Detect floating point extension facility. Update s390-features.c

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

13 years agos390: Add floating point extension facility to hwcaps.
Florian Krohm [Thu, 30 Aug 2012 20:28:00 +0000 (20:28 +0000)] 
s390: Add floating point extension facility to hwcaps.

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

13 years agoAdd FAC_BIT macro to simplify correct testing for facility bits.
Florian Krohm [Thu, 30 Aug 2012 18:47:56 +0000 (18:47 +0000)] 
Add FAC_BIT macro to simplify correct testing for facility bits.

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

13 years agoUpdate filter_stderr due to changed warning message.
Florian Krohm [Thu, 30 Aug 2012 15:29:48 +0000 (15:29 +0000)] 
Update filter_stderr due to changed warning message.
Unbreaks callgrind regtests on s390.

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

13 years agoFix build on Darwin. Patch by Rich Coe (rcoe@wi.rr.com).
Florian Krohm [Thu, 30 Aug 2012 15:12:59 +0000 (15:12 +0000)] 
Fix build on Darwin. Patch by Rich Coe (rcoe@wi.rr.com).

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

13 years agoEnable V-bit testing on x86.
Florian Krohm [Wed, 29 Aug 2012 22:40:50 +0000 (22:40 +0000)] 
Enable V-bit testing on x86.

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

13 years agoAdd list of files to svn:ignore here
Florian Krohm [Wed, 29 Aug 2012 18:41:58 +0000 (18:41 +0000)] 
Add list of files to svn:ignore here

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

13 years agoEnable V-bit testing on ppc32.
Florian Krohm [Wed, 29 Aug 2012 17:45:13 +0000 (17:45 +0000)] 
Enable V-bit testing on ppc32.

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

13 years agoFix address computation in IR injection. When loading / storing a
Florian Krohm [Wed, 29 Aug 2012 17:40:52 +0000 (17:40 +0000)] 
Fix address computation in IR injection. When loading / storing a
128-bit value as 2 64-bit values, the two memory locations are 8 bytes
apart. Always. Everywhere. Due to a thinko this was busted on 32-bit
eachines.
Also add an assert that values requiring more than 128 bit are currently
not supported.

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

13 years agoFix printf formats for uint64_t values.
Florian Krohm [Wed, 29 Aug 2012 15:21:15 +0000 (15:21 +0000)] 
Fix printf formats for uint64_t values.

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

13 years agoFix IR injection for ppc32. Need to use mkSzImm not mkU64...
Florian Krohm [Wed, 29 Aug 2012 15:00:13 +0000 (15:00 +0000)] 
Fix IR injection for ppc32. Need to use mkSzImm not mkU64...

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

13 years agoAdd VALGRIND_VEX_INJECT_IR for ppc32. Should have been included
Florian Krohm [Wed, 29 Aug 2012 14:59:13 +0000 (14:59 +0000)] 
Add VALGRIND_VEX_INJECT_IR for ppc32. Should have been included
in r12906.

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

13 years agos390: Fix the default cache configuration. As z10-EC has an L3
Florian Krohm [Wed, 29 Aug 2012 02:50:56 +0000 (02:50 +0000)] 
s390: Fix the default cache configuration. As z10-EC has an L3
cache, use that instead of the L2 -- bringing the code in synch
with documentation.
Also improve the warning message to be more meaningful.

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

13 years agovbit tester: Disable Iop_CmpLT64S and Iop_CmpLE64S for ppc because
Florian Krohm [Tue, 28 Aug 2012 23:38:49 +0000 (23:38 +0000)] 
vbit tester: Disable Iop_CmpLT64S and Iop_CmpLE64S for ppc because
they cause assertion failures.
Do not test Iop_CmpORDxyz on ppc because the vbit tester does not
support them. This is just so we don't have to add another .exp file for ppc.

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

13 years agoMake debug printout look nicer.
Florian Krohm [Tue, 28 Aug 2012 20:58:23 +0000 (20:58 +0000)] 
Make debug printout look nicer.

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

13 years agoRemove .deps directory.
Florian Krohm [Tue, 28 Aug 2012 18:37:40 +0000 (18:37 +0000)] 
Remove .deps directory.

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

13 years agodrd/tests: Add a test that verifies whether the pthread_cancel() intercept works
Bart Van Assche [Tue, 28 Aug 2012 18:17:27 +0000 (18:17 +0000)] 
drd/tests: Add a test that verifies whether the pthread_cancel() intercept works

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

13 years agodrd: Re-enable the pthread_cancel() intercept now that the CALL_FN_*() ABI
Bart Van Assche [Tue, 28 Aug 2012 17:57:09 +0000 (17:57 +0000)] 
drd: Re-enable the pthread_cancel() intercept now that the CALL_FN_*() ABI
violation has been fixed (r12811).

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

13 years agoAdd a tester for V-bit propagation through IROps.
Florian Krohm [Tue, 28 Aug 2012 16:50:39 +0000 (16:50 +0000)] 
Add a tester for V-bit propagation through IROps.
The tester is located in memcheck/tests/vbit-test.
It needs the following support on the valgrind / VEX side:
(1) a new client request VG_USERREQ__VEX_INIT_FOR_IRI
(2) a new "special instruction" on all architectures inserted via
    VALGRIND_VEX_INJECT_IR
(3) VEX changes to detect the special insn and insert IR (ir_inject.c)

The README file in vbit-test has some more information.
See also VEX r2490.  Fixes bugzilla #300102.

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

13 years agoVEX-side support for the V-bit tester.
Florian Krohm [Tue, 28 Aug 2012 16:49:30 +0000 (16:49 +0000)] 
VEX-side support for the V-bit tester.
- recognise the new "special instruction" for all architectures
  (ARM needs implementation work; x86 and ARM are untested)
- inject IR into the superblock
- type definition for the IR injection control block

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

13 years agos390: Add zEC12 machine model. Fix spelling for some older models.
Florian Krohm [Tue, 28 Aug 2012 13:33:10 +0000 (13:33 +0000)] 
s390: Add zEC12 machine model. Fix spelling for some older models.

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

13 years agos390: Add the zEC12 machine model.
Florian Krohm [Tue, 28 Aug 2012 13:31:31 +0000 (13:31 +0000)] 
s390: Add the zEC12 machine model.

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

13 years agoFix EXTRA_DIST. Add dummy .exp file to satisfy the consistency checker
Florian Krohm [Tue, 28 Aug 2012 00:38:47 +0000 (00:38 +0000)] 
Fix EXTRA_DIST. Add dummy .exp file to satisfy the consistency checker

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

13 years agos390: Add testcase for the ecag insn. Based on patch by
Florian Krohm [Sun, 26 Aug 2012 19:05:06 +0000 (19:05 +0000)] 
s390: Add testcase for the ecag insn. Based on patch by
Divya Vyas (divyvyas@linux.vnet.ibm.com). Update opcode list.

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

13 years agos390: Add support for the ecag insn. Patch from Divya Vyas
Florian Krohm [Sun, 26 Aug 2012 18:58:13 +0000 (18:58 +0000)] 
s390: Add support for the ecag insn. Patch from Divya Vyas
(divyvyas@linux.vnet.ibm.com) with mods to terminate the super block
with EmFail in case the insn is not available on the host.
Part of fixing bugzilla #275800.

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

13 years agoOn s390: Terminate the superblock with Ijk_EmFail if an stckf insn
Florian Krohm [Sun, 26 Aug 2012 14:32:28 +0000 (14:32 +0000)] 
On s390: Terminate the superblock with Ijk_EmFail if an stckf insn
is encountered but not supported on the host.

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

13 years agoOn s390: detect presence of stckf hardware facility.
Florian Krohm [Sun, 26 Aug 2012 04:23:08 +0000 (04:23 +0000)] 
On s390: detect presence of stckf hardware facility.

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

13 years agos390: Add STCKF hardware facility to hwcaps.
Florian Krohm [Sun, 26 Aug 2012 04:22:33 +0000 (04:22 +0000)] 
s390: Add STCKF hardware facility to hwcaps.

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

13 years agoOn s390: Terminate the superblock with Ijk_EmFail if an stfle insn
Florian Krohm [Sun, 26 Aug 2012 03:41:56 +0000 (03:41 +0000)] 
On s390: Terminate the superblock with Ijk_EmFail if an stfle insn
is encountered but not supported on the host.

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

13 years agoAdd sem_wait to list of ignored files.
Florian Krohm [Sun, 26 Aug 2012 03:24:01 +0000 (03:24 +0000)] 
Add sem_wait to list of ignored files.

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

13 years agoFollowup patch to r12899, purely mechanical. Rename:
Florian Krohm [Sun, 26 Aug 2012 03:22:09 +0000 (03:22 +0000)] 
Followup patch to r12899, purely mechanical. Rename:
VexEmWarn -> VexEmNote
EmWarn_NUMBER -> EmNote_NUMBER
guest_EMWARN -> guest_EMNOTE
LibVEX_EmWarn_string -> LibVEX_EmNote_string
offB_EMWARN -> offB_EMNOTE
EmWarn_NONE -> EmNote_NONE
See also VEX r2484

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

13 years agoFollowup to r2483, purely mechanical. Rename:
Florian Krohm [Sun, 26 Aug 2012 03:20:07 +0000 (03:20 +0000)] 
Followup to r2483, purely mechanical. Rename:
VexEmWarn -> VexEmNote
EmWarn_NUMBER -> EmNote_NUMBER
guest_EMWARN -> guest_EMNOTE
LibVEX_EmWarn_string -> LibVEX_EmNote_string
offB_EMWARN -> offB_EMNOTE
EmWarn_NONE -> EmNote_NONE

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

13 years agoRename libvex_emwarn.h to libvex_emnote.h. See also VEX r2483.
Florian Krohm [Sat, 25 Aug 2012 21:48:22 +0000 (21:48 +0000)] 
Rename libvex_emwarn.h to libvex_emnote.h. See also VEX r2483.

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

13 years agoRename libvex_emwarn.h to libvex_emnote.h and fix all
Florian Krohm [Sat, 25 Aug 2012 21:48:04 +0000 (21:48 +0000)] 
Rename libvex_emwarn.h to libvex_emnote.h and fix all
#include's. The renaming of guest_EMWARN, VexemWarn etc will
be done in a followup patch.
The rationale for all this is that we want to reuse the existing
machinery for emulation warnings also for emulation failures.
And that calls for some kind of neutral naming scheme.

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

13 years agodrd: Correct semaphore tracing in case sem_*wait() did not wait. See also #305690.
Bart Van Assche [Sat, 25 Aug 2012 07:25:00 +0000 (07:25 +0000)] 
drd: Correct semaphore tracing in case sem_*wait() did not wait. See also #305690.

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

13 years agoComment only change.
Florian Krohm [Sat, 25 Aug 2012 02:01:25 +0000 (02:01 +0000)] 
Comment only change.

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

13 years agodrd: Handle non-zero sem_*wait() return values correctly. Fixes #305690.
Bart Van Assche [Fri, 24 Aug 2012 17:59:03 +0000 (17:59 +0000)] 
drd: Handle non-zero sem_*wait() return values correctly. Fixes #305690.

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

13 years agodrd/tests: Add test program that makes sem_trywait() return a non-zero value
Bart Van Assche [Fri, 24 Aug 2012 17:57:44 +0000 (17:57 +0000)] 
drd/tests: Add test program that makes sem_trywait() return a non-zero value
(provided by Graham Whitted <7wz69ejteg@snkmail.com> - see also #305690).

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

13 years agoUpdate.
Julian Seward [Fri, 24 Aug 2012 16:53:02 +0000 (16:53 +0000)] 
Update.

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

13 years agoRemove now-redundant comment that should have been removed in r2475.
Julian Seward [Fri, 24 Aug 2012 16:47:27 +0000 (16:47 +0000)] 
Remove now-redundant comment that should have been removed in r2475.

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

13 years agoChange exp-sgcheck's memcpy implementation to be memmove-like (sigh)
Julian Seward [Fri, 24 Aug 2012 16:42:57 +0000 (16:42 +0000)] 
Change exp-sgcheck's memcpy implementation to be memmove-like (sigh)
since it appears that some part of the vast stack of libraries that
supports LibreOffice actually abuses it thusly.

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

13 years agoImplement a wrapper for wcslen on Linux, assuming that
Julian Seward [Fri, 24 Aug 2012 14:44:27 +0000 (14:44 +0000)] 
Implement a wrapper for wcslen on Linux, assuming that
sizeof(wchar_t) == 4, which I believe to be true on both Linux
and MacOSX.  Fixes #298281.

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

13 years agoFix skipping of block forms when this code is compiled by gcc 4.8 -- it
Julian Seward [Fri, 24 Aug 2012 14:38:56 +0000 (14:38 +0000)] 
Fix skipping of block forms when this code is compiled by gcc 4.8 -- it
has always been incorrect, modifying 'p' twice between sequence points.
Fixes #305513.  (Mark Wielaard, mjw@redhat.com)

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

13 years agoFix up range checking in ML_(addLineInfo). Avoids assertion failure
Julian Seward [Fri, 24 Aug 2012 14:05:01 +0000 (14:05 +0000)] 
Fix up range checking in ML_(addLineInfo).  Avoids assertion failure
reported in #304980.  Based on a patch by Jiri Hruska (jirka@fud.cz).

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

13 years agoUpdate.
Julian Seward [Fri, 24 Aug 2012 00:06:17 +0000 (00:06 +0000)] 
Update.

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

13 years agoAdd tests for MOVBE in 32 bit mode. See 304867. (Ambroz Bizjak,
Julian Seward [Thu, 23 Aug 2012 23:42:46 +0000 (23:42 +0000)] 
Add tests for MOVBE in 32 bit mode.  See 304867.  (Ambroz Bizjak,
ambrop7@gmail.com)

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

13 years agoImplement MOVBE in 32 bit mode. Fixes #304867. (Ambroz Bizjak,
Julian Seward [Thu, 23 Aug 2012 23:39:49 +0000 (23:39 +0000)] 
Implement MOVBE in 32 bit mode.  Fixes #304867.  (Ambroz Bizjak,
ambrop7@gmail.com)

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

13 years agoAdd test cases for QDADD and QDSUB. See #305199. (Mans Rullgard,
Julian Seward [Thu, 23 Aug 2012 20:58:08 +0000 (20:58 +0000)] 
Add test cases for QDADD and QDSUB.  See #305199.  (Mans Rullgard,
mans@mansr.com)

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

13 years agoImplement QDADD and QDSUB. Fixes #305199. (Mans Rullgard,
Julian Seward [Thu, 23 Aug 2012 20:56:17 +0000 (20:56 +0000)] 
Implement QDADD and QDSUB.  Fixes #305199.  (Mans Rullgard,
mans@mansr.com)

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

13 years agoFix LZCNT and TZCNT properly. Fixes #295808. (Jakub Jelinek,
Julian Seward [Thu, 23 Aug 2012 20:14:51 +0000 (20:14 +0000)] 
Fix LZCNT and TZCNT properly.  Fixes #295808.  (Jakub Jelinek,
jakub@redhat.com)

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

13 years agoRe-enable 'prefetch m8' and 'prefetchw m8'. Fixes #305321.
Julian Seward [Thu, 23 Aug 2012 19:47:05 +0000 (19:47 +0000)] 
Re-enable 'prefetch m8' and 'prefetchw m8'.  Fixes #305321.

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

13 years agoFix false positives in count_from_Status etc al. n-i-bz.
Julian Seward [Thu, 23 Aug 2012 19:25:12 +0000 (19:25 +0000)] 
Fix false positives in count_from_Status etc al.  n-i-bz.

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

13 years agoIimplement 0F 7F encoding of movq between two registers. Fixes
Julian Seward [Thu, 23 Aug 2012 19:00:06 +0000 (19:00 +0000)] 
Iimplement 0F 7F encoding of movq between two registers.  Fixes
#305042.  (Mans Rullgard, mans@mansr.com)

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

13 years agoHandle a reg-reg encoding of MOVAPS. Fixes #289584.
Julian Seward [Thu, 23 Aug 2012 18:49:59 +0000 (18:49 +0000)] 
Handle a reg-reg encoding of MOVAPS.  Fixes #289584.
(Alexander Potapenko, glider@google.com)

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

13 years agoAdd verbiage about hardware facilities.
Florian Krohm [Thu, 23 Aug 2012 00:44:22 +0000 (00:44 +0000)] 
Add verbiage about hardware facilities.

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

13 years agoFix propagation of undefinedness for Iop_DPBtoBCD and Iop_BCDtoDPB.
Florian Krohm [Wed, 22 Aug 2012 18:09:07 +0000 (18:09 +0000)] 
Fix propagation of undefinedness for Iop_DPBtoBCD and Iop_BCDtoDPB.
Any undefined input bit will cause all output bits to be undefined.

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

13 years agoRemove unused IRops Iop_SqrtF64r32 and Iop_CalcFPRF.
Florian Krohm [Tue, 21 Aug 2012 22:15:19 +0000 (22:15 +0000)] 
Remove unused IRops Iop_SqrtF64r32 and Iop_CalcFPRF.

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

13 years agoHandle Iop_Left16 so And16 / Sub16 work properly with memcheck.
Florian Krohm [Mon, 20 Aug 2012 20:13:27 +0000 (20:13 +0000)] 
Handle Iop_Left16 so And16 / Sub16 work properly with memcheck.

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

13 years agoHandle the following IRops as they may get generated:
Florian Krohm [Mon, 20 Aug 2012 16:51:39 +0000 (16:51 +0000)] 
Handle the following IRops as they may get generated:
Iop_Mul8, Iop_Sar8, Iop_CmpwNEZ32, and Iop_8HLto16.
With this change mc_translate now handles all IR ops which are architecture
independent, except Iop_LeftXYZ and Iop_Max32U.

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

13 years agoFix insn selection for Iop_Shr8/16 and Iop_Sar8/16 on s390.
Florian Krohm [Mon, 20 Aug 2012 13:44:29 +0000 (13:44 +0000)] 
Fix insn selection for Iop_Shr8/16 and Iop_Sar8/16 on s390.

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

13 years agoFix POST(posix_spawn) on Darwin so it marks the returned pid as defined.
Julian Seward [Mon, 20 Aug 2012 10:40:02 +0000 (10:40 +0000)] 
Fix POST(posix_spawn) on Darwin so it marks the returned pid as defined.

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

13 years agofix 301281 valgrind hangs on OS X when the process calls system()
Philippe Waroquiers [Mon, 20 Aug 2012 09:27:15 +0000 (09:27 +0000)] 
fix 301281 valgrind hangs on OS X when the process calls system()
After looking more in depth, gdbserver must not be terminated
in PRE(posix_spawn) on MacOS: this is running in the parent and
(on MacOS) is a single syscall similar to a fork+exec.
On linux, posix_spawn is implemented using 2 syscalls
(fork followed by exec).

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

13 years agofix n-i-bz vgdb ptrace calls wrong on mips, causing blocked syscalls to fail
Philippe Waroquiers [Sat, 18 Aug 2012 11:06:04 +0000 (11:06 +0000)] 
fix n-i-bz vgdb ptrace calls wrong on mips, causing blocked syscalls to fail

(patch from Petar Jovanovic).

The mips specific code of vgdb.c was storing the arguments
at wrong places in the ptrace setreg. This caused the blocked syscall(s)
to return with an error rather than to be properly restarted.
With this commit, the gdbsrv tests are not blocking anymore
with Valgrind mips32 running on mips64 GNU/Linux.
vgdb is believed to be functional, even if process is blocked in a syscall.

The following tests are still failing
gdbserver_tests/mcbreak                  (stdout)
gdbserver_tests/mcbreak                  (stdoutB)
gdbserver_tests/mcbreak                  (stderrB)
gdbserver_tests/mcsignopass              (stderr)
gdbserver_tests/mcsignopass              (stdoutB)
gdbserver_tests/mcsigpass                (stderr)
gdbserver_tests/mcsigpass                (stdoutB)
gdbserver_tests/nlcontrolc               (stdoutB)
gdbserver_tests/nlsigvgdb                (stderr)
gdbserver_tests/nlsigvgdb                (stderrB)

Of the above, nlsigvgdb failure is still strange.
Others looks like "normal" differences due e.g. to mips specific gdb
behaviour and/or none/tests/faultstatus (re-used in gdbsrv tests)
behaving differently on mips.

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

13 years agoDocument in NEWS the fix committed in revision 12879.
Philippe Waroquiers [Sat, 18 Aug 2012 10:02:32 +0000 (10:02 +0000)] 
Document in NEWS the fix committed in revision 12879.

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

13 years agoFix 301281 valgrind hangs on OS X when the process calls system()
Philippe Waroquiers [Sat, 18 Aug 2012 09:50:27 +0000 (09:50 +0000)] 
Fix 301281 valgrind hangs on OS X when the process calls system()
This should fix the bug (but could not test it : no MacOSX).
See equivalent code in syswrap-generic.c and comment
in pub_tool_gdbserver.h:
// tid == 0 indicates to stop gdbserver and report to gdb
// that the valgrind-ified process has exited.

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

13 years agoOn Darwin, use __NR_poll_nocancel rather than __NR_poll, as per the
Julian Seward [Sat, 18 Aug 2012 06:45:07 +0000 (06:45 +0000)] 
On Darwin, use __NR_poll_nocancel rather than __NR_poll, as per the
comment at the top of the file.

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

13 years agoRemove memcheck support for IR op Iop_I16StoF32 which is unused.
Florian Krohm [Sat, 18 Aug 2012 02:44:49 +0000 (02:44 +0000)] 
Remove memcheck support for IR op Iop_I16StoF32 which is unused.
See also VEX r2471.

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

13 years agoRemove unused IR ops: Iop_I16StoF64, Iop_F32toI16S, and Iop_I16StoF32.
Florian Krohm [Sat, 18 Aug 2012 02:41:58 +0000 (02:41 +0000)] 
Remove unused IR ops: Iop_I16StoF64, Iop_F32toI16S, and Iop_I16StoF32.

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

13 years agoUpdate bug tracking status post release.
Julian Seward [Fri, 17 Aug 2012 09:10:37 +0000 (09:10 +0000)] 
Update bug tracking status post release.

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

13 years agoUpdate list of ignored files.
Florian Krohm [Thu, 16 Aug 2012 23:59:27 +0000 (23:59 +0000)] 
Update list of ignored files.

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

13 years agoFix a mnemonic
Florian Krohm [Thu, 16 Aug 2012 23:57:43 +0000 (23:57 +0000)] 
Fix a mnemonic

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

13 years agoFix n-i-bz shmat of a segment > 4Gb does not work
Philippe Waroquiers [Thu, 16 Aug 2012 19:40:52 +0000 (19:40 +0000)] 
Fix n-i-bz shmat of a segment > 4Gb does not work

Problem was created by get_shm_size returning an UInt rather
than a SizeT.

see http://sourceforge.net/mailarchive/message.php?msg_id=29682827

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

13 years agoFix a mixup. This never caused a problem because both fields have
Florian Krohm [Thu, 16 Aug 2012 00:11:20 +0000 (00:11 +0000)] 
Fix a mixup. This never caused a problem because both fields have
the same offset in the enclosing struct.

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

13 years agoUse -s USR1 instead of -10 to send SIGUSR1 signal
Philippe Waroquiers [Wed, 15 Aug 2012 13:27:23 +0000 (13:27 +0000)] 
Use -s USR1 instead of -10 to send SIGUSR1 signal
On mips32, 10 is SIGBUS. This was making all tests using
simulate_control_c looping for ever or a long time.

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

13 years agoVEX part Implement --vex-iropt-register-updates=sp-at-mem-access
Philippe Waroquiers [Tue, 14 Aug 2012 22:29:01 +0000 (22:29 +0000)] 
VEX part Implement --vex-iropt-register-updates=sp-at-mem-access

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

13 years agoImplement --vex-iropt-register-updates=sp-at-mem-access
Philippe Waroquiers [Tue, 14 Aug 2012 22:28:31 +0000 (22:28 +0000)] 
Implement --vex-iropt-register-updates=sp-at-mem-access

Option sp-at-mem-access can be used by tools which do not
need an up to date BP and IP at each mem access.
It is needed however to have SP up to date at each memory
access, as an up to date SP is needed to grow the stack in
m_signals.c

Tools massif, cachegrind and callgrind are using sp-at-mem-access
as default.
None tool could also use sp-at-mem-access but default is kept
to unwindregs-at-mem-access (similar to memcheck, drd, helgrind, exp-sgcheck).

exp-dhat, exp-bbv, lackey have not been looked at to see if they
could make use of sp-at-mem-access.

Validated on x86, amd64, ppc64 and s390x.

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

13 years agoParty on, dudes!
Julian Seward [Thu, 9 Aug 2012 15:51:55 +0000 (15:51 +0000)] 
Party on, dudes!

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

13 years ago--> 3.8.0 final
Julian Seward [Thu, 9 Aug 2012 15:06:36 +0000 (15:06 +0000)] 
--> 3.8.0 final

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

13 years ago--> 3.8.0-TEST3
Julian Seward [Wed, 8 Aug 2012 23:35:35 +0000 (23:35 +0000)] 
--> 3.8.0-TEST3

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

13 years agoMake the assembler-knows-POWER-DFP test a bit stricter, since it appears
Julian Seward [Wed, 8 Aug 2012 22:22:26 +0000 (22:22 +0000)] 
Make the assembler-knows-POWER-DFP test a bit stricter, since it appears
some older assemblers know 'dadd' but not 'dcffix', which also appears
in the DFP tests.

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

13 years agoSupport Ijk_TInval style exits on ARM, so that --smc-check= works on
Julian Seward [Wed, 8 Aug 2012 21:02:20 +0000 (21:02 +0000)] 
Support Ijk_TInval style exits on ARM, so that --smc-check= works on
ARM.  (Not that it's actually necessary, but still ..)

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