10224 Commits

Author SHA1 Message Date
Dejan Jevtic
f569a8ac2c mips32: typo error fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13552
2013-09-16 10:48:25 +00:00
Petar Jovanovic
567ed9419a mips32/mips64: rename mips32_features to mips_features
As this file is now detecting mips64/Cavium boards, we are renaming it to
reflect that. The functional change is that mips_features now can detect
Cavium board and allow Cavium-specific tests to be run.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13551
2013-09-15 22:49:01 +00:00
Petar Jovanovic
6303a18f51 mips: flush the cache in perf/bigcode.c
MIPS needs to flush the cache after memcpy in perf/bigcode.c.
Otherwise, the executed code will likely be wrong.

This fixes issues with bigcode test on some MIPS platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13550
2013-09-15 22:16:38 +00:00
Florian Krohm
a6c7a2893c Fix coregrind header files such that they can be included without
having to worry what other header files may have to be included
beforehand.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13549
2013-09-15 13:54:34 +00:00
Florian Krohm
5c4ba95a27 Fix inclusion of header files in coregrind. No pub_tool_*.h should be
included here.
Added pub_core_poolalloc.h and renamed pub_tool_inner.h to pub_core_inner.h.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13548
2013-09-15 10:42:26 +00:00
Florian Krohm
de4c6ffc54 Fix include guard.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13547
2013-09-15 09:56:18 +00:00
Florian Krohm
e4c80fed1e Move a function and its prototype VG_(malloc_effective_client_redzone_size)
to a conceptually better place.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13546
2013-09-15 09:18:03 +00:00
Philippe Waroquiers
14c1c10305 clarify that vg-in-place cannot be used as an outer in outer/inner setup
If you use a vg-in-place outer, then you obtain errors such as:
valgrind: mmap(0x38000000, 3293184) failed in UME with error 22 (Invalid argument).
valgrind: this can be caused by executables with very large text, data or bss segments.

What must be used is the "make install"-ed valgrind



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13545
2013-09-12 21:12:24 +00:00
Carl Love
6f2f615e04 The Power ISA 2.07 document includes a correction to the description for the
behavior of the xscvspdp instruction, indicating that if the source argument
is a SNaN, it is first changed to a QNaN before being converted from
single-precision to double-precision. This updated information about the
xscvspdp instruction exposed a bug in the VEX implementation for that
instruction and also a bug in the testing for all instructions having
special behavior for single-precision SNaN arguments.

The VEX code fix for this issue is r2760.

This patch fixes the test cases for the ISA 2.07.

Testing bug: In several ppc[64] test cases, an array of special
double-precision floating point values is set up, and then all elements of
that array are copied via assignment to a single-precision array ('float'
type). Assignment from a double to a float works fine for all cases, except for
SNaN values. In the case of a SNaN, the source is changed to a QNaN and then
converted to single-precision. So the end result was that our array of floats
did not have an actual SNaN value, and, therefore, any instructions that had
special behavior for a single-precision SNaN input argument was never being
properly tested. This patch makes some functional changes in the following
testcases: 

  none/tests/ppc[32|64]/test_isa_2_06_part2.c
  none/tests/ppc[32|64]/test_isa_2_06_part3.c
  none/tests/ppc[32|64]/test_isa_2_07_part2.c

These changes impacted the associated *.stdout.exp files, so the patch also
updates those files. Additionally, there were several errors in testcase
source comments that misidentified QNaN and SNaN bit patterns which this patch
corrects.
 
See bugzilla 324816.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13544
2013-09-12 17:38:13 +00:00
Julian Seward
b8a6f9deb9 Update bug status.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13543
2013-09-12 16:02:37 +00:00
Florian Krohm
fd34bdeb29 Update list of ignored files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13542
2013-09-11 19:12:02 +00:00
Florian Krohm
c8b6aee25e Clarify wording.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13541
2013-09-11 18:43:26 +00:00
Dejan Jevtic
72bf3648cb mips64: add extra test cases in vbit-test for mips64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13540
2013-09-11 15:35:33 +00:00
Carl Love
51c2bfd3ce Bugzilla 323437, this is phase 2 in a series of patches adding support for IBM
Power ISA 2.07. The first bugzilla in the series was: 322294: Add initial
support for IBM Power ISA 2.07

Phase 2 VEX commit 2756 added support for the following new instructions to
VEX/priv/guest_ppc_toIR.c:
 - lq, stq, lqarx, stqcx.
 - mfvsrwz, mtvsrwz
 - fmrgew, fmrgow

This commit adds the corresponding test cases for these instructions.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13539
2013-09-10 19:01:00 +00:00
Florian Krohm
bc0d9e14cf Fix a bug introduced in the previous revision.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13538
2013-09-10 14:00:45 +00:00
Carl Love
44901807b3 The existing overflow detection in VEX/priv/guest_ppc_toIR.c/set_XER_OV_64()
under the case PPCG_FLAG_OP_MULLW: does not apply to the mulldo as we need to
detect overflow when performing a Multiply Low Doubleword (not Multiply Low
Word). Hence, we added a new enumeration value PPCG_FLAG_OP_MULLD in
VEX/priv/guest_ppc_defs.h and a corresponding new case under which the
computation for detecting overflow for mulldo/mulldo. is added in
set_XER_OV_64(). The tests have been added to: none/tests/ppc32/jm-insns.c

Vex commit 2754 for the source code fix

This commit adds the test cases.

Bugzilla 324594, submitted by Anmol P. Paralkar

Patch reviewed and tested by Carl Love


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13537
2013-09-06 22:29:55 +00:00
Florian Krohm
141c99dd09 Update list of ignored files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13536
2013-09-06 15:03:36 +00:00
Carl Love
f356faf958 Oops, forgot to add the new files before the commit for r13534.
Bugzilla 324518

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13535
2013-09-05 21:22:37 +00:00
Carl Love
bbe72ab090 The current VEX code is not properly handling a non-zero TH field in the
dcbt instruction, which is valid for several forms of data cache block
touch instructions.  The VEX commit 2761 fixed the missing support in
VEX/priv/guest_ppc_toIR.c.  This commit adds tests for the the non-zero
fields to the test cases for 32 and 64-bit modes.

Bugzilla 324518

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13534
2013-09-05 19:50:41 +00:00
Carl Love
e3568e0210 The flag for compiling test none/tests/ppc32/test_isa_2_07_part2.c was
incorrectly set to FLAG_M64 instead of FLAG_M32.  Fixed the flag.  The 
issue was reported in Bugzilla 324546.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13533
2013-09-05 17:59:03 +00:00
Philippe Waroquiers
6e3bb2af58 Fix 324514 gdbserver monitor cmd output behaviour consistency + allow user
to put a "marker" msg in process log output

* v.info n_errs_found accepts optional msg, added in the output of
   the monitor command.

* use VG_(printf) rather than VG_(gdb_printf) when output of command
  should be redirected according to v.set gdb_output|log_output|mixed_output

* also avoid calling gdb_printf in output sink processing
  to output zero bytes, as gdb_printf expects to have a null terminated
  string, which is not ensured when 0 bytes have to be output.

* some minor reformatting (replace char* xxx by char *xxx).




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13532
2013-09-04 21:42:43 +00:00
Julian Seward
fa7163e50f Add a bunch of suppressions for 64-bit OSX 10.8 processes. This is a
huge kludge in that the right fix is to write proper syscall wrappers
for the new threading syscalls in 10.8, but that hasn't happened yet.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13531
2013-09-04 07:32:48 +00:00
Julian Seward
1e4c2d926b PRE(workq_ops): handle KI_WQOPS_QUEUE_REQTHREADS without complaining.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13530
2013-09-04 07:31:10 +00:00
Julian Seward
d13136fcee check_uuid_matches: fix infinite loop following rewrite of this
function during big overhaul of the debuginfo reader earlier this
year.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13529
2013-09-04 06:17:44 +00:00
Mark Wielaard
363d971e32 Reuse (shared) cachegrind source files in callgrind directly.
The callgrind Makefile.am had a common sources list that included
../cachegrind/cg_arch.c. This doesn't play well with automake and
subdir-objects. Especially make distclean was broken because some
.deps files were removed multiple times.

Just include the shared source file directly into the callgrind
source file that needs it (cg_arch.c in sim.c).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13528
2013-09-03 15:22:14 +00:00
Julian Seward
5d7649ffe9 Rename cg-arch.c to cg_arch.c so as to be consistent with other
filenames, including cg_arch.h :)  No functional change.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13527
2013-09-03 08:39:28 +00:00
Dejan Jevtic
63d3dd8351 mips32/mips64: Add tests for lwl and lwr for mips32 and mips64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13526
2013-09-02 15:35:12 +00:00
Julian Seward
c09895b8e3 MacOS only: fix somee compiler complaints about casting from pointers
and integers of a different size.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13525
2013-09-02 13:36:25 +00:00
Julian Seward
47dbd5a4ca Fixes and kludges (mostly the latter) needed to run graphical
apps on	  OSX 10.8:

* port_create_vanilla: deal with the fact that ports get looked
  up before they get registered in the allocated_ports list.  I
  think this is	 a side effect of ..

* .. various syscalls: add stub (no-op) wrappers



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13524
2013-09-02 13:07:16 +00:00
Julian Seward
187c2be40d Make wqthread_hijack work with the OSX 10.8 kernel.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13523
2013-09-02 13:02:58 +00:00
Julian Seward
a89859bded add_mapping_callback on Darwin: also produce a ChangedSeg record in
the case where V's record of the permissions for a range differs from
that of the kernel's.  The lack of this caused synthetic segfaults
("can't translate here") from m_translate on OSX 10.8 for pretty much
any graphical .



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13522
2013-09-02 13:02:02 +00:00
Julian Seward
a93f4ff9c9 Rename configure.in to configure.ac to make more recent auto*s happy,
and also add the automake option "subdir-objects".  As advisde by
Tromey and Mjw.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13521
2013-09-02 12:44:52 +00:00
Florian Krohm
6855a0a148 s390: Fix Makefile.am. Essentially, revert r13317 which does not seem to
be necessary. The additional DIST_INSN_TESTS variable was causing problems
in check_makefile_consistecy which reported false errors. I suspect this
is because my awk is mawk and not gawk.
Also add dfp_utils.h which was missing in the tarball from 'make dist'.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13520
2013-08-31 16:02:15 +00:00
Philippe Waroquiers
a44190db93 Fix misleading comment, as VG_(releasePA) is deleting the PA when zero ref count
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13519
2013-08-30 15:48:16 +00:00
Florian Krohm
c5fd4773ed Add missing headers and such so that 'make dist' works again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13518
2013-08-29 17:59:27 +00:00
Dejan Jevtic
6fa3517d39 mips64: Add some test cases for mips64 in vbit-test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13517
2013-08-28 10:03:45 +00:00
Florian Krohm
089f1ef803 When XML mode is selected messages from VALGRIND_PRINTF and friends
should go to the XML stream not stderr.  Fixes BZ 322807.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13516
2013-08-27 15:17:53 +00:00
Mark Wielaard
acbf92d975 Support mmxext (integer sse) subset on i386 (athlon). Bug #323713
Some processors like the AMD Athlon "Classic" support mmxext,
a sse1 subset. This subset is not properly detected by VEX.
The subset uses the same encoding as the sse1 instructions.

The subset is described at:
  http://support.amd.com/us/Embedded_TechDocs/22466.pdf
  https://en.wikipedia.org/wiki/3DNow!#3DNow.21_extensions

Detects mmxext subset from cpuid information (and enables it
when full sse1 is found). Also fixes the prereq of
none/tests/x86/insn_mmxext.vgtest so that it also runs when
full sse1 (and not just the mmxext subset) is found.
It already passed on such configurations. With the VEX patch
(r2745) it also passes with just the mmxext subset.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13515
2013-08-27 10:23:23 +00:00
Mark Wielaard
25212a2525 Test cases for 128-bit --partial-loads-ok=no|yes on x86 need a prereq on sse.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13514
2013-08-27 10:16:21 +00:00
Bart Van Assche
045b8ab23e valgrind.h: Add MinGW64 support
From: Makoto Kato <m_kato@ga2.so-net.ne.jp>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13513
2013-08-25 06:10:24 +00:00
Bart Van Assche
4b22f8042d Update Subversion ignore lists
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13512
2013-08-24 18:00:27 +00:00
Bart Van Assche
038beeccc0 drd: Fix bug #323905
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13511
2013-08-24 17:53:00 +00:00
Bart Van Assche
de32048275 coregrind/m_debuginfo: Add VG_(DebugInfo_get_bss_avma)() and VG_(DebugInfo_get_bss_size)()
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13510
2013-08-24 17:52:26 +00:00
Bart Van Assche
46135647c9 drd: Add command-line option --trace-sectsuppr
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13509
2013-08-24 17:51:18 +00:00
Bart Van Assche
d73260d5b0 drd/tests/concurrent_close: Add
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13508
2013-08-24 17:50:38 +00:00
Dejan Jevtic
420374fad9 mips32: Fix a problem with gdb invoker.
This patch fixes the endian issue with gdb invoker on mips32
big endian. Now we are using pointer to long long and
we don't need to sign extend registers. On mips32 o32 abi
we need to make extra stack space when we are calling
function.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13507
2013-08-22 06:04:08 +00:00
Carl Love
5ee7af623f The file tests/ppc32/power_ISA2_05.stdout.exp_Without_FPPO was a link
to file tests/ppc64/power_ISA2_05.stdout.exp_Without_FPPO.  That was a 
commit error as the output for ppc32 and ppc64 are different.  Replaced
the link with the correct real file of expected results.  See bugzilla
81535.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13506
2013-08-21 19:47:19 +00:00
Carl Love
75b1670dcb The file tests/ppc32/power_ISA2_05.stdout.exp_Without_FPPO was a link
to file tests/ppc64/power_ISA2_05.stdout.exp_Without_FPPO.  That was a 
commit error as the output for ppc32 and ppc64 are different.  Remove
the file and commit to remove the link.

See bugzilla 81535.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13505
2013-08-21 19:46:50 +00:00
Mark Wielaard
4c915d378b Accept glibc 2.18 as valid.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13504
2013-08-21 14:47:52 +00:00
Julian Seward
2cdb43b1fe Minor tidying of the generalised V128/V256 shadow helper returns
that landed in r13500.  No functional change.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13503
2013-08-18 10:20:22 +00:00