]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
12 years agoReplace strlen, index, strcmp in the AArch64 ld.so. (Why does it have
Julian Seward [Sun, 9 Mar 2014 09:44:32 +0000 (09:44 +0000)] 
Replace strlen, index, strcmp in the AArch64 ld.so.  (Why does it have
the soname "ld-linux-aarch64.so.1" and not "ld-linux.so.3" like all
the rest?)

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

12 years agoImplement a couple of backend artefacts needed by Memcheck on large
Julian Seward [Sun, 9 Mar 2014 09:41:56 +0000 (09:41 +0000)] 
Implement a couple of backend artefacts needed by Memcheck on large
applications:
  Iop_CmpNEZ64x2 expressions
  Ijk_NoRedir block terminators

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

12 years agoDo early writeback of the base register for the following instruction
Julian Seward [Sun, 9 Mar 2014 09:40:23 +0000 (09:40 +0000)] 
Do early writeback of the base register for the following instruction
forms, to stop Memcheck complaining about writes below the stack
pointer:
  str x3, [sp,#-16]!
  stp q0, q1, [sp,#-512]!

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

12 years agoEnable syscalls: sys_inotify_init1 sys_inotify_add_watch
Julian Seward [Sat, 8 Mar 2014 20:34:45 +0000 (20:34 +0000)] 
Enable syscalls: sys_inotify_init1 sys_inotify_add_watch
sys_inotify_rm_watch sys_fallocate sys_quotactl sys_pwrite64
sys_sysinfo sys_shmctl wrap_sys_shmat sys_shmdt

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

12 years ago* iselIntExpr_AMode_wrk: generate correct code for the case
Julian Seward [Sat, 8 Mar 2014 13:08:17 +0000 (13:08 +0000)] 
* iselIntExpr_AMode_wrk: generate correct code for the case
  "Sub64(expr,simm9)."

* handle 1Uto64(arbitrary-expression)

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

12 years agoMore test cases:
Julian Seward [Fri, 7 Mar 2014 22:54:19 +0000 (22:54 +0000)] 
More test cases:
xtn,xtn2
ushr 8h, 8h, #imm

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

12 years agoSupport extra instruction bits and pieces, enough to get Firefox started:
Julian Seward [Fri, 7 Mar 2014 22:52:19 +0000 (22:52 +0000)] 
Support extra instruction bits and pieces, enough to get Firefox started:
* more scalar int <-> FP conversions
* more vector integer narrowing
* a few more vector shift by imm cases
* FCVTAS (kludged)

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

12 years agoEnable the following syscalls: sys_eventfd2 sys_symlinkat sys_renameat
Julian Seward [Fri, 7 Mar 2014 22:48:50 +0000 (22:48 +0000)] 
Enable the following syscalls: sys_eventfd2 sys_symlinkat sys_renameat
sys_fstatfs sys_fsync sys_clock_getres sys_sched_getaffinity
sys_shmget sys_fadvise64

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

12 years agodrd/tests/thread_namedrd/tests/thread_name: Ensure mutex address uniqueness (see...
Bart Van Assche [Fri, 7 Mar 2014 14:38:14 +0000 (14:38 +0000)] 
drd/tests/thread_namedrd/tests/thread_name: Ensure mutex address uniqueness (see also #331847)

From: Ivo Raisr <ivosh@ivosh.net>

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

12 years agodrd/tests/sem_open: Change the semaphore name (#331839)
Bart Van Assche [Fri, 7 Mar 2014 07:45:43 +0000 (07:45 +0000)] 
drd/tests/sem_open: Change the semaphore name (#331839)

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

12 years agomips32/mips64: Fix the problem with VKI_ENOSYS and VKI_EOVERFLOW for mips32/64.
Dejan Jevtic [Tue, 4 Mar 2014 14:12:47 +0000 (14:12 +0000)] 
mips32/mips64: Fix the problem with VKI_ENOSYS and VKI_EOVERFLOW for mips32/64.

VKI_ENOSYS and VKI_EOVERFLOW don't have the same generic values for mips32/64.
We need to define these values for every Linux arch.

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

12 years agoupdated NEWS to state bug 329956 is fixed for the next release.
Carl Love [Mon, 3 Mar 2014 20:49:20 +0000 (20:49 +0000)] 
updated NEWS to state bug 329956 is fixed for the next release.

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

12 years agomips32: Fix the problem with reading the guest_FCSR register from the wrong guest...
Dejan Jevtic [Mon, 3 Mar 2014 14:13:37 +0000 (14:13 +0000)] 
mips32: Fix the problem with reading the guest_FCSR register from the wrong guest state.

When Valgrind isn't executed in mode64, register fcsr need to read from the VexGuestMIPS32State.

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

12 years agoAdd comprehensive testing for almost all supported load/store instructions.
Julian Seward [Mon, 3 Mar 2014 08:43:43 +0000 (08:43 +0000)] 
Add comprehensive testing for almost all supported load/store instructions.

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

12 years agoFix error in 64-bit and smaller load versions of
Julian Seward [Mon, 3 Mar 2014 08:42:16 +0000 (08:42 +0000)] 
Fix error in 64-bit and smaller load versions of
LDR/STR (immediate, SIMD&FP, unsigned offset)

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

12 years agoEnable sys_epoll_create1, sys_epoll_ctl, sys_epoll_pwait, sys_prctl.
Julian Seward [Sun, 2 Mar 2014 12:49:52 +0000 (12:49 +0000)] 
Enable sys_epoll_create1, sys_epoll_ctl, sys_epoll_pwait, sys_prctl.

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

12 years agoAdd many test cases from arm64.
Julian Seward [Sun, 2 Mar 2014 12:48:34 +0000 (12:48 +0000)] 
Add many test cases from arm64.

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

12 years agoImplement REV16, REV32, FCVTN, SHL (vector, immediate), NEG (vector)
Julian Seward [Sun, 2 Mar 2014 12:47:18 +0000 (12:47 +0000)] 
Implement REV16, REV32, FCVTN, SHL (vector, immediate), NEG (vector)

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

12 years agoUpdate; document missing test cases.
Julian Seward [Sat, 1 Mar 2014 11:27:59 +0000 (11:27 +0000)] 
Update; document missing test cases.

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

12 years agoAdd test cases for SIMD and FP instructions.
Julian Seward [Sat, 1 Mar 2014 11:27:18 +0000 (11:27 +0000)] 
Add test cases for SIMD and FP instructions.

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

12 years agoEnable the following syscalls, which are needed to make regtests
Julian Seward [Sat, 1 Mar 2014 11:24:42 +0000 (11:24 +0000)] 
Enable the following syscalls, which are needed to make regtests
in none/ work:
sys_ftruncate
sys_setitimer
sys_rt_sigsuspend
sys_rt_sigtimedwait
sys_mq_open
sys_mq_unlink
sys_semget
sys_semctl
sys_semtimedop
sys_semop
sys_listen
sys_accept
sys_process_vm_readv
sys_process_vm_writev

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

12 years agoFixes form arm64-linux.
Julian Seward [Sat, 1 Mar 2014 11:21:45 +0000 (11:21 +0000)] 
Fixes form arm64-linux.

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

12 years agoSupport arm64.
Julian Seward [Sat, 1 Mar 2014 11:20:33 +0000 (11:20 +0000)] 
Support arm64.

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

12 years agoRemove redundant FMOV (vector, immediate) case.
Julian Seward [Sat, 1 Mar 2014 11:19:45 +0000 (11:19 +0000)] 
Remove redundant FMOV (vector, immediate) case.
Minor comment fixes.
Fix bugs in {U,S}{MIN,MAX}V, {U,S}{MIN,MAX}, {S,U}SSHL

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

12 years agoSelect and emit insns for
Julian Seward [Sat, 1 Mar 2014 11:16:57 +0000 (11:16 +0000)] 
Select and emit insns for
Iop_ZeroHI64ofV128 Iop_Max8Sx16 Iop_Min8Sx16

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

12 years agomips32: Fpu guest registers are ULong and the initial values need to be
Dejan Jevtic [Thu, 27 Feb 2014 14:17:19 +0000 (14:17 +0000)] 
mips32: Fpu guest registers are ULong and the initial values need to be
extended.

Because we are supporting both big and little endian mips32 we need to
make sure that the initial values for the fpu registers are the same for both
endian.

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

12 years agowire up some more system calls on s390
Christian Borntraeger [Thu, 27 Feb 2014 13:46:02 +0000 (13:46 +0000)] 
wire up some more system calls on s390

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

12 years agoFill in a (very) few cases for get_otrack_shadow_offset_wrk on arm64.
Julian Seward [Thu, 27 Feb 2014 11:15:58 +0000 (11:15 +0000)] 
Fill in a (very) few cases for get_otrack_shadow_offset_wrk on arm64.
Apparently needed for generating some kinds of error messages, even
when not doing origin tracking, strangely enough.

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

12 years agoEnable a few more syscalls:
Julian Seward [Thu, 27 Feb 2014 11:14:19 +0000 (11:14 +0000)] 
Enable a few more syscalls:
sys_setpriority, sys_getpriority, sys_getresuid,
sys_getresgid, sys_recvfrom, sys_readahead

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

12 years agoImplement a few more integer instructions:
Julian Seward [Thu, 27 Feb 2014 11:10:19 +0000 (11:10 +0000)] 
Implement a few more integer instructions:
NOP
LDA{R,RH,RB}
STL{R,RH,RB}
RBIT

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

12 years agomips32: Add tests for mips32 floating point compare instructions.
Dejan Jevtic [Tue, 25 Feb 2014 15:26:52 +0000 (15:26 +0000)] 
mips32: Add tests for mips32 floating point compare instructions.

Tests that are testing mips instructions c.cond.s and c.cond.d have been added in none/tests/mips32.

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

12 years agomips32: Fix the problem with the floating point compare instruction on mips32.
Dejan Jevtic [Tue, 25 Feb 2014 15:25:49 +0000 (15:25 +0000)] 
mips32: Fix the problem with the floating point compare instruction on mips32.

This patch is fixing the problem with emitting Iop_CmpF64.
Problem was introduced while running Valgrind for mips with v8 javascript engine.

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

12 years agoThis fixes the shadow validity setup of SP,IA and FPC. The current
Christian Borntraeger [Mon, 24 Feb 2014 21:01:14 +0000 (21:01 +0000)] 
This fixes the shadow validity setup of SP,IA and FPC. The current
code misses a char * cast and thus uses a wrong pointer for memset.
This resulted in corruptions of a thread state for multi threaded
programs. After vex: r2818 the memset did overwrite the tid value
of a thread, making this bug visible.
Lets use the c structures instead of pointer arithmetics.

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

12 years agoBZ#331380 cont. Don't crash if evp->sigev_notify is invalid. Fix scalar test.
Mark Wielaard [Mon, 24 Feb 2014 15:09:21 +0000 (15:09 +0000)] 
BZ#331380 cont. Don't crash if evp->sigev_notify is invalid. Fix scalar test.

We check evp.sigev_notify_thread_id only if evp->sigev_notify has
SIGEV_THREAD_ID set. But before checking we need to make sure accessing
evp->sigev_notify is valid.

Fix memcheck/tests/x86-linux/scalar.stderr.exp output.
We now produce separate warnings for the 3 different fields.

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

12 years agoHandle IPv6 addresses when reporting open file descriptors.
Tom Hughes [Mon, 24 Feb 2014 15:06:06 +0000 (15:06 +0000)] 
Handle IPv6 addresses when reporting open file descriptors.

Based on a patch from Roger Light on BZ#175819.

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

12 years agoBZ#331380 Syscall param timer_create(evp) points to uninitialised byte(s)
Mark Wielaard [Mon, 24 Feb 2014 10:38:45 +0000 (10:38 +0000)] 
BZ#331380 Syscall param timer_create(evp) points to uninitialised byte(s)

Only check struct sigevent actually used by the kernel. If SIGEV_THREAD_ID
is set check sigev_notify_thread_id, otherwise don't.

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

12 years agoMake SGCheck fail with a meaningful message on unsupported platforms.
Florian Krohm [Sat, 22 Feb 2014 22:03:09 +0000 (22:03 +0000)] 
Make SGCheck fail with a meaningful message on unsupported platforms.
Fixes BZ #325856.

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

12 years agoAnnounce bug fix for BZ #331305
Florian Krohm [Sat, 22 Feb 2014 18:45:39 +0000 (18:45 +0000)] 
Announce bug fix for BZ #331305

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

12 years agoDo not use == as it is not portable. Use = instead.
Florian Krohm [Sat, 22 Feb 2014 18:38:32 +0000 (18:38 +0000)] 
Do not use == as it is not portable. Use = instead.

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

12 years agoBump __VALGRIND_MINOR__ to catch up with the release.
Florian Krohm [Sat, 22 Feb 2014 15:26:30 +0000 (15:26 +0000)] 
Bump __VALGRIND_MINOR__  to catch up with the release.

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

12 years agoAvoid "let" which isn't portable.
Florian Krohm [Sat, 22 Feb 2014 13:24:15 +0000 (13:24 +0000)] 
Avoid "let" which isn't portable.

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

12 years agoAccept glibc 2.19 as valid.
Mark Wielaard [Fri, 21 Feb 2014 21:13:55 +0000 (21:13 +0000)] 
Accept glibc 2.19 as valid.

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

12 years agoFix incorrect include, spotted by mjw.
Julian Seward [Fri, 21 Feb 2014 14:56:48 +0000 (14:56 +0000)] 
Fix incorrect include, spotted by mjw.

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

12 years agoUpdate.
Julian Seward [Fri, 21 Feb 2014 14:54:51 +0000 (14:54 +0000)] 
Update.

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

12 years ago* fix a bug in sys_clone that was causing threads to hang at exit
Julian Seward [Fri, 21 Feb 2014 14:51:14 +0000 (14:51 +0000)] 
* fix a bug in sys_clone that was causing threads to hang at exit
* enable enough syscalls to be able to run ssh and bash

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

12 years ago* add a kludgey fix for "mrs rT, dczid_el0"
Julian Seward [Fri, 21 Feb 2014 14:49:44 +0000 (14:49 +0000)] 
* add a kludgey fix for "mrs rT, dczid_el0"
* make ISB and DSB really generate memory barriers

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

12 years agomemcheck/tests/Makefile.am include filter_dw4 in dist_noinst_SCRIPTS.
Mark Wielaard [Fri, 21 Feb 2014 10:50:06 +0000 (10:50 +0000)] 
memcheck/tests/Makefile.am include filter_dw4 in dist_noinst_SCRIPTS.

The fix for BZ#331254 (r13814) added filter_dw4.
Make sure it is always included in the dist.

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

12 years agoEnable sys_ppoll, sys_kill, sys_socketpair.
Julian Seward [Thu, 20 Feb 2014 23:20:08 +0000 (23:20 +0000)] 
Enable sys_ppoll, sys_kill, sys_socketpair.

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

12 years agoarm64-linux: make restarting of syscalls interrupted by signals work
Julian Seward [Thu, 20 Feb 2014 23:18:32 +0000 (23:18 +0000)] 
arm64-linux: make restarting of syscalls interrupted by signals work

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

12 years agoFirst pass at implementation of load/store exclusive and
Julian Seward [Thu, 20 Feb 2014 17:43:38 +0000 (17:43 +0000)] 
First pass at implementation of load/store exclusive and
load/store exclusive w/ read-acquire/store-release:
LD{,A}X{R,RH,RB}
ST{,L}X{R,RH,RB}

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

12 years agoFirst attempt at supporting sys_clone.
Julian Seward [Thu, 20 Feb 2014 17:36:56 +0000 (17:36 +0000)] 
First attempt at supporting sys_clone.
Also enable: sys_exit, sys_nanosleep, sys_madvise.

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

12 years agoMake these buildable on arm64-linux.
Julian Seward [Thu, 20 Feb 2014 17:34:45 +0000 (17:34 +0000)] 
Make these buildable on arm64-linux.

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

12 years agoBug 331337 s390x WARNING: unhandled syscall: 326 (dup3)
Mark Wielaard [Thu, 20 Feb 2014 15:43:07 +0000 (15:43 +0000)] 
Bug 331337 s390x WARNING: unhandled syscall: 326 (dup3)

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

12 years agoImplement unchainXDirect_ARM64.
Julian Seward [Wed, 19 Feb 2014 17:42:59 +0000 (17:42 +0000)] 
Implement unchainXDirect_ARM64.

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

12 years agoRemoving fixed issue #326444 from the bug list
Petar Jovanovic [Wed, 19 Feb 2014 16:59:57 +0000 (16:59 +0000)] 
Removing fixed issue #326444 from the bug list

Issue #326444 has just been marked as fixed.

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

12 years agoRemove those bugs that are already reported in NEWS as being
Florian Krohm [Wed, 19 Feb 2014 13:41:14 +0000 (13:41 +0000)] 
Remove those bugs that are already reported in NEWS as being
fixed and have a FIXED status in Bugzilla.

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

12 years agomips32: Support for 64bit FPU on MIPS32 platforms.
Dejan Jevtic [Wed, 19 Feb 2014 11:57:22 +0000 (11:57 +0000)] 
mips32: Support for 64bit FPU on MIPS32 platforms.

Tests for 64bit FPU instructions on MIPS32 platforms.
Some mips instructions can cause SIGILL (Illegal instruction),
so we need to add SIGILL signal and a proper handler for that signal.

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

12 years agomips32: VEX Support for 64bit FPU on MIPS32 platforms.
Dejan Jevtic [Wed, 19 Feb 2014 11:56:29 +0000 (11:56 +0000)] 
mips32: VEX Support for 64bit FPU on MIPS32 platforms.

This patch is adding support for mips32 with 64bit FPU.
Assume that floating-point registers are 64 bits wide.

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

12 years agoFix BZ #327212. Check for absolute path name at the end of
Florian Krohm [Wed, 19 Feb 2014 11:16:00 +0000 (11:16 +0000)] 
Fix BZ #327212. Check for absolute path name at the end of
expand_file_name -- not at the beginning.

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

12 years agomips32/64: Remove default flags -mips32 and -mips64 from the Makefile.all.am.
Dejan Jevtic [Tue, 18 Feb 2014 16:40:25 +0000 (16:40 +0000)] 
mips32/64: Remove default flags -mips32 and -mips64 from the Makefile.all.am.

During configuration of Valgrind we check does the compiler support -march=mips32 and
-march=mips64. If compiler supports these flags we are using them as default flags for
mips32 and mips64.

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

12 years agoFilter out differences in structure size
Tom Hughes [Mon, 17 Feb 2014 22:59:42 +0000 (22:59 +0000)] 
Filter out differences in structure size

Patch from Ivo Raisr on BZ#331254

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

12 years agoUse pclose instead of fclose to close pipes opened with popen, which
Tom Hughes [Mon, 17 Feb 2014 22:44:52 +0000 (22:44 +0000)] 
Use pclose instead of fclose to close pipes opened with popen, which
also allows us to drop the loop that was supposed to give the child a
chance to exit as the pclose will wait properly for the child.

Fix from Ivo Raisr on BZ#331255

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

12 years agoUse sigjmp_buf with sig{set,long}jmp, not jmp_buf
Tom Hughes [Mon, 17 Feb 2014 22:32:15 +0000 (22:32 +0000)] 
Use sigjmp_buf with sig{set,long}jmp, not jmp_buf

Patch from Ivo Raisr on BZ#331257

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

12 years agoImplement more aarch64 vector insns:
Julian Seward [Mon, 17 Feb 2014 11:00:53 +0000 (11:00 +0000)] 
Implement more aarch64 vector insns:
CM{EQ,HI,HS,GE,GT,TST,LE,LT} (vector)
{EOR,BSL,BIT,BIF} (vector)
{USHR,SSHR} (vector, immediate)
{U,S}SHLL{,2}
INS (general)
FABD Vd,Vn,Vm

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

12 years agomips64: add missing file to EXTRA_DIST
Petar Jovanovic [Sat, 15 Feb 2014 03:38:57 +0000 (03:38 +0000)] 
mips64: add missing file to EXTRA_DIST

Add missing cvm_lx_ins.stdout.exp-BE to EXTRA_DIST.

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

12 years agomips64: update list of svn ignore files
Petar Jovanovic [Fri, 14 Feb 2014 18:57:29 +0000 (18:57 +0000)] 
mips64: update list of svn ignore files

Several executables had to be added to the svn ignore list for
none/tests/mips64 folder.

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

12 years agomips64: correct mistyped test name
Petar Jovanovic [Fri, 14 Feb 2014 18:09:03 +0000 (18:09 +0000)] 
mips64: correct mistyped test name

Minor name changed in .vgtest file.

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

12 years agomips64: add tests for load indexed instructions
Petar Jovanovic [Fri, 14 Feb 2014 17:50:42 +0000 (17:50 +0000)] 
mips64: add tests for load indexed instructions

Tests that should be executed on MIPS64 platforms that support lwx, ldx
and lbux.

Relevant VEX change - r2819.

Patch by Zahid Anwar, with some changes.

Related to Bugzilla issue 326444. It closes this issue now.

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

12 years agomips64: add support for load indexed instructions from DSP ASE
Petar Jovanovic [Fri, 14 Feb 2014 17:28:15 +0000 (17:28 +0000)] 
mips64: add support for load indexed instructions from DSP ASE

Handling lwx, ldx and lbux for MIPS-Cavium processors.

Patch by Zahid Anwar, with some changes.

Related to Bugzilla issue 326444.

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

12 years agoFix V-bit tester failures introduced by VEX r2815.
Florian Krohm [Fri, 14 Feb 2014 09:08:39 +0000 (09:08 +0000)] 
Fix V-bit tester failures introduced by VEX r2815.

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

12 years agoFix comments and code snippets that were making incorrect claims about
Florian Krohm [Fri, 14 Feb 2014 08:55:32 +0000 (08:55 +0000)] 
Fix comments and code snippets that were making incorrect claims about
the alignment requirement of the guest state, shadow areas, and register
spill area sizes.
The size of these areas ought to be a multiple of 16 bytes.

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

12 years agoUpdate list of ignored files.
Florian Krohm [Fri, 14 Feb 2014 08:30:28 +0000 (08:30 +0000)] 
Update list of ignored files.

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

12 years agomips64: Add BE version of cvm_lx_ins.stdout.exp
Petar Jovanovic [Thu, 13 Feb 2014 18:07:03 +0000 (18:07 +0000)] 
mips64: Add BE version of cvm_lx_ins.stdout.exp

Read-memory tests are endian sensitive.
Add BE version of cvm_lx_ins.stdout.exp that has been tested on
Cavium Octeon II in BE mode.

Related to Bugzilla issue 326444.

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

12 years agoarm64: implement the apply on all GP register.
Philippe Waroquiers [Wed, 12 Feb 2014 20:50:03 +0000 (20:50 +0000)] 
arm64: implement the apply on all GP register.
This is needed for leak search to work properly/not crash.

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

12 years agoMention that --vgdb=full bypasses the discard_translation gdbsrv problem
Philippe Waroquiers [Wed, 12 Feb 2014 20:48:18 +0000 (20:48 +0000)] 
Mention that --vgdb=full bypasses the discard_translation gdbsrv problem

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

12 years agoNo need to discard translation in gdbserver when --vgdb=full
Philippe Waroquiers [Wed, 12 Feb 2014 20:41:58 +0000 (20:41 +0000)] 
No need to discard translation in gdbserver when --vgdb=full
is given, as all instructions are in any case instrumented when
full is given.

This is (slightly) more efficient for full, and allows
to bypass the arm64 discard_translation problem caused by unchain
missing

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

12 years agoREADME.aarch64 : update status of gdbsrv for arm64
Philippe Waroquiers [Wed, 12 Feb 2014 00:02:05 +0000 (00:02 +0000)] 
README.aarch64 : update status of gdbsrv for arm64

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

12 years agoFix or implement various things to have V gdbsrv working on arm64
Philippe Waroquiers [Tue, 11 Feb 2014 23:50:16 +0000 (23:50 +0000)] 
Fix or implement various things to have V gdbsrv working on arm64
* better handle error recovery when calling remote_desc_activity
  (avoid exhausting safe fd range)
* fix small error in m_gdbserver/README_DEVELOPERS
* implemented mknod and poll syscall on mknodat and ppoll
  (mknod and poll are not directly supported on arm64)
* implement or fix various gdbsrv specific things needed for arm64
* changed assert condition in aspacemgr to VKI_SHMLBA >= VKI_PAGE_SIZE

With these changes, gdbserver integration seems to be basically working.
However, when breakpoints are placed or removed, discard_translations
causes an assert as the unchain has not been implemented yet for arm64 :

    --1118:1:gdbsrv   remove software_breakpoint at addr 0x400DE74 0x400DE74: _dl_debug_state (in /usr/lib64/ld-2.17.so)
    --1118:2:transtab   discard_translations(0x400de74, 2) req by m_gdbserver breakpoint remove
    --1118:2:transtab                       FAST, ec = 27

    vex: priv/main_main.c:1070 (LibVEX_UnChain): Assertion `0' failed.
    vex storage: T total 5480544 bytes allocated
    vex storage: P total 0 bytes allocated

    valgrind: the 'impossible' happened:
       LibVEX called failure_exit().
    ==1118==    at 0x3809E6B8: ??? (in /home/philippe/crossaarch64/trunk/Inst/lib/valgrind/none-arm64-linux)

    sched status:
      running_tid=1

What remains to be done:
  * arm64 xml register description files (allowing shadow registers to be looked at).
  * ptrace invoker : currently disabled for both arm and arm64
  * cpsr transfer to/from gdb to be looked at (see also arm equivalent code)

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

12 years ago- Handle KVM_CREATE_IRQCHIP, which does not take any parameter
Christian Borntraeger [Tue, 11 Feb 2014 15:15:31 +0000 (15:15 +0000)] 
- Handle KVM_CREATE_IRQCHIP, which does not take any parameter
  and returns 0 or -1.
- white space fixes around the KVM ioctls

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

12 years agos390: Fix s390_amode_for_guest_state. In general the offset relative
Florian Krohm [Tue, 11 Feb 2014 09:23:01 +0000 (09:23 +0000)] 
s390: Fix s390_amode_for_guest_state. In general the offset relative
to the guest state pointer may be more than the B12 addressing mode can
handle. Fall back and use a B20 addressing mode in those cases.

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

12 years agoIgnore executable. Should have been part of r13791.
Florian Krohm [Mon, 10 Feb 2014 17:52:35 +0000 (17:52 +0000)] 
Ignore executable. Should have been part of r13791.

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

12 years agoFix the ppc32 special-instruction magic sequence so it really does
Julian Seward [Mon, 10 Feb 2014 12:27:29 +0000 (12:27 +0000)] 
Fix the ppc32 special-instruction magic sequence so it really does
preserve the value of r0, as claimed.  Fixes #278808 (VEX side).

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

12 years agoFix the ppc32 special-instruction magic sequence so it really does
Julian Seward [Mon, 10 Feb 2014 12:26:12 +0000 (12:26 +0000)] 
Fix the ppc32 special-instruction magic sequence so it really does
preserve the value of r0, as claimed.  Fixes #278808 (Valgrind side).

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

12 years agoImplement more aarch64 vector insns:
Julian Seward [Mon, 10 Feb 2014 10:28:13 +0000 (10:28 +0000)] 
Implement more aarch64 vector insns:
{S,U}{MIN,MAX}  Vd.T, Vn.T, Vm.T (8bitx16lane variants)
{S,U}{MIN,MAX}V Vd.T, Vn.T, Vm.T (8bitx16lane variants)
FMOV (vector, immediate)
MOVI (vector, immediate)
FABS (vector)
FNEG (vector)
FMLA (vector)
FMLS (vector)
{AND,BIC,ORR,ORN} (vector)

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

12 years agoUpdate NEWS for VEX r2814
Tom Hughes [Sun, 9 Feb 2014 11:41:25 +0000 (11:41 +0000)] 
Update NEWS for VEX r2814

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

12 years agoAdd support for syscall on x86
Tom Hughes [Sun, 9 Feb 2014 11:40:20 +0000 (11:40 +0000)] 
Add support for syscall on x86

Patch from Ivo Raisr via BZ#330939 also fixes BZ#308729

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

12 years agoFix typo in poll wrapper
Tom Hughes [Sun, 9 Feb 2014 11:10:08 +0000 (11:10 +0000)] 
Fix typo in poll wrapper

Patch from Ivo Raisr via BZ#330941

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

12 years agodrd: Make the code added in r13792 portable
Bart Van Assche [Sun, 9 Feb 2014 09:10:14 +0000 (09:10 +0000)] 
drd: Make the code added in r13792 portable

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

12 years agodrd/tests/trylock: Make this test pass for glibc >= 2.18
Bart Van Assche [Sat, 8 Feb 2014 11:19:12 +0000 (11:19 +0000)] 
drd/tests/trylock: Make this test pass for glibc >= 2.18

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

12 years agodrd: Avoid that the drd/tests/pth_mutex_reinit test fails with glibc >= 2.18
Bart Van Assche [Sat, 8 Feb 2014 10:55:08 +0000 (10:55 +0000)] 
drd: Avoid that the drd/tests/pth_mutex_reinit test fails with glibc >= 2.18

Apparently with glibc >= 2.18 the value returned by pthread_mutexattr_gettype()
is not the same as the value passed to pthread_mutexattr_settype(). Add a
workaround for this glibc bug.

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

12 years agoThis commit is a fix for "Bug 330622 - Add test to regression suite for POWER
Carl Love [Sat, 8 Feb 2014 02:19:12 +0000 (02:19 +0000)] 
This commit is a fix for "Bug 330622 - Add test to regression suite for POWER
instruction: dcbzl" submitted by Anmol P. Paralkar <paralkar@freescale.com>

The patch adds the following files:

 none/tests/ppc64/data-cache-instructions.vgtest
 none/tests/ppc64/data-cache-instructions.c
 none/tests/ppc64/data-cache-instructions.stdout.exp
 none/tests/ppc64/data-cache-instructions.stderr.exp
 none/tests/ppc32/data-cache-instructions.stdout.exp
 none/tests/ppc32/data-cache-instructions.c
 none/tests/ppc32/data-cache-instructions.vgtest
 none/tests/ppc32/data-cache-instructions.stderr.exp
 tests/power_insn_available.c

The following files are modified:

 none/tests/ppc32/Makefile.am
 none/tests/ppc64/Makefile.am
 tests/Makefile.am

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

12 years agoFix V-bit tester failures introduced by VEX r2812.
Florian Krohm [Thu, 6 Feb 2014 18:53:30 +0000 (18:53 +0000)] 
Fix V-bit tester failures introduced by VEX r2812.

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

12 years agoImplement a few more vector aarch64 insns:
Julian Seward [Thu, 6 Feb 2014 12:57:58 +0000 (12:57 +0000)] 
Implement a few more vector aarch64 insns:
LD1 {vT.8h}, [xN|SP], #16
LD1 {vT.16b}, [xN|SP], #16
ST1 {vT.4h}, [xN|SP], #8
MUL  Vd.T, Vn.T, Vm.T
PMUL Vd.T, Vn.T, Vm.T  (fe only)
MLA  Vd.T, Vn.T, Vm.T
MLS  Vd.T, Vn.T, Vm.T
UMOV Xd/Wd, Vn.Ts[index]
SMOV Xd/Wd, Vn.Ts[index]

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

12 years agoCreate a list of all bugs reported after the 3.9.0 release
Julian Seward [Wed, 5 Feb 2014 14:00:16 +0000 (14:00 +0000)] 
Create a list of all bugs reported after the 3.9.0 release
(I think).

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

12 years agoShow a line in the output log when the client connects but the
Julian Seward [Wed, 5 Feb 2014 13:20:58 +0000 (13:20 +0000)] 
Show a line in the output log when the client connects but the
requested file is not found by the server.  This makes it easier to
diagnose client--server communications problems.

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

12 years agoUpdate.
Julian Seward [Wed, 5 Feb 2014 11:02:34 +0000 (11:02 +0000)] 
Update.

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

12 years agoImplement a few more vector aarch64 insns:
Julian Seward [Wed, 5 Feb 2014 11:01:19 +0000 (11:01 +0000)] 
Implement a few more vector aarch64 insns:
LD1 {vT.4s}, [xN|SP], #16
ADD Dd, Dn, Dm
SUB Dd, Dn, Dm
SMIN Vd.T, Vn.T, Vm.T
UMIN Vd.T, Vn.T, Vm.T
SMAX Vd.T, Vn.T, Vm.T
UMAX Vd.T, Vn.T, Vm.T
SMINV Vd.T, Vn.T, Vm.T
UMINV Vd.T, Vn.T, Vm.T
SMAXV Vd.T, Vn.T, Vm.T
UMAXV Vd.T, Vn.T, Vm.T
DUP Vd.T, Rn
FADD/FSUB/FMUL/FDIV32x4

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

12 years agomips64: Add tests that cover Cavium-specific load indexed instructions
Petar Jovanovic [Fri, 31 Jan 2014 12:49:22 +0000 (12:49 +0000)] 
mips64: Add tests that cover Cavium-specific load indexed instructions

Tests for lhux, lwux, and lbx for Cavium Octeon II.

Patch by Zahid Anwar, with changes.

Related to Bugzilla issue 326444.

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

12 years agomips64: Support for Cavium-specific load indexed instructions
Petar Jovanovic [Fri, 31 Jan 2014 12:14:20 +0000 (12:14 +0000)] 
mips64: Support for Cavium-specific load indexed instructions

Support for lhux, lwux, lbx for Cavium.

Patch by Zahid Anwar, with style changes.

Related to Bugzilla issue 326444.

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

12 years agoAdd support for the clock_adjtime system call.
Tom Hughes [Thu, 30 Jan 2014 22:33:02 +0000 (22:33 +0000)] 
Add support for the clock_adjtime system call.

Based on a patch from Stefan Sørensen on BZ#330469.

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