17 Commits

Author SHA1 Message Date
Petar Jovanovic
192c1673c7 mips: update tests to compile for nanoMIPS
Update the tests so they can be compiled for nanoMIPS.

Patch by Dimitrije Nikolic and Aleksandra Karadzic.
2019-12-31 15:56:23 +00:00
Petar Jovanovic
23ac24e19b mips: acquire exact page size using sysconf for unit_libcbase
Set exact value of VKI_PAGE_SIZE by calling sysconf(_SC_PAGESIZE).
This should set a correct value to this variable on MIPS systems with
different page sizes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15817
2016-02-27 00:38:38 +00:00
Florian Krohm
56e0f1ed28 As pointed out by GCC 5.1 macro arguments ought to be paranthesized
when referenced. Previously CHECK(a && b) would expand to !a && b
which clearly was not the intention.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15470
2015-08-02 19:31:14 +00:00
Carl Love
914f75de32 This commit is for Bugzilla 334384. The Bugzilla contains patch 1 of 3
to add PPC64 LE support.  The other two patches can be found in Bugzillas
334834 and 334836.  The commit does not have a VEX commit associated with it.

POWER PC, add initial Little Endian support

The IBM POWER processor now supports both Big Endian and Little Endian.
This patch renames the #defines with the name ppc64 to ppc64be for the BE
specific code.  This patch adds the Little Endian #define ppc64le to the

Additionally, a few functions are renamed to remove BE from the name if the
function is used by BE and LE. Functions that are BE specific have BE put
in the name.

The goals of this patch is to make sure #defines, function names and
variables consistently use PPC64/ppc64 if it refers to BE and LE,
PPC64BE/ppc64be if it is specific to BE, PPC64LE/ppc64le if it is LE
specific.  The patch does not break the code for PPC64 Big Endian.

The test files memcheck/tests/atomic_incs.c, tests/power_insn_available.c
and tests/power_insn_available.c are also updated to the new #define
definition for PPC64 BE.

Signed-off-by: Carl Love <carll@us.ibm.com>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14238
2014-08-07 23:17:29 +00:00
Florian Krohm
3b541640b8 Factor out VG_(exit_now) to contain the syscall incantation to terminate
the process. Make ML_(am_exit) and VG_(exit) use it, thereby avoiding 
double maintenance.
Introduce libcbase_assert macro and use it in VG_(strncpy_safely) to 
document the case that function cannot handle.
Add stub functions to memcheck/tests/unit_libcbase.c to satisfy new
dependencies.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14185
2014-07-24 12:46:28 +00:00
Julian Seward
5f800d9f15 Make these buildable on arm64-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13821
2014-02-20 17:34:45 +00:00
Florian Krohm
b87aa67392 Final patch for Char/HChar mixups.
Remove -Wno-pointer-sign from configure.in.
Fixes 273227.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13125
2012-11-18 00:36:15 +00:00
Florian Krohm
d0aa69c331 Fix more Char/HChar mixups. Closing in...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13119
2012-11-10 22:29:54 +00:00
Bart Van Assche
31a228d817 memcheck/tests/unit_libcbase.c: Convert from old-style gcc designated
initializers to C99-style designated initializers. According to the gcc manual,
the former syntax is obsolete since gcc 2.5
(see also http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Designated-Inits.html).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12113
2011-10-07 09:45:14 +00:00
Nicholas Nethercote
131ab00744 Merged non-Darwin-specific parts of r9397,r9423,r9490, 9461, 9462 from the
DARWIN branch.  A big ugly DARWIN/trunk sync commit, mostly to do with
changing the representation of SysRes and vki_sigset_t.  Functionality of
the trunk shouldn't be changed by it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9876
2009-05-18 02:12:08 +00:00
Nicholas Nethercote
3bd63f485c Make the VKI_PAGE_SIZE conditional match that in m_vki.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9276
2009-02-26 21:17:39 +00:00
Bart Van Assche
f0f7230433 Builds again on powerpc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9274
2009-02-26 13:21:50 +00:00
Nicholas Nethercote
8699ace5ae rename a function
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9272
2009-02-26 04:02:03 +00:00
Nicholas Nethercote
8e58e8f934 Avoid a warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9271
2009-02-26 03:56:48 +00:00
Nicholas Nethercote
3a36379dcf Add more testing to memcheck/tests/unit_libcbase.c.
Remove VG_(strcmp_ws) and VG_(strncmp_ws);  they're no longer needed by CLO
handling, and they're not much use elsewhere.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9270
2009-02-26 03:52:35 +00:00
Nicholas Nethercote
6ddf479d41 Merged part of r9234 (unit_libcbase improvements) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9235
2009-02-23 04:16:56 +00:00
Nicholas Nethercote
f6b278a3fc Forgot to add this file in the last commit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9205
2009-02-20 06:37:52 +00:00