]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
13 years agoxen: include arg struct field names when marking memory as read.
Bart Van Assche [Mon, 15 Oct 2012 18:46:08 +0000 (18:46 +0000)] 
xen: include arg struct field names when marking memory as read.

Makes it easier to figure out what was not initialised.

Thanks, once again, to Julien Grall.

From: Ian Campbell <ian.campbell@citrix.com>

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

13 years agoxen: Remove cast of ARG* to unsigned int before pointer conversion.
Bart Van Assche [Mon, 15 Oct 2012 18:45:28 +0000 (18:45 +0000)] 
xen: Remove cast of ARG* to unsigned int before pointer conversion.

This is pretty dodgy on 64 bit systems.

Thanks to Julien Grall.

From: Ian Campbell <ian.campbell@citrix.com>

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

13 years agoxen: adding missing break.
Bart Van Assche [Mon, 15 Oct 2012 18:44:59 +0000 (18:44 +0000)] 
xen: adding missing break.

Thanks to Julien Grall.

From: Ian Campbell <ian.campbell@citrix.com>

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

13 years agoxen: Useful messages for sys/domctl interface_version mismatch
Bart Van Assche [Mon, 15 Oct 2012 18:44:18 +0000 (18:44 +0000)] 
xen: Useful messages for sys/domctl interface_version mismatch

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

13 years agoadd vgtest file
Christian Borntraeger [Mon, 15 Oct 2012 14:21:22 +0000 (14:21 +0000)] 
add vgtest file

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

13 years agomake use of opcodes.h. The is part of extended immediate facility
Christian Borntraeger [Mon, 15 Oct 2012 14:20:46 +0000 (14:20 +0000)] 
make use of opcodes.h. The is part of  extended immediate facility

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

13 years agocheck in ltg jhe fix. Fixes https://bugs.kde.org/show_bug.cgi?id=308427
Christian Borntraeger [Mon, 15 Oct 2012 14:03:20 +0000 (14:03 +0000)] 
check in ltg jhe fix. Fixes https://bugs.kde.org/show_bug.cgi?id=308427

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

13 years agoAdd testcase for checking the ltg + jhe handling
Christian Borntraeger [Mon, 15 Oct 2012 14:01:31 +0000 (14:01 +0000)] 
Add testcase for checking the ltg + jhe handling

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

13 years agofix 308321 testsuite memcheck filter interferes with gdb_filter
Philippe Waroquiers [Sun, 14 Oct 2012 18:16:41 +0000 (18:16 +0000)] 
fix 308321 testsuite memcheck filter interferes with gdb_filter

Patch from Mark Wielaard.

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

13 years agoFix some more Char / HChar mixups
Florian Krohm [Sun, 14 Oct 2012 16:45:23 +0000 (16:45 +0000)] 
Fix some more Char / HChar mixups

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

13 years agoUpdate list of ignored files.
Florian Krohm [Sun, 14 Oct 2012 16:43:45 +0000 (16:43 +0000)] 
Update list of ignored files.

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

13 years agoFix compile errors following function prototype change.
Florian Krohm [Sun, 14 Oct 2012 02:58:42 +0000 (02:58 +0000)] 
Fix compile errors following function prototype change.

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

13 years agoChar/ HChar cleanup: The various panic and printf-like functions
Florian Krohm [Sun, 14 Oct 2012 00:16:28 +0000 (00:16 +0000)] 
Char/ HChar cleanup: The various panic and printf-like functions
all take const HChar * arguments.
__FILE__ and __func__ expand into string literals (or character
arrays initialised by them), as do strings created by the preprocessor
e.g. #stuff.
This change reduces the number of warnings from 17000+ to ~5500

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

13 years agoFix HChar / UCHar / Char mixups. VEX now compiles without
Florian Krohm [Sat, 13 Oct 2012 19:34:19 +0000 (19:34 +0000)] 
Fix HChar / UCHar / Char mixups. VEX now compiles without
warnings about assigning pointers to incompatible types.

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

13 years agoRough initial triage for bugs that appeared in the past month or so.
Julian Seward [Fri, 12 Oct 2012 22:49:50 +0000 (22:49 +0000)] 
Rough initial triage for bugs that appeared in the past month or so.

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

13 years agoSome wrong options silently ignored if starting with same letters as valid option
Philippe Waroquiers [Fri, 12 Oct 2012 21:46:55 +0000 (21:46 +0000)] 
Some wrong options silently ignored if starting with same letters as valid option

For example, options below are silently "accepted"+ignored:
  valgrind --profile-heaps=yes --max-stackframes=35 memcheck/tests/trivialleak
  valgrind --profile-heaps=oui --max-stackframes=3.141592654 memcheck/tests/trivialleak

Also fixed the on-line --help output for option --core-redzone-size

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

13 years agoUpdate.
Julian Seward [Thu, 11 Oct 2012 16:57:27 +0000 (16:57 +0000)] 
Update.

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

13 years agonewer versions of devel headers expose CLONE flags only with _GNU_SOURCE
Christian Borntraeger [Mon, 8 Oct 2012 20:35:13 +0000 (20:35 +0000)] 
newer versions of devel headers expose CLONE flags only with _GNU_SOURCE
defined

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

13 years agofix parent and child tid pointer mixup:
Christian Borntraeger [Mon, 8 Oct 2012 20:26:48 +0000 (20:26 +0000)] 
fix parent and child tid pointer mixup:
The linux kernel has parent tid pointer first.

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

13 years agoFix syntax error from r13028.
Petar Jovanovic [Mon, 8 Oct 2012 10:07:08 +0000 (10:07 +0000)] 
Fix syntax error from r13028.

Typo in r130128 broke the build on MIPS arch.

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

13 years agos390: Consolidate information about caches for older machines levels.
Florian Krohm [Mon, 8 Oct 2012 00:09:22 +0000 (00:09 +0000)] 
s390: Consolidate information about caches for older machines levels.
Unfortunately, there is only incomplete L2 data.

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

13 years agoThis is the 2nd installment of the cache info reorganisation.
Florian Krohm [Sun, 7 Oct 2012 21:59:42 +0000 (21:59 +0000)] 
This is the 2nd installment of the cache info reorganisation.
The host's VexArchInfo is passed to the tool instrumentation
functions. Purely mechanic patch.

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

13 years agoPass VexArchInfo to the instrumentation functions.
Florian Krohm [Sun, 7 Oct 2012 21:58:07 +0000 (21:58 +0000)] 
Pass VexArchInfo to the instrumentation functions.

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

13 years agoUse last-level cache for simulation. Even if there are more than
Florian Krohm [Sun, 7 Oct 2012 21:03:27 +0000 (21:03 +0000)] 
Use last-level cache for simulation. Even if there are more than
3 cache levels. Update documentation.

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

13 years agoFix compile error on ppc. Followup to r13028
Florian Krohm [Sun, 7 Oct 2012 20:27:38 +0000 (20:27 +0000)] 
Fix compile error on ppc. Followup to r13028

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

13 years agoThis patch is the first installment of the cache info reorganisation.
Florian Krohm [Sun, 7 Oct 2012 19:47:04 +0000 (19:47 +0000)] 
This patch is the first installment of the cache info reorganisation.
It's reorg only. No new cache autodetection stuff has been added.

coregrind
pub_tool_cpuid.h is removed as it is no longer exposed to tools.
Its contents has moved to pub_core_cpuid.h.
New file: coregrind/m_cache.c to contain the autodetect code for
cache configurations and define other cache characteristics that
cannot be autodetected (i.e. icaches_maintain_coherence). Most of
cg-arch/x86-amd64.c was moved here. The cache detection code for
x86-64 needs to be fixed to properly initialise VexCacheInfo. It
currently has cachegrind bias.
m_cache.c exports a single function (to coregrind):
   VG_(machine_get_cache_info)(VexArchInfo *vai)
This function is called from VG_(machine_get_hwcaps) after hwcaps have
been detected.

cachegrind
Remove cachegrind/cg-{ppc32,ppc43,arm,mips32,s390x,x86-amd64}.c
With the exception of x86/mamd64 those were only establishing a
default cache configuration and that is so small a code snippet that
a separate file is no longer warranted. So, the code was moved to
cg-arch.c. Code was added to extract the relevant info from
x86-amd64.
New function maybe_tweak_LLc which captures the code to massage the
LLc cache configuration into something the simulator can handle. This
was originally in cg-x86-amd64.c but should be used to all architectures.
Changed warning message about missing cache auto-detect feature
to be more useful. Adapted filter-stderr scripts accordingly.

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

13 years agoAdd data structures for cache representation to libvex.h:
Florian Krohm [Sun, 7 Oct 2012 19:44:40 +0000 (19:44 +0000)] 
Add data structures for cache representation to libvex.h:
VexCacheInfo, VexCache, and VexCacheKind.
VexArchInfo gets a VexCacheInfo member which LibVEX_default_VexArchInfo
initialises.

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

13 years agos390: This is a pre-patch for DFP support. It renames certain
Florian Krohm [Sun, 7 Oct 2012 15:42:37 +0000 (15:42 +0000)] 
s390: This is a pre-patch for DFP support. It renames certain
identifiers to explicitly refer to BFP, as there will be counterparts
in the future for DFP.
Patch by Maran <maranp@linux.vnet.ibm.com>.
Part of fixing #307113.

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

13 years agos390: Add a few more test from olden times.
Florian Krohm [Sun, 7 Oct 2012 04:00:48 +0000 (04:00 +0000)] 
s390: Add a few more test from olden times.

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

13 years agos390: Add a few more testcases from long time ago.
Florian Krohm [Sat, 6 Oct 2012 18:02:46 +0000 (18:02 +0000)] 
s390: Add a few more testcases from long time ago.

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

13 years agoCachegrind: use memory block numbers as tags.
Josef Weidendorfer [Fri, 5 Oct 2012 23:58:23 +0000 (23:58 +0000)] 
Cachegrind: use memory block numbers as tags.

This saves instructions in hot path, resulting in
3% improvement on average with perf benchmarks.

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

13 years agocachegrind: replace huge macro with inlined functions
Josef Weidendorfer [Fri, 5 Oct 2012 23:58:17 +0000 (23:58 +0000)] 
cachegrind: replace huge macro with inlined functions

Makes modifications simpler in the future, and
should result in the same code.

This patch was already discussed some time ago on the
dev mailing list, and did not make a difference on
various architectures.

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

13 years agoSome older kernels on s390 do not provide AT_PLATFORM.
Florian Krohm [Fri, 5 Oct 2012 23:29:38 +0000 (23:29 +0000)] 
Some older kernels on s390 do not provide AT_PLATFORM.
Add a prerequisite condition to make sure it's there.

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

13 years agoChange uname based arch-check to match machine hardware name in sgcheck.
Petar Jovanovic [Thu, 4 Oct 2012 23:53:03 +0000 (23:53 +0000)] 
Change uname based arch-check to match machine hardware name in sgcheck.

Some hardware platforms will return "unknown" for 'uname -i', so it is more
accurate and common to run 'uname -m' which returns machine hardware name.
This way, some platforms that do not support sgcheck will avoid running tests
for it.

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

13 years agoAllow a null pointer as the second argument to capget.
Tom Hughes [Thu, 4 Oct 2012 21:38:27 +0000 (21:38 +0000)] 
Allow a null pointer as the second argument to capget.
Patch from Mark Wielaard to fix BZ#307101.

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

13 years agoFilter out memcpy symbol versions from test results.
Tom Hughes [Thu, 4 Oct 2012 20:41:12 +0000 (20:41 +0000)] 
Filter out memcpy symbol versions from test results.
Patch from Mark Wielaard to fix BZ#307290.

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

13 years agoImplement a fake /proc/self/auxv file for linux systems.
Tom Hughes [Thu, 4 Oct 2012 20:27:38 +0000 (20:27 +0000)] 
Implement a fake /proc/self/auxv file for linux systems.
Patch from Mark Wielaard to fix BZ#253519.

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

13 years agoFix valt_load_address value in pkgconfig file.
Tom Hughes [Thu, 4 Oct 2012 20:01:50 +0000 (20:01 +0000)] 
Fix valt_load_address value in pkgconfig file.
Patch from Mark Wielaard to fix BZ#307729.

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

13 years agoUnbreak build on ppc64 (error: ‘EmWarn_PPC64_redir_underflow’ undeclared)
Philippe Waroquiers [Tue, 2 Oct 2012 20:35:21 +0000 (20:35 +0000)] 
Unbreak build on ppc64 (error: ‘EmWarn_PPC64_redir_underflow’ undeclared)

coregrind/m_translate.c does not compile on ppc64 (ppc32 maybe also?)
due to missing include file.
Note: libvex_emnote.h is unconditionally included, even if only
useful for ppc. I suppose we do not want #ifdef for that.

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

13 years agoAdd include file.
Florian Krohm [Sun, 30 Sep 2012 20:30:40 +0000 (20:30 +0000)] 
Add include file.

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

13 years agoMake header files compilable by itself to get two benefits:
Florian Krohm [Sun, 30 Sep 2012 20:30:17 +0000 (20:30 +0000)] 
Make header files compilable by itself to get two benefits:
- never have to worry about order of inclusion
- never have to figure out hidden dependencies in order to be
  able to include a file

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

13 years agoChange the return value of LibVEX_{Chain,UnChain,PatchProfInc}.
Florian Krohm [Sat, 29 Sep 2012 17:05:46 +0000 (17:05 +0000)] 
Change the return value of LibVEX_{Chain,UnChain,PatchProfInc}.
These functions now always return the address range that was
patched. Therefore, these functions no longer need knowledge
about I-cache coherency of the host system.

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

13 years agofix n-i-bz report error for vgdb snapshot requested before execution
Philippe Waroquiers [Mon, 24 Sep 2012 21:50:16 +0000 (21:50 +0000)] 
fix n-i-bz    report error for vgdb snapshot requested before execution
Massif does not accept to take snapshots of heap before execution has started.
So, if such a snapshot is requested (using vgdb and option --vgdb-error=0),
then such a snapshot must be refused rather than causing an assert.
(problem reported by dark_footix@yahoo.fr)

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

13 years agoUnbreak build on Mac_OS where __NR_mprotect is not defined.
Philippe Waroquiers [Mon, 24 Sep 2012 21:37:02 +0000 (21:37 +0000)] 
Unbreak build on Mac_OS where __NR_mprotect is not defined.
The test is not executed on Darwin but should compile.
(based on fix suggestion by Rich Coe)

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

13 years agofix 307155 filter_gdb should filter out syscall-template.S T_PSEUDO
Philippe Waroquiers [Mon, 24 Sep 2012 21:12:41 +0000 (21:12 +0000)] 
fix 307155 filter_gdb should filter out syscall-template.S T_PSEUDO

With some glibc version (e.g. on fedora 16), gdb output contains
a line with T_PSEUDO which should be filtered out.

Patch from Mark Wielaard.

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

13 years agos390: Add testcase for some integer comparison insns
Florian Krohm [Sun, 23 Sep 2012 00:42:49 +0000 (00:42 +0000)] 
s390: Add testcase for some integer comparison insns

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

13 years agoA new post.exp file that provides more details for overloaded-new test.
Petar Jovanovic [Fri, 21 Sep 2012 22:44:45 +0000 (22:44 +0000)] 
A new post.exp file that provides more details for overloaded-new test.

Valgrind for MIPS will give more details on the heap allocation functions
(operator new) than the existing post.exp presents.
This fixes massif/tests/overloaded-new for MIPS and likely other arch if they
provide the info.

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

13 years agoImplement some extra DW_OPs - more constants and some unary operators.
Tom Hughes [Fri, 21 Sep 2012 09:12:30 +0000 (09:12 +0000)] 
Implement some extra DW_OPs - more constants and some unary operators.
Patch from Mark Wielaard on BZ#307038.

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

13 years agoRename CfiOp to CfiBinop in preparation for adding unary operators.
Tom Hughes [Fri, 21 Sep 2012 09:04:27 +0000 (09:04 +0000)] 
Rename CfiOp to CfiBinop in preparation for adding unary operators.

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

13 years agoWhen processing DW_OP_plus_uconst make sure we record an add, not
Tom Hughes [Fri, 21 Sep 2012 08:57:46 +0000 (08:57 +0000)] 
When processing DW_OP_plus_uconst make sure we record an add, not
whatever binary operation we happened to see last.

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

13 years agoShorten the list of allocable registers for MIPS to fit Loongson MIPS32 mode.
Petar Jovanovic [Fri, 21 Sep 2012 00:06:14 +0000 (00:06 +0000)] 
Shorten the list of allocable registers for MIPS to fit Loongson MIPS32 mode.

In order to fit MIPS32 mode on Loongson and work around its issues, we avoid
use of odd single precision FP registers. This results in expected execution/
results of some FPU instructions on Loongson. Running FPU intensive tests has
not shown any performance decrease after the change is introduced.

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

13 years agoIn function irExpr_to_AvailExpr: Replace if-chains with a switch stmt.
Florian Krohm [Thu, 20 Sep 2012 02:40:57 +0000 (02:40 +0000)] 
In function irExpr_to_AvailExpr: Replace if-chains with a switch stmt.
This is a followup to r2524.

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

13 years agos390: Give function static linkage. Also avoids a compiler warning.
Florian Krohm [Thu, 20 Sep 2012 01:25:28 +0000 (01:25 +0000)] 
s390: Give function static linkage. Also avoids a compiler warning.

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

13 years agoUpdate due to file renaming in VEX r2541.
Florian Krohm [Thu, 20 Sep 2012 01:22:53 +0000 (01:22 +0000)] 
Update due to file renaming in VEX r2541.

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

13 years agos390: Rename host_s390_disasm.[ch] to s390_disasm.[ch] as they
Florian Krohm [Thu, 20 Sep 2012 01:22:10 +0000 (01:22 +0000)] 
s390: Rename host_s390_disasm.[ch] to s390_disasm.[ch] as they
are not really host specific.

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

13 years agoUpdate URLs for new Principles of Operations (SA22-7832-09).
Florian Krohm [Wed, 19 Sep 2012 16:43:30 +0000 (16:43 +0000)] 
Update URLs for new Principles of Operations (SA22-7832-09).

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

13 years agos390: Fix another harmless unop/binop field mixup.
Florian Krohm [Wed, 19 Sep 2012 16:01:21 +0000 (16:01 +0000)] 
s390: Fix another harmless unop/binop field mixup.
Spotted by Maran <maranp@linux.vnet.ibm.com>

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

13 years agoUpdate list of ignored files.
Florian Krohm [Wed, 19 Sep 2012 14:29:42 +0000 (14:29 +0000)] 
Update list of ignored files.

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

13 years agoAnother exp file for tc23_bogus_condwait.c.
Petar Jovanovic [Wed, 19 Sep 2012 12:48:09 +0000 (12:48 +0000)] 
Another exp file for tc23_bogus_condwait.c.

struct pthread_mutex_t is different on MIPS32 and x86_64, and thus passing a
bogus mutex pthread_cond_wait (line 72) will corrupt memory in a different way
on two platforms. This causes the subsequent call to pthread_cond_wait to fail
on MIPS and i386 but not on x86_64.

This change fixes helgrind/tests/tc23_bogus_condwait on MIPS and i386.

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

13 years agoAdding tc19_shadowmem.stderr.exp-mips32 to match different output.
Petar Jovanovic [Wed, 19 Sep 2012 11:51:31 +0000 (11:51 +0000)] 
Adding tc19_shadowmem.stderr.exp-mips32 to match different output.

Writing to a double is done via two store-word instructions on MIPS platforms.
Thus, Helgrind will report "Possible data race during write of size 4" twice on
subsequent locations on MIPS instead of a single "Possible data race during
write of size 8". New exp file is added to cover this case.
This fixes helgrind/tests/tc19_shadowmem on MIPS.

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

13 years agoUpdates for hfp insns.
Florian Krohm [Tue, 18 Sep 2012 21:15:54 +0000 (21:15 +0000)] 
Updates for hfp insns.

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

13 years agoAdd exp file for tc20_verifywrap due to different errno values on MIPS.
Petar Jovanovic [Tue, 18 Sep 2012 21:02:59 +0000 (21:02 +0000)] 
Add exp file for tc20_verifywrap due to different errno values on MIPS.

Different error numbers on MIPS require us to add an extra exp file for this
test. EDEADLK is 45 on MIPS (and not 35), and EOPNOTSUPP is 122 (and not 95).
Furthermore, sem_post will pass due to different implementation on MIPS (in
comparison to x86_64), and thus one error less has to be reported in the log.

This fixes helgrind/tests/tc20_verifywrap.

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

13 years agos390: Add testcases for srnm and srnmb. Update opcode status list.
Florian Krohm [Tue, 18 Sep 2012 20:25:23 +0000 (20:25 +0000)] 
s390: Add testcases for srnm and srnmb. Update opcode status list.

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

13 years agos390: Update IR generation for the SRNM insn.
Florian Krohm [Tue, 18 Sep 2012 20:24:38 +0000 (20:24 +0000)] 
s390: Update IR generation for the SRNM insn.
Add support for the SRNMB insn.
New emulation warning EmWarn_S390X_invalid_rounding.

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

13 years agoEnable wrappers for sys_settimeofday and sys_stime on MIPS.
Petar Jovanovic [Tue, 18 Sep 2012 17:19:36 +0000 (17:19 +0000)] 
Enable wrappers for sys_settimeofday and sys_stime on MIPS.

Enable wrappers for MIPS for the following two system calls:

- sys_settimeofday, and
- sys_stime.

Resolves https://bugs.kde.org/show_bug.cgi?id=306783
Patch contributed bederic M. <dark_footix@yahoo.fr>

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

13 years agoUpdate for 3.8.1.
Julian Seward [Tue, 18 Sep 2012 07:03:27 +0000 (07:03 +0000)] 
Update for 3.8.1.

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

13 years agoUpon successful run, remove temporary files.
Florian Krohm [Mon, 17 Sep 2012 21:20:06 +0000 (21:20 +0000)] 
Upon successful run, remove temporary files.

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

13 years agoAdd missing header files. Building from tarball works again.
Florian Krohm [Mon, 17 Sep 2012 18:54:44 +0000 (18:54 +0000)] 
Add missing header files. Building from tarball works again.

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

13 years agoUpdate.
Julian Seward [Mon, 17 Sep 2012 18:20:29 +0000 (18:20 +0000)] 
Update.

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

13 years agoFix inconsistent comment (== BRANCH_3_8 r12987)
Julian Seward [Mon, 17 Sep 2012 18:20:06 +0000 (18:20 +0000)] 
Fix inconsistent comment (== BRANCH_3_8 r12987)

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

13 years agoInclude autogen.sh in the tarfile. See #306310.
Julian Seward [Mon, 17 Sep 2012 17:17:00 +0000 (17:17 +0000)] 
Include autogen.sh in the tarfile.  See #306310.

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

13 years agoIntercept __GI_memmove on Linux. Fixes #306612.
Julian Seward [Mon, 17 Sep 2012 15:44:15 +0000 (15:44 +0000)] 
Intercept __GI_memmove on Linux.  Fixes #306612.

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

13 years agoAdd tests for: uqsub16 shadd16 uhsub8 uhsub16. See #304035.
Julian Seward [Mon, 17 Sep 2012 15:29:53 +0000 (15:29 +0000)] 
Add tests for: uqsub16 shadd16 uhsub8 uhsub16.  See #304035.

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

13 years agoHandle Iop_QSub16Ux2, needed in fix for #304035.
Julian Seward [Mon, 17 Sep 2012 15:28:46 +0000 (15:28 +0000)] 
Handle Iop_QSub16Ux2, needed in fix for #304035.

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

13 years agoAdd support for: uqsub16 shadd16 uhsub8 uhsub16. Fixes #304035.
Julian Seward [Mon, 17 Sep 2012 15:27:58 +0000 (15:27 +0000)] 
Add support for: uqsub16 shadd16 uhsub8 uhsub16.  Fixes #304035.

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

13 years agoAdd test cases for PCMPxSTRx variant $0x46. See #306664.
Julian Seward [Mon, 17 Sep 2012 13:43:57 +0000 (13:43 +0000)] 
Add test cases for PCMPxSTRx variant $0x46.  See #306664.

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

13 years agoFix PCMPxSTRx variant $0x46. Fixes #306664.
Julian Seward [Mon, 17 Sep 2012 13:40:11 +0000 (13:40 +0000)] 
Fix PCMPxSTRx variant $0x46.  Fixes #306664.

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

13 years agoSTM<c>.W <Rn>{!},<registers> (Encoding T2): allow the base register to
Julian Seward [Mon, 17 Sep 2012 11:37:43 +0000 (11:37 +0000)] 
STM<c>.W <Rn>{!},<registers> (Encoding T2): allow the base register to
appear in the list in any position, provided that writeback is not
selected.  Fixes #306297.

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

13 years agoUpdate.
Julian Seward [Mon, 17 Sep 2012 08:37:33 +0000 (08:37 +0000)] 
Update.

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

13 years agoBe more flexible by allowing the compile command to be prefixed,
Florian Krohm [Sat, 15 Sep 2012 19:31:07 +0000 (19:31 +0000)] 
Be more flexible by allowing the compile command to be prefixed,
e.g. ccache gcc whatever... This fixes bugzilla #252955.
Patch from  Stephen McCamant <smcc@CS.Berkeley.EDU>.

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

13 years agoAdding new exp file for tc18_semabuse in helgrind.
Petar Jovanovic [Sat, 15 Sep 2012 02:36:21 +0000 (02:36 +0000)] 
Adding new exp file for tc18_semabuse in helgrind.

The existing tc18_semabuse.stderr.exp expects that sem_post on a bogus semaphore
will fail, yet it does not on platforms such as MIPS or ARM. This is specific to
implementation of sem_post for i386/x86_64 that has some assumptions such as that
'private' field is not clobbered. This will eventually result in different
parameter passed to syscall and thus different output is encountered.
This change fixes helgrind/tests/tc18_semabuse for MIPS.

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

13 years agos390: Add a testcase for 32/64-bit bfp comparison insns.
Florian Krohm [Sat, 15 Sep 2012 02:22:46 +0000 (02:22 +0000)] 
s390: Add a testcase for 32/64-bit bfp comparison insns.

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

13 years agoSetup correct minimum malloc'd block size for MIPS.
Petar Jovanovic [Sat, 15 Sep 2012 01:04:06 +0000 (01:04 +0000)] 
Setup correct minimum malloc'd block size for MIPS.

Correct minimum malloc's block size for MIPS is 8.
This fixes massif/tests/big-alloc.

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

13 years agoMark revision 12964 to be merged in 3.8.1
Philippe Waroquiers [Fri, 14 Sep 2012 21:18:00 +0000 (21:18 +0000)] 
Mark revision 12964 to be merged in 3.8.1
(this revision fixes some missing files in the release tarball)

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

13 years agoAdd a test which checks the leak search recovery mechanism
Philippe Waroquiers [Fri, 14 Sep 2012 21:10:15 +0000 (21:10 +0000)] 
Add a test which checks the leak search recovery mechanism

The leak search must recover if unreadable pages are scanned.
This test creates such unreadable pages by doing non SIMD mprotect
syscall (not seen by the aspacemgr).

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

13 years agoUpdate for s390.
Florian Krohm [Fri, 14 Sep 2012 16:07:37 +0000 (16:07 +0000)] 
Update for s390.

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

13 years agoEnable pre-wrapper for sys_shutdown for MIPS.
Petar Jovanovic [Fri, 14 Sep 2012 13:12:37 +0000 (13:12 +0000)] 
Enable pre-wrapper for sys_shutdown for MIPS.

Small change to enable wrapper for sys_shutdown for MIPS.

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

13 years agoConstify the format string in a few printf-like functions.
Florian Krohm [Thu, 13 Sep 2012 20:21:42 +0000 (20:21 +0000)] 
Constify the format string in a few printf-like functions.

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

13 years agoAdjust the vbit tester to deal with shift operations that require
Florian Krohm [Thu, 13 Sep 2012 19:41:12 +0000 (19:41 +0000)] 
Adjust the vbit tester to deal with shift operations that require
an immediate constant as the shift amount. This is needed for
powerpc Iop_ShlD64 etc. What it basically means that we do not
iterate over the bits in the 2nd operand because there are no
V-bits to set. An immediate constant is always completely defined.
Fixes bugzilla #305948.

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

13 years agoTweak the IR injector so it can handle an immediate operand for
Florian Krohm [Thu, 13 Sep 2012 19:33:24 +0000 (19:33 +0000)] 
Tweak the IR injector so it can handle an immediate operand for
shift operations. This is needed for Iop_ShlD64 and the like on
powerpc where the shift amount is an immediate field in the insn.
Part of fixing bugzilla #305948.

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

13 years agoAvoid compiler warning.
Florian Krohm [Thu, 13 Sep 2012 15:58:01 +0000 (15:58 +0000)] 
Avoid compiler warning.

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

13 years agos390: Add testcase for bfp multiply-and-add/sub
Florian Krohm [Thu, 13 Sep 2012 15:09:53 +0000 (15:09 +0000)] 
s390: Add testcase for bfp multiply-and-add/sub

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

13 years agos390: Handle S390_BFP_NABS correctly for 128-bit arguments.
Florian Krohm [Thu, 13 Sep 2012 03:13:26 +0000 (03:13 +0000)] 
s390: Handle S390_BFP_NABS correctly for 128-bit arguments.

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

13 years agos390: Add testcase for square root and load positive/negative/complement.
Florian Krohm [Thu, 13 Sep 2012 03:04:23 +0000 (03:04 +0000)] 
s390: Add testcase for square root and load positive/negative/complement.
Tests are for 32/64-bit values only.

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

13 years agos390: Fix s390_emit_SFPC. That insn never required two registers.
Florian Krohm [Wed, 12 Sep 2012 19:52:16 +0000 (19:52 +0000)] 
s390: Fix s390_emit_SFPC. That insn never required two registers.

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

13 years agos390x: Testcases for floating point 32/64-bit. Related to VEX r2525.
Florian Krohm [Wed, 12 Sep 2012 19:40:14 +0000 (19:40 +0000)] 
s390x: Testcases for floating point 32/64-bit. Related to VEX r2525.

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

13 years agos390: Change the handling of S390_ROUND_PER_FPC (which indicates that the
Florian Krohm [Wed, 12 Sep 2012 19:38:42 +0000 (19:38 +0000)] 
s390: Change the handling of S390_ROUND_PER_FPC (which indicates that the
actual rounding mode is to be taken from the FPC register). Previously, this
was just mapped to S390_ROUND_NEAREST_EVEN, which obviously has correctness
issues.

First, we add a function get_bfp_rounding_mode_from_fpc to extract the
rounding mode from the guest FPC when building IR.
Second, have encode_bfp_rounding_mode invoke get_bfp_rounding_mode_from_fpc
whenever a S390_ROUND_PER_FPC is requested.
Third, in insn selection track whether (and if so to what value) the
rounding mode was set for the IRSB at hand. That way redundant assignments
can be avoided. This works well because the IR optimiser do a fine job
recognising end eliminating the expressions returned earlier from
get_bfp_rounding_more_from_fpc. So they get all mapped to the same IRTemp.
Note, VEX r2524 is essential to get this behaviour.
Fourth, remove the rounding more from the bfp_unop/binop/triop s390_insns.
Fifth, if the rounding mode can be set on the insn directly, prefer that
over setting it in the FPC and picking it up from there.

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

13 years agoAdd three new kinds of AvailExpr: Mttc, Mtct, and Mtcc
Florian Krohm [Wed, 12 Sep 2012 16:40:54 +0000 (16:40 +0000)] 
Add three new kinds of AvailExpr:  Mttc, Mtct, and Mtcc
namely for Mux0X expressions where one or both of the operands
is constant.

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

13 years agos390: Fix FOC width. It's 4 bytes not 8.
Florian Krohm [Tue, 11 Sep 2012 23:06:02 +0000 (23:06 +0000)] 
s390: Fix FOC width. It's 4 bytes not 8.

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

13 years agoFix 306310 3.8.0 release tarball missing some files
Philippe Waroquiers [Tue, 11 Sep 2012 19:53:01 +0000 (19:53 +0000)] 
Fix 306310 3.8.0 release tarball missing some files

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