]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
20 years agoRewrite VG_(translate) to make it clearer (it had grown like Topsy for
Julian Seward [Tue, 17 Jan 2006 01:57:33 +0000 (01:57 +0000)] 
Rewrite VG_(translate) to make it clearer (it had grown like Topsy for
a long time) and to use the new preable-generating callback facility
supported by Vex.  Use this to add support for R2 saving/restoring
needed for function replacement/wrapping on ppc64-linux.

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

20 years agoFurther refine ppc64-linux ELF symbol table reading to try to
Julian Seward [Tue, 17 Jan 2006 01:54:16 +0000 (01:54 +0000)] 
Further refine ppc64-linux ELF symbol table reading to try to
establish the toc base value (R2) needed for any given symbol.

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

20 years agoppc64-linux function wrapping support (does not work properly)
Julian Seward [Tue, 17 Jan 2006 01:49:37 +0000 (01:49 +0000)] 
ppc64-linux function wrapping support (does not work properly)

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

20 years agoTwo different sets of changes (hard to disentangle):
Julian Seward [Tue, 17 Jan 2006 01:48:46 +0000 (01:48 +0000)] 
Two different sets of changes (hard to disentangle):

* Remove from Vex all knowledge about function wrapping.  All the IR
  trickery needed can be done on the Valgrind side, by giving
  LibVEX_Translate yet another callback.  This one is called just
  before any instructions are disassembled into IR, allowing Valgrind
  to insert its own IR preamble if it wants.  It also allows Valgrind
  to inhibit any insn disassembly for the block.  Effect is that this
  allows Valgrind to provide any old IR for a given translation, and
  have Vex process it as usual, yet that IR can be anything and does
  not have to bear any relationship to any guest insns anywhere.

* Consistently pass a void* closure argument as the first parameter to
  all Valgrind-supplied callbacks.  This gets rid of various nasty hacks
  at the Valgrind side to do with passing instance-specific values
  to callbacks.

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

20 years agoGive the ppc64 guest state a 16-entry pseudo-register array,
Julian Seward [Tue, 17 Jan 2006 01:42:56 +0000 (01:42 +0000)] 
Give the ppc64 guest state a 16-entry pseudo-register array,
guest_REDIR_STACK.  This is used (along with a stack pointer,
guest_REDIR_SP) by Valgrind to support function replacement and
wrapping on ppc64-linux.  Due to the strange ppc64-linux ABI, both
replacement and wrapping require saving (%R2,%LR) pairs on a stack,
and this provides the stack.

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

20 years agoTeach the ppc back end (64-bit mode only) how to deal with PutI and
Julian Seward [Tue, 17 Jan 2006 01:39:15 +0000 (01:39 +0000)] 
Teach the ppc back end (64-bit mode only) how to deal with PutI and
GetI.  These are needed to support by IR trickery which supports
function replacement/wrapping on ppc64-linux.

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

20 years agoAdd some ignores.
Robert Walsh [Sun, 15 Jan 2006 03:57:08 +0000 (03:57 +0000)] 
Add some ignores.

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

20 years agoTidy up ELF symbol table reading a bit. Make a completely new
Julian Seward [Fri, 13 Jan 2006 23:12:49 +0000 (23:12 +0000)] 
Tidy up ELF symbol table reading a bit.  Make a completely new
function for reading ELF symbol tables on ppc64-linux so as to avoid
cluttering up the {x86,amd64,ppc32}-linux cases with convoluted
hoop-jumping needed to handle both the dotful (older) and dotless
(newer) ppc64-linux ABI variants.

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

20 years agoFix bogus assertions.
Julian Seward [Fri, 13 Jan 2006 13:04:03 +0000 (13:04 +0000)] 
Fix bogus assertions.

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

20 years agoUse VG_(am_mmap_anon_float_valgrind) to allocate the unredirected
Tom Hughes [Fri, 13 Jan 2006 09:57:01 +0000 (09:57 +0000)] 
Use VG_(am_mmap_anon_float_valgrind) to allocate the unredirected
translation cache. This ensures that the cache space is executable
which it isn't when it is allocated as a static variable in the data
segment, at least on my amd64 box.

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

20 years agoDecode NOREDIR events properly in debug output.
Tom Hughes [Fri, 13 Jan 2006 09:26:23 +0000 (09:26 +0000)] 
Decode NOREDIR events properly in debug output.

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

20 years agoFix more ppc64-linux function wrapping and symbol-table bits and pieces.
Julian Seward [Thu, 12 Jan 2006 21:15:35 +0000 (21:15 +0000)] 
Fix more ppc64-linux function wrapping and symbol-table bits and pieces.

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

20 years agoUpdate fn redirect/wrap hooks for ppc64.
Julian Seward [Thu, 12 Jan 2006 21:13:14 +0000 (21:13 +0000)] 
Update fn redirect/wrap hooks for ppc64.

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

20 years agoMake function wrapping work on ppc32-linux.
Julian Seward [Thu, 12 Jan 2006 14:04:46 +0000 (14:04 +0000)] 
Make function wrapping work on ppc32-linux.

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

20 years agoMake function wrapping work on amd64-linux.
Julian Seward [Thu, 12 Jan 2006 13:34:20 +0000 (13:34 +0000)] 
Make function wrapping work on amd64-linux.

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

20 years agoMerge in function wrapping support from the FNWRAP branch. That
Julian Seward [Thu, 12 Jan 2006 12:32:32 +0000 (12:32 +0000)] 
Merge in function wrapping support from the FNWRAP branch.  That
branch hereby becomes inactive.  This currently breaks everything
except x86; fixes for amd64/ppc32 to follow.

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

20 years agoComment-only change.
Julian Seward [Thu, 12 Jan 2006 12:29:42 +0000 (12:29 +0000)] 
Comment-only change.

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

20 years agoMerge in function wrapping support from the FNWRAP branch. That
Julian Seward [Thu, 12 Jan 2006 12:27:58 +0000 (12:27 +0000)] 
Merge in function wrapping support from the FNWRAP branch.  That
branch hereby becomes inactive.

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

20 years agoAdd register-use summary.
Julian Seward [Thu, 12 Jan 2006 12:20:48 +0000 (12:20 +0000)] 
Add register-use summary.

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

20 years agoHandle the <<= and >>= operators in stabs. Fixes bug #119914.
Tom Hughes [Wed, 11 Jan 2006 13:16:35 +0000 (13:16 +0000)] 
Handle the <<= and >>= operators in stabs. Fixes bug #119914.

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

20 years agoUnbreak make dist.
Julian Seward [Mon, 9 Jan 2006 09:30:48 +0000 (09:30 +0000)] 
Unbreak make dist.

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

20 years agoImplement clflush.
Julian Seward [Sat, 7 Jan 2006 22:58:54 +0000 (22:58 +0000)] 
Implement clflush.

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

20 years agoMake this test 64-bit clean.
Julian Seward [Sat, 7 Jan 2006 22:33:45 +0000 (22:33 +0000)] 
Make this test 64-bit clean.

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

20 years agoEven more ppc64-linux syscalls.
Julian Seward [Thu, 5 Jan 2006 14:13:14 +0000 (14:13 +0000)] 
Even more ppc64-linux syscalls.

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

20 years agoThis is logically part of r5501 (ppc64-linux symbol reading fixes)
Julian Seward [Thu, 5 Jan 2006 14:12:53 +0000 (14:12 +0000)] 
This is logically part of r5501 (ppc64-linux symbol reading fixes)
but got missed from 5501.

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

20 years agoMake symbol table reading understand the .opd section conventions used
Julian Seward [Thu, 5 Jan 2006 14:11:31 +0000 (14:11 +0000)] 
Make symbol table reading understand the .opd section conventions used
for ppc64-linux on gcc 4.0.0 and above.

As part of this, simplify the FIND macros and rename some fields in
SegInfo to be a bit clearer.

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

20 years agoFix a casting bug in the LOADV8 slow (misaligned) case spotted by Nick.
Julian Seward [Thu, 5 Jan 2006 14:09:46 +0000 (14:09 +0000)] 
Fix a casting bug in the LOADV8 slow (misaligned) case spotted by Nick.

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

20 years agoInitial redirect stuff for ppc64-linux.
Julian Seward [Thu, 5 Jan 2006 14:07:04 +0000 (14:07 +0000)] 
Initial redirect stuff for ppc64-linux.

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

20 years agoppc: deal with L flag properly for different sync forms.
Cerion Armour-Brown [Thu, 5 Jan 2006 13:11:59 +0000 (13:11 +0000)] 
ppc: deal with L flag properly for different sync forms.

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

20 years agoMore syscalls ...
Julian Seward [Wed, 4 Jan 2006 15:40:16 +0000 (15:40 +0000)] 
More syscalls ...

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

20 years agoppc: re-enable mtfsb1 instruction.
Cerion Armour-Brown [Wed, 4 Jan 2006 10:53:00 +0000 (10:53 +0000)] 
ppc: re-enable mtfsb1 instruction.

Note: Only the rounding mode field of the FPSCR is supported.
 - Reads from any other bits return zero.
 - Writes to any other bits are ignored.  Writes to 'exception control' bits or the 'non-ieee mode' bit results in an emulation warning.

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

20 years agoBuild fix for oset_test following recent build system hackery.
Julian Seward [Wed, 4 Jan 2006 04:23:30 +0000 (04:23 +0000)] 
Build fix for oset_test following recent build system hackery.

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

20 years agoMinor cleanups:
Julian Seward [Wed, 4 Jan 2006 03:31:07 +0000 (03:31 +0000)] 
Minor cleanups:
- get rid of some unused _ALL defns
- clarify logic in setting up VG_<platform>
- clarify some comments

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

20 years agoDo ppc32 tests on ppc64-capable platforms.
Julian Seward [Wed, 4 Jan 2006 03:08:16 +0000 (03:08 +0000)] 
Do ppc32 tests on ppc64-capable platforms.

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

20 years agoamd64-linux adjustments as a followup to r5493.
Julian Seward [Wed, 4 Jan 2006 02:55:03 +0000 (02:55 +0000)] 
amd64-linux adjustments as a followup to r5493.

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

20 years agoSomewhat rehash the biarch-build machinery so as to (1) formalise the
Julian Seward [Wed, 4 Jan 2006 01:20:28 +0000 (01:20 +0000)] 
Somewhat rehash the biarch-build machinery so as to (1) formalise the
distinction between primary and secondary build targets, and (2) make
it independent of the default behaviour of gcc (iow, what gcc does
when you specify neither -m32 nor -m64).

As a result, an out-of-the-box build on ppc64-linux now builds a
system which is basically for 64-bit PowerPC, but also has the ability
to run 32-bit ppc-linux binaries (exactly the same arrangement as you
get when building on amd64-linux).

There are various twists and turns.  multiple-architectures.txt is
updated all the gory details.

This will break amd64 builds until such time as
<tool>/tests/{amd64,x86}/Makefile.am are fixed up (shortly).

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

20 years agoFix magic-sequence spotting in 64-bit mode.
Julian Seward [Tue, 3 Jan 2006 18:41:00 +0000 (18:41 +0000)] 
Fix magic-sequence spotting in 64-bit mode.

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

20 years agoAdd missing function.
Julian Seward [Tue, 3 Jan 2006 18:40:18 +0000 (18:40 +0000)] 
Add missing function.

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

20 years agoupdate suppression for newer versions of Xorg
Dirk Mueller [Tue, 3 Jan 2006 18:04:32 +0000 (18:04 +0000)] 
update suppression for newer versions of Xorg

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

20 years agoTidy up some ppc64 assembly & comments a little.
Cerion Armour-Brown [Tue, 3 Jan 2006 14:28:02 +0000 (14:28 +0000)] 
Tidy up some ppc64 assembly & comments a little.

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

20 years agocouple more svn:ignore's
Cerion Armour-Brown [Tue, 3 Jan 2006 14:20:36 +0000 (14:20 +0000)] 
couple more svn:ignore's

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

20 years agoAdd ppc64 int,fp,vmx regtest: jm-insns
Cerion Armour-Brown [Tue, 3 Jan 2006 14:08:26 +0000 (14:08 +0000)] 
Add ppc64 int,fp,vmx regtest: jm-insns
(test code is a symlink to ppc32/jm-insns.c)

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

20 years agoUpdate ppc32 jm-insns regtest to test ppc64 insns, if built with -m64.
Cerion Armour-Brown [Tue, 3 Jan 2006 12:55:40 +0000 (12:55 +0000)] 
Update ppc32 jm-insns regtest to test ppc64 insns, if built with -m64.

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

20 years agoregtest none::ppc32
Cerion Armour-Brown [Tue, 3 Jan 2006 11:47:38 +0000 (11:47 +0000)] 
regtest none::ppc32
 - More cleanup
 - Fixed rlwimi test - init r_dst to zero.
 - Fixed load/store tests - print change in updated base reg, not actual value.

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

20 years agoSignal-related syscall support.
Julian Seward [Tue, 3 Jan 2006 04:10:13 +0000 (04:10 +0000)] 
Signal-related syscall support.

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

20 years agocasting paranoia (harmless)
Julian Seward [Tue, 3 Jan 2006 04:09:27 +0000 (04:09 +0000)] 
casting paranoia (harmless)

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

20 years agoFirst cut at signal frame build/removal for ppc64-linux. Ghastly
Julian Seward [Tue, 3 Jan 2006 04:08:32 +0000 (04:08 +0000)] 
First cut at signal frame build/removal for ppc64-linux.  Ghastly
stuff, but it does at least appear to do simple signal stuff
correctly.

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

20 years agoupdate
Dirk Mueller [Mon, 2 Jan 2006 20:47:26 +0000 (20:47 +0000)] 
update

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

20 years agoEnable various syscalls.
Julian Seward [Mon, 2 Jan 2006 19:06:37 +0000 (19:06 +0000)] 
Enable various syscalls.

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

20 years agoOops, fix interrupted-syscall snafu.
Julian Seward [Mon, 2 Jan 2006 19:06:08 +0000 (19:06 +0000)] 
Oops, fix interrupted-syscall snafu.

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

20 years agoRecrystallise the warp core on ppc64-linux.
Julian Seward [Mon, 2 Jan 2006 16:32:10 +0000 (16:32 +0000)] 
Recrystallise the warp core on ppc64-linux.

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

20 years agoFun n games making sys_clone() work.
Julian Seward [Mon, 2 Jan 2006 16:25:31 +0000 (16:25 +0000)] 
Fun n games making sys_clone() work.

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

20 years agoUpdate.
Julian Seward [Mon, 2 Jan 2006 16:24:51 +0000 (16:24 +0000)] 
Update.

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

20 years agoDon't confuse ppc32 and ppc64.
Julian Seward [Mon, 2 Jan 2006 16:24:03 +0000 (16:24 +0000)] 
Don't confuse ppc32 and ppc64.

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

20 years agoMore paranoia please.
Julian Seward [Mon, 2 Jan 2006 16:23:29 +0000 (16:23 +0000)] 
More paranoia please.

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

20 years agoppc64 altivec:
Cerion Armour-Brown [Mon, 2 Jan 2006 15:15:45 +0000 (15:15 +0000)] 
ppc64 altivec:
 - frontend: fix stvehx, stvewx
 - backend:  fix Iop_32HLto64 (mask off hi32 bits of src regs)

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

20 years agoHandle ppc64's function ptr's for toIR.c's dirtyhelper calls.
Cerion Armour-Brown [Mon, 2 Jan 2006 14:41:50 +0000 (14:41 +0000)] 
Handle ppc64's function ptr's for toIR.c's dirtyhelper calls.

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

20 years agoHandle ppc64's function ptr's in bb_to_IR::do_self_check.
Cerion Armour-Brown [Mon, 2 Jan 2006 14:09:16 +0000 (14:09 +0000)] 
Handle ppc64's function ptr's in bb_to_IR::do_self_check.

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

20 years agoppc64 fixes:
Cerion Armour-Brown [Mon, 2 Jan 2006 13:35:51 +0000 (13:35 +0000)] 
ppc64 fixes:
 - branch: compare full 64bits of CTR reg to zero.
 - stwcx.: store only lo32 bits of r_src to EA in 64bit mode.

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

20 years agoppc64: handle 32HLto64, 64HLtoV128
Cerion Armour-Brown [Mon, 2 Jan 2006 12:28:17 +0000 (12:28 +0000)] 
ppc64: handle 32HLto64, 64HLtoV128

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

20 years agoppc64: handle V128to64, V128HIto64.
Julian Seward [Mon, 2 Jan 2006 00:35:24 +0000 (00:35 +0000)] 
ppc64: handle V128to64, V128HIto64.

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

20 years agoRead dwarf2 line number information even if a .debug_str section was
Julian Seward [Sun, 1 Jan 2006 23:00:49 +0000 (23:00 +0000)] 
Read dwarf2 line number information even if a .debug_str section was
not found.  This is believed to fix the regression in 3.1.X wherein
debug info was sometimes not read from icc-8.1 generated executables.

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

20 years agoMake this work on SSE1-only machines.
Julian Seward [Sun, 1 Jan 2006 18:26:40 +0000 (18:26 +0000)] 
Make this work on SSE1-only machines.

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

20 years agoUpdate.
Julian Seward [Sun, 1 Jan 2006 17:17:55 +0000 (17:17 +0000)] 
Update.

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

20 years agox86 counterpart to r1521: For SSE scalar comparison operations where
Julian Seward [Sun, 1 Jan 2006 17:15:19 +0000 (17:15 +0000)] 
x86 counterpart to r1521: For SSE scalar comparison operations where
one operand is in memory, do not read more memory than needed.

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

20 years agoAlso do sse memory overrun tests on x86.
Julian Seward [Sun, 1 Jan 2006 15:22:16 +0000 (15:22 +0000)] 
Also do sse memory overrun tests on x86.

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

20 years agoAdd a test program which checks for memory overruns in the SSE insn
Julian Seward [Sun, 1 Jan 2006 14:27:04 +0000 (14:27 +0000)] 
Add a test program which checks for memory overruns in the SSE insn
decoder.

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

20 years agoFor SSE scalar comparison operations where one operand is in memory,
Julian Seward [Sun, 1 Jan 2006 13:17:38 +0000 (13:17 +0000)] 
For SSE scalar comparison operations where one operand is in memory,
do not read more memory than needed.

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

20 years agoFinally fix the bug causing dynamic ppc64-linux executables not to
Julian Seward [Fri, 30 Dec 2005 22:52:20 +0000 (22:52 +0000)] 
Finally fix the bug causing dynamic ppc64-linux executables not to
work: start with with the correct toc pointer (r2), rather than some
nonsense value.

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

20 years agoFix typo
Julian Seward [Fri, 30 Dec 2005 22:50:01 +0000 (22:50 +0000)] 
Fix typo

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

20 years agoA couple more ppc64-linux syscalls.
Julian Seward [Fri, 30 Dec 2005 22:49:24 +0000 (22:49 +0000)] 
A couple more ppc64-linux syscalls.

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

20 years agoAdd a --trace-mem option to Lackey to print out a memory access trace, if
Nicholas Nethercote [Fri, 30 Dec 2005 22:39:58 +0000 (22:39 +0000)] 
Add a --trace-mem option to Lackey to print out a memory access trace, if
only so people will stop asking how to do it.

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

20 years agoApparently "sync" has an undocumented relative called "lwsync". Sigh.
Julian Seward [Fri, 30 Dec 2005 15:04:29 +0000 (15:04 +0000)] 
Apparently "sync" has an undocumented relative called "lwsync".  Sigh.

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

20 years agoMore ppc64-linux syscalls.
Julian Seward [Fri, 30 Dec 2005 15:02:49 +0000 (15:02 +0000)] 
More ppc64-linux syscalls.

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

20 years agoFix up ppc64 dispatcher following the changes made by r5441.
Julian Seward [Fri, 30 Dec 2005 04:16:37 +0000 (04:16 +0000)] 
Fix up ppc64 dispatcher following the changes made by r5441.

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

20 years agoHandle dcbz in 64-bit mode.
Julian Seward [Fri, 30 Dec 2005 03:39:14 +0000 (03:39 +0000)] 
Handle dcbz in 64-bit mode.

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

20 years agoTentative fix for #117332: No line numbers printed by Valgrind 3.1.0
Julian Seward [Wed, 28 Dec 2005 15:19:39 +0000 (15:19 +0000)] 
Tentative fix for #117332: No line numbers printed by Valgrind 3.1.0
for programs compiled with Intel compiler.

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

20 years agoIn fbench, compute sin/cos/sqrt from "first principles", so that the
Julian Seward [Wed, 28 Dec 2005 04:18:20 +0000 (04:18 +0000)] 
In fbench, compute sin/cos/sqrt from "first principles", so that the
program more uniformly measures the speed of FP +/-/* load/store
across different architectures.

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

20 years agoUpdate.
Julian Seward [Tue, 27 Dec 2005 15:02:50 +0000 (15:02 +0000)] 
Update.

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

20 years agoVG_(getgroups) fix (Shinichi Noda)
Julian Seward [Tue, 27 Dec 2005 02:08:03 +0000 (02:08 +0000)] 
VG_(getgroups) fix (Shinichi Noda)

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

20 years agoCheck that the two sigprocmasks haven't failed.
Julian Seward [Tue, 27 Dec 2005 01:44:33 +0000 (01:44 +0000)] 
Check that the two sigprocmasks haven't failed.

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

20 years agoPerformance improvements for flag handling.
Julian Seward [Mon, 26 Dec 2005 19:33:55 +0000 (19:33 +0000)] 
Performance improvements for flag handling.

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

20 years agoComment-only fix
Julian Seward [Mon, 26 Dec 2005 19:33:24 +0000 (19:33 +0000)] 
Comment-only fix

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

20 years agoMore dispatcher tuning for ppc32/64. Makes a big difference for
Julian Seward [Mon, 26 Dec 2005 17:58:58 +0000 (17:58 +0000)] 
More dispatcher tuning for ppc32/64.  Makes a big difference for
perf/tinycc.

- run_thread_for_a_while: just clear this thread's reservation when
  starting, not all of them.

- use a different fast-cache hashing function for ppc32/64 than for
  x86/amd64.  This allows the former to use all the fast-cache entries
  rather than just 1/4 of them.

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

20 years agocode layout wibbles only
Nicholas Nethercote [Mon, 26 Dec 2005 17:50:22 +0000 (17:50 +0000)] 
code layout wibbles only

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

20 years agoAttempt to make tinycc work on ppc32, by (1) getting rid of various
Julian Seward [Mon, 26 Dec 2005 03:54:49 +0000 (03:54 +0000)] 
Attempt to make tinycc work on ppc32, by (1) getting rid of various
x86 isms in tinycc.c, (2) giving it a fixed, preprocessed input file
to chew on, and (3) just compiling to a .o with no attempt to link.

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

20 years agoMerge in r5435 from COMPVBITS. Also added a note to
Nicholas Nethercote [Sun, 25 Dec 2005 06:34:04 +0000 (06:34 +0000)] 
Merge in r5435 from COMPVBITS.  Also added a note to
docs/internals/performance.txt about it.

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

20 years agoUpdate for recent change to OSet interface.
Nicholas Nethercote [Sun, 25 Dec 2005 06:30:34 +0000 (06:30 +0000)] 
Update for recent change to OSet interface.

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

20 years agoadd extra note about tinycc
Nicholas Nethercote [Sun, 25 Dec 2005 06:27:51 +0000 (06:27 +0000)] 
add extra note about tinycc

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

20 years agoupdate
Nicholas Nethercote [Sun, 25 Dec 2005 03:33:12 +0000 (03:33 +0000)] 
update

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

20 years agoA minor performance improvement -- make swizzle() faster.
Nicholas Nethercote [Sun, 25 Dec 2005 02:47:12 +0000 (02:47 +0000)] 
A minor performance improvement -- make swizzle() faster.

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

20 years agoFix read-after-free in VG_(HT_destruct). This fixes
Julian Seward [Sat, 24 Dec 2005 15:33:32 +0000 (15:33 +0000)] 
Fix read-after-free in VG_(HT_destruct).  This fixes
memcheck/tests/mempools.  Thanks to Jeroen Witmond for tracking it
down.

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

20 years agoComment only changes - misc refs to ppc32 changed to ppc.
Cerion Armour-Brown [Sat, 24 Dec 2005 13:14:11 +0000 (13:14 +0000)] 
Comment only changes - misc refs to ppc32 changed to ppc.

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

20 years agoTidy up ppc32 jm-insns test some more.
Cerion Armour-Brown [Sat, 24 Dec 2005 12:55:48 +0000 (12:55 +0000)] 
Tidy up ppc32 jm-insns test some more.
In particular, hide the function pointer setup stuff, for the test loops, in init_function()

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

20 years agoPut mode64 in ISelEnv, removing global variable.
Cerion Armour-Brown [Sat, 24 Dec 2005 12:39:47 +0000 (12:39 +0000)] 
Put mode64 in ISelEnv, removing global variable.

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

20 years agoFix AltiVec load/store on ppc64 - was only considering lo32 bits of address.
Cerion Armour-Brown [Sat, 24 Dec 2005 12:32:10 +0000 (12:32 +0000)] 
Fix AltiVec load/store on ppc64 - was only considering lo32 bits of address.

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

20 years agoFix a nasty 64-bit-uncleanness bug in OSet spotted by Julian -- for fast
Nicholas Nethercote [Sat, 24 Dec 2005 03:10:56 +0000 (03:10 +0000)] 
Fix a nasty 64-bit-uncleanness bug in OSet spotted by Julian -- for fast
comparisons it was only considering the bottom 32-bits of the key.

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

20 years agoppc64 ELF allows the 288 bytes below the stack pointer to be accessed.
Julian Seward [Fri, 23 Dec 2005 23:34:51 +0000 (23:34 +0000)] 
ppc64 ELF allows the 288 bytes below the stack pointer to be accessed.

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

20 years agoMake ppc64-linux stack unwinding work.
Julian Seward [Fri, 23 Dec 2005 23:33:51 +0000 (23:33 +0000)] 
Make ppc64-linux stack unwinding work.

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

20 years agoChange default --reps value from 3 to 1.
Nicholas Nethercote [Fri, 23 Dec 2005 23:08:04 +0000 (23:08 +0000)] 
Change default --reps value from 3 to 1.

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