]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoPretty up -v -v printing a bit.
Julian Seward [Sat, 11 Sep 2004 18:22:03 +0000 (18:22 +0000)] 
Pretty up -v -v printing a bit.

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

21 years ago* Clean up primop naming a bit
Julian Seward [Sat, 11 Sep 2004 17:10:08 +0000 (17:10 +0000)] 
* Clean up primop naming a bit
* Implement x86 FYL2X insn

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

21 years agoArch-abstraction:
Nicholas Nethercote [Sat, 11 Sep 2004 16:45:27 +0000 (16:45 +0000)] 
Arch-abstraction:
- In Cachegrind, abstract out x86-specific use of CPUID to find cache
  configuration.  Required adding a cachegrind/x86/ directory, and fiddling
  a bit with the build system.

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

21 years agoAdd support for the SIOCGPGRP ioctl and mark SIOCSPGRP as non-blocking
Tom Hughes [Sat, 11 Sep 2004 15:33:17 +0000 (15:33 +0000)] 
Add support for the SIOCGPGRP ioctl and mark SIOCSPGRP as non-blocking
to avoid older kernels returning EPERM due to it being run in a separate
thread. This fixes bug #89198.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Sat, 11 Sep 2004 15:30:33 +0000 (15:30 +0000)] 
Arch-abstraction:
- abstract out some inline asm

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

21 years agoRemoved result checks from ioctl POST handlers as the POST handler is
Tom Hughes [Sat, 11 Sep 2004 15:14:59 +0000 (15:14 +0000)] 
Removed result checks from ioctl POST handlers as the POST handler is
not called unless PostOnFail is set so the checks are redundant.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Sat, 11 Sep 2004 15:11:47 +0000 (15:11 +0000)] 
Arch-abstraction:
- abstract out some direct naming of registers

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

21 years agoAdd system call wrappers for some CD related ioctls. Based on a
Tom Hughes [Sat, 11 Sep 2004 15:07:14 +0000 (15:07 +0000)] 
Add system call wrappers for some CD related ioctls. Based on a
patch from Peter Jones <pjones@redhat.com>.

CCMAIL: 89263-done@bugs.kde.org

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

21 years agoAdd system call wrappers for the TIOCMBIS/TIOCMBIC/TIOMSET ioctls. Based
Tom Hughes [Sat, 11 Sep 2004 14:37:04 +0000 (14:37 +0000)] 
Add system call wrappers for the TIOCMBIS/TIOCMBIC/TIOMSET ioctls. Based
on a patch from Tobias Blomberg <blomman@ludd.ltu.se>.

CCMAIL: 88886-done@bugs.kde.org

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

21 years agoAdd system call wrappers for sched_{get,set}affinity. Based on patch
Tom Hughes [Sat, 11 Sep 2004 14:29:19 +0000 (14:29 +0000)] 
Add system call wrappers for sched_{get,set}affinity. Based on patch
from Daryll Strauss <daryll@daryll.net>.

CCMAIL: 89139-done@bugs.kde.org

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

21 years agoMake the virtualise setrlimit(RLIMIT_DATA) return EPERM when an attempt
Tom Hughes [Sat, 11 Sep 2004 14:19:25 +0000 (14:19 +0000)] 
Make the virtualise setrlimit(RLIMIT_DATA) return EPERM when an attempt
is made to raise either the soft or hard limit above the current hard
limit rather than just allowing it.

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

21 years agoVirtualise the stack rlimit for the main thread and make valgrind enforce
Tom Hughes [Sat, 11 Sep 2004 14:16:57 +0000 (14:16 +0000)] 
Virtualise the stack rlimit for the main thread and make valgrind enforce
that limit when growing the stack. Also add a message when the stack in any
thread overflows.

CCMAIL: 73818-done@bugs.kde.org

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

21 years agoArch-abstraction:
Nicholas Nethercote [Sat, 11 Sep 2004 13:34:08 +0000 (13:34 +0000)] 
Arch-abstraction:
- abstractify various uses of the stack pointer

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

21 years agoArch-abstraction:
Nicholas Nethercote [Sat, 11 Sep 2004 13:17:02 +0000 (13:17 +0000)] 
Arch-abstraction:
- minor tweaks for handling client requests on PPC

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

21 years agoSlightly more informative error msgs for some cl reqs.
Nicholas Nethercote [Sat, 11 Sep 2004 13:06:55 +0000 (13:06 +0000)] 
Slightly more informative error msgs for some cl reqs.

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

21 years agoFill in many x86 integer and FP cases, enough to get konqueror
Julian Seward [Sat, 11 Sep 2004 09:30:24 +0000 (09:30 +0000)] 
Fill in many x86 integer and FP cases, enough to get konqueror
running.  This also involves adding some iropt const-folding rules.

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

21 years agoUpdate print-above thresholds seeing as how we're running quite big
Julian Seward [Sat, 11 Sep 2004 09:29:24 +0000 (09:29 +0000)] 
Update print-above thresholds seeing as how we're running quite big
programs now.

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

21 years agox86 -> IR changes:
Julian Seward [Fri, 10 Sep 2004 20:25:11 +0000 (20:25 +0000)] 
x86 -> IR changes:
* fix bug in movsbl/swl/sbw causing zero extension
* more ADC cases
* FIDIVR m32

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

21 years agoMinor updates.
Julian Seward [Fri, 10 Sep 2004 20:00:46 +0000 (20:00 +0000)] 
Minor updates.

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

21 years agoFix a few more bits and pieces.
Julian Seward [Fri, 10 Sep 2004 18:56:32 +0000 (18:56 +0000)] 
Fix a few more bits and pieces.

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

21 years agoImplement x86 FRNDINT, taking into account of course the current
Julian Seward [Fri, 10 Sep 2004 18:37:18 +0000 (18:37 +0000)] 
Implement x86 FRNDINT, taking into account of course the current
rounding mode.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Fri, 10 Sep 2004 17:42:11 +0000 (17:42 +0000)] 
Arch-abstraction:
- added x86-linux/core_platform.h
- factored out getting/setting of system call arguments, put it in
  platform-specific part.

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

21 years agoWhoops, file should be called ".cvsignore", not ".cvgsigore".
Nicholas Nethercote [Fri, 10 Sep 2004 16:34:24 +0000 (16:34 +0000)] 
Whoops, file should be called ".cvsignore", not ".cvgsigore".

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

21 years agoArch-abstraction:
Nicholas Nethercote [Fri, 10 Sep 2004 16:31:11 +0000 (16:31 +0000)] 
Arch-abstraction:
- add a new file x86/x86_private.h, a header for the x86-specific stuff that is
  not seen by the core.
- move some LDT function decls into x86_private.h.

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

21 years ago* x86 guest: instead of just tracking the FPU's C3, C2 and C0 flags,
Julian Seward [Fri, 10 Sep 2004 16:17:45 +0000 (16:17 +0000)] 
* x86 guest: instead of just tracking the FPU's C3, C2 and C0 flags,
  also track C1.
* x86 guest: handle FXAM instruction

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

21 years agoArch-abstraction:
Nicholas Nethercote [Fri, 10 Sep 2004 15:33:32 +0000 (15:33 +0000)] 
Arch-abstraction:
- move some LDT constants into the x86-specific code.
- abstract out uses of LDT and TLS in vg_scheduler into the x86-specific code.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Fri, 10 Sep 2004 14:23:59 +0000 (14:23 +0000)] 
Arch-abstraction:
- create coregrind/x86-linux/ directory.
- move vg_unistd.h into x86-linux/, because it's platform-dependent.  Also
  rename it as vki_unistd.h to make clear it's a kernel interface thing.

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

21 years agoVarious more x86 FP cases.
Julian Seward [Thu, 9 Sep 2004 22:43:51 +0000 (22:43 +0000)] 
Various more x86 FP cases.

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

21 years agoRedo the regs setting for db-attach, in a way that works for PPC, which doesn't
Nicholas Nethercote [Thu, 9 Sep 2004 13:40:31 +0000 (13:40 +0000)] 
Redo the regs setting for db-attach, in a way that works for PPC, which doesn't
support ptrace(SETREGS,...).

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

21 years agoFill in many more x86 FP cases.
Julian Seward [Thu, 9 Sep 2004 11:44:16 +0000 (11:44 +0000)] 
Fill in many more x86 FP cases.

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

21 years agoIncrease scratch space to 300k. ToDo: investigate why this is needed.
Julian Seward [Thu, 9 Sep 2004 11:43:03 +0000 (11:43 +0000)] 
Increase scratch space to 300k.  ToDo: investigate why this is needed.

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

21 years agoUse C89 compatible local declaration.
Jeremy Fitzhardinge [Thu, 9 Sep 2004 08:10:42 +0000 (08:10 +0000)] 
Use C89 compatible local declaration.

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

21 years agoMake floating-point comparisons work, and fill in a bunch of other x86
Julian Seward [Thu, 9 Sep 2004 02:46:40 +0000 (02:46 +0000)] 
Make floating-point comparisons work, and fill in a bunch of other x86
FP -> IR cases.

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

21 years agoFix overly-pessimistic assertion.
Julian Seward [Thu, 9 Sep 2004 02:45:30 +0000 (02:45 +0000)] 
Fix overly-pessimistic assertion.

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

21 years agoAdd a new x86 guest state word, just holding the FPU's C3, C2 and C0
Julian Seward [Thu, 9 Sep 2004 00:19:22 +0000 (00:19 +0000)] 
Add a new x86 guest state word, just holding the FPU's C3, C2 and C0
bits to record the outcome of FP comparisons.  Note: not copied
properly across signals in the hacked104 framework.

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

21 years agoSimple test program for testing double -> int rounding.
Julian Seward [Wed, 8 Sep 2004 23:43:17 +0000 (23:43 +0000)] 
Simple test program for testing double -> int rounding.

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

21 years agox86: make float to integer conversions observe the rounding mode in
Julian Seward [Wed, 8 Sep 2004 23:42:23 +0000 (23:42 +0000)] 
x86: make float to integer conversions observe the rounding mode in
effect.

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

21 years agoInitialisations to keep gcc -O happy.
Julian Seward [Wed, 8 Sep 2004 23:40:57 +0000 (23:40 +0000)] 
Initialisations to keep gcc -O happy.

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

21 years agoPull permissions checking out into a separate function to clean
Jeremy Fitzhardinge [Wed, 8 Sep 2004 20:05:29 +0000 (20:05 +0000)] 
Pull permissions checking out into a separate function to clean
things up a bit.

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

21 years agoWhen loading a -fpie executable, put it where info.exebase wants it, since
Jeremy Fitzhardinge [Wed, 8 Sep 2004 20:05:02 +0000 (20:05 +0000)] 
When loading a -fpie executable, put it where info.exebase wants it, since
it doesn't have a useful address in its phdrs.

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

21 years agoUse MAP_NORESERVE for potentially large mappings.
Jeremy Fitzhardinge [Wed, 8 Sep 2004 20:03:51 +0000 (20:03 +0000)] 
Use MAP_NORESERVE for potentially large mappings.

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

21 years agoAdd the FPU control word to the x86 guest state. And fix some bugs
Julian Seward [Wed, 8 Sep 2004 19:06:34 +0000 (19:06 +0000)] 
Add the FPU control word to the x86 guest state.  And fix some bugs
copying stuff in and out of baseBlock.

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

21 years agoFix a large number of cases at both ends of the pipeline for x86
Julian Seward [Wed, 8 Sep 2004 18:23:25 +0000 (18:23 +0000)] 
Fix a large number of cases at both ends of the pipeline for x86
floating point, and some integer stuff.  The FP to integer conversions
are somewhat misguided and need reworking.

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

21 years agoBogus not-really-a-folding rule for MullS32. ToDo: better.
Julian Seward [Wed, 8 Sep 2004 18:20:19 +0000 (18:20 +0000)] 
Bogus not-really-a-folding rule for MullS32.  ToDo: better.

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

21 years agoCompile with -O by default now.
Julian Seward [Wed, 8 Sep 2004 18:18:59 +0000 (18:18 +0000)] 
Compile with -O by default now.

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

21 years agominor fixes
Nicholas Nethercote [Tue, 7 Sep 2004 23:15:37 +0000 (23:15 +0000)] 
minor fixes

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

21 years agoTo get 32-bit programs working on Opteron, VG_(valgrind_end) was recently
Nicholas Nethercote [Tue, 7 Sep 2004 23:04:49 +0000 (23:04 +0000)] 
To get 32-bit programs working on Opteron, VG_(valgrind_end) was recently
changed to name the last byte in Valgrind's section, rather than one past the
last byte.  This was because the last byte is 0xffffffff, and so one past gave
0x0, which screwed things up.

However, when this change was made, all the places where VG_(valgrind_end) is
used weren't adjusted appropriately.  So this commit makes those adjustments.
It also renames the variable as VG_(valgrind_last), which makes the difference
between it and the other VG_(*_end) variables much clearer.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Tue, 7 Sep 2004 22:38:23 +0000 (22:38 +0000)] 
Arch-abstraction:
- factored out pointercheck setup.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Tue, 7 Sep 2004 22:22:39 +0000 (22:22 +0000)] 
Arch-abstraction:
- factored out the setting of machine registers used when attaching the
  debugger.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Tue, 7 Sep 2004 10:17:02 +0000 (10:17 +0000)] 
Arch-abstraction:
- Moved VG_MAX_REALREGS into x86/ part.
- Tweaked basic types so they're suitable for both 32-bit and 64-bit platforms.
  Main change was to change 'Addr' to "unsigned long" which is the same size as
  a pointer.  Had to make a couple of minor changes to accommodate this.
  Also, introduced 'UWord' and 'Word' types which will be necessary for making
  code 64-bit clean.

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

21 years ago- Implement bt/bts/btc/btr, using the same hack as UCode (forcing
Julian Seward [Tue, 7 Sep 2004 10:15:24 +0000 (10:15 +0000)] 
- Implement bt/bts/btc/btr, using the same hack as UCode (forcing
  everything into memory).
- Fill in a few other minor integer instructions.

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

21 years agoFix overenthusiastic redundant-Put elimination, which believed that
Julian Seward [Mon, 6 Sep 2004 23:51:00 +0000 (23:51 +0000)] 
Fix overenthusiastic redundant-Put elimination, which believed that
PutI[x,y] makes a previous PutI[x,y] redundant, for the same x,y.

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

21 years agocopy_baseBlock_to_m_state_static and back:
Julian Seward [Mon, 6 Sep 2004 23:22:55 +0000 (23:22 +0000)] 
copy_baseBlock_to_m_state_static and back:
- Use new functions x87_to_vex and vex_to_x87.
- Handle the D flag more correctly.

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

21 years agox86 guest: Add functions vex_to_x87 and x87_to_vex to properly
Julian Seward [Mon, 6 Sep 2004 23:21:21 +0000 (23:21 +0000)] 
x86 guest: Add functions vex_to_x87 and x87_to_vex to properly
convert between the IA32 FPU state and vex's representation of it.

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

21 years agoAdd a few more FP insns, and fix some bugs.
Julian Seward [Mon, 6 Sep 2004 23:19:03 +0000 (23:19 +0000)] 
Add a few more FP insns, and fix some bugs.

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

21 years agoDo further conversions in the test.
Julian Seward [Mon, 6 Sep 2004 23:17:37 +0000 (23:17 +0000)] 
Do further conversions in the test.

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

21 years agoMore x87 test stuff.
Julian Seward [Mon, 6 Sep 2004 20:39:20 +0000 (20:39 +0000)] 
More x87 test stuff.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Mon, 6 Sep 2004 16:43:37 +0000 (16:43 +0000)] 
Arch-abstraction:
- moved a lot of the baseBlock initialisation into x86/, including all the
  VGOFF variables, and all the x86 asm helper functions.

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

21 years agoArch-abstraction: arch-neutralise the startup message.
Nicholas Nethercote [Mon, 6 Sep 2004 15:34:37 +0000 (15:34 +0000)] 
Arch-abstraction: arch-neutralise the startup message.

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

21 years agoArch-abstraction: minor name change of params.
Nicholas Nethercote [Mon, 6 Sep 2004 15:14:46 +0000 (15:14 +0000)] 
Arch-abstraction: minor name change of params.

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

21 years agoTest program for developing double <-> extended double conversion
Julian Seward [Mon, 6 Sep 2004 14:57:52 +0000 (14:57 +0000)] 
Test program for developing double <-> extended double conversion
code.

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

21 years agoRemove unnecessary #includes.
Nicholas Nethercote [Sun, 5 Sep 2004 22:25:13 +0000 (22:25 +0000)] 
Remove unnecessary #includes.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Sun, 5 Sep 2004 22:02:33 +0000 (22:02 +0000)] 
Arch-abstraction:
- replaced some x86-specific register mentions with arch-neutral ones.

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

21 years agoArch-abstraction: made vg_execontext.c arch-independent, based on Paul
Nicholas Nethercote [Sun, 5 Sep 2004 21:32:37 +0000 (21:32 +0000)] 
Arch-abstraction: made vg_execontext.c arch-independent, based on Paul
    Mackerras's work.

- introduced arch-neutral macros for getting the instruction/frame/stack
  pointers.

- renamed ExeContext.eips as ExeContext.ips

- renamed esp/ebp/eip to sp/fp/ip in several related files and arch-neutralised
  various comments

- introduced arch-neutral macros for walking the stack

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

21 years agoMove env variables out of core_asm.h into core.h, where they should be.
Nicholas Nethercote [Sun, 5 Sep 2004 20:39:51 +0000 (20:39 +0000)] 
Move env variables out of core_asm.h into core.h, where they should be.

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

21 years agoSimplify calculation of VG_(shadow_end) to avoid an obscure bug on Paul M's PPC
Nicholas Nethercote [Sat, 4 Sep 2004 15:53:35 +0000 (15:53 +0000)] 
Simplify calculation of VG_(shadow_end) to avoid an obscure bug on Paul M's PPC
port caused by rounding errors.

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

21 years agoArch-abstraction: introduce constants for min and max instruction sizes.
Nicholas Nethercote [Sat, 4 Sep 2004 15:28:37 +0000 (15:28 +0000)] 
Arch-abstraction: introduce constants for min and max instruction sizes.

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

21 years agoRemoved x86/ume_archdefs.h; moved CLIENT_BASE into x86/core_arch.h.
Nicholas Nethercote [Fri, 3 Sep 2004 23:25:33 +0000 (23:25 +0000)] 
Removed x86/ume_archdefs.h;  moved CLIENT_BASE into x86/core_arch.h.
(CLIENT_BASE wasn't really part of UME.)

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

21 years agoRemoved x86/ume_arch_defs.c, which just defined the never-used variable
Nicholas Nethercote [Fri, 3 Sep 2004 14:24:22 +0000 (14:24 +0000)] 
Removed x86/ume_arch_defs.c, which just defined the never-used variable
CLIENT_START.

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

21 years agoAvoid spurious warning about using posix_memalign()
Nicholas Nethercote [Fri, 3 Sep 2004 14:04:40 +0000 (14:04 +0000)] 
Avoid spurious warning about using posix_memalign()

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

21 years agoArch-abstraction:
Nicholas Nethercote [Fri, 3 Sep 2004 13:45:29 +0000 (13:45 +0000)] 
Arch-abstraction:

- Added include/x86/:  contains tool_arch.h, Makefile.am, .cvsignore.

- Added coregrind/x86/state.c.  Contains some arch-specific code for dealing
  with x86 registers -- eg. setting up the baseBlock, loading/saving the whole
  register state.  It is compiled into coregrind/x86/libarch.a and linked via
  ${VG_ARCH} with the core.

  Relatedly, also added coregrind/x86/{core_arch.h,core_arch_asm.h}.

- Correspondingly abstracted the register state out of ThreadState.  This
  affected every place that touches registers, and there are a lot of them.
  (Eventually all the register touching should be abstracted out in an
  arch-neutral way, but not yet;  one step at a time.)

- Added some declarations about register loading/saving functions to core.h;
  all architectures will have to provide these functions.

- Rejigged the build system so that the arch-specific stuff is all done via
  ${VG_ARCH}, rather than naming e.g. x86/ directly.  Appropriate -I arguments
  are used so that all the headers are found, etc.

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

21 years agoTweaked comment.
Nicholas Nethercote [Thu, 2 Sep 2004 16:25:49 +0000 (16:25 +0000)] 
Tweaked comment.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Thu, 2 Sep 2004 16:05:20 +0000 (16:05 +0000)] 
Arch-abstraction:
- removing the directories arch/x86-linux and arch/x86-freebsd, the contents of
  which were never actually used.

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

21 years agoArch-abstraction: add comment explaining header hierarchy.
Nicholas Nethercote [Thu, 2 Sep 2004 16:02:58 +0000 (16:02 +0000)] 
Arch-abstraction:  add comment explaining header hierarchy.

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

21 years agoUpdate docs for filename change.
Nicholas Nethercote [Thu, 2 Sep 2004 15:50:29 +0000 (15:50 +0000)] 
Update docs for filename change.

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

21 years agoTweak some comments.
Nicholas Nethercote [Thu, 2 Sep 2004 15:49:09 +0000 (15:49 +0000)] 
Tweak some comments.

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

21 years agoArch-abstraction:
Nicholas Nethercote [Thu, 2 Sep 2004 15:37:39 +0000 (15:37 +0000)] 
Arch-abstraction:
- renamed "vg_constants.h" as "core_asm.h".
- renamed "vg_constants_skin.h" as "tool_asm.h".
- renamed "mc_constants.h" as "mc_asm.h".

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

21 years agoAdd the old Heimdall x87 FPU simulator, as reference.
Julian Seward [Thu, 2 Sep 2004 12:24:06 +0000 (12:24 +0000)] 
Add the old Heimdall x87 FPU simulator, as reference.
Add a small program to print out the state of the x87 FPU.

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

21 years agoDirectory for parking various misc useful files in (basically,
Julian Seward [Thu, 2 Sep 2004 12:21:20 +0000 (12:21 +0000)] 
Directory for parking various misc useful files in (basically,
reference sources).

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

21 years agoArch-abstraction: whoops II, forgot to add the (residual) vg_skin.h, which just
Nicholas Nethercote [Thu, 2 Sep 2004 08:55:34 +0000 (08:55 +0000)] 
Arch-abstraction: whoops II, forgot to add the (residual) vg_skin.h, which just
points to tool.h.

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

21 years agoArch-abstraction: Whoops, forgot to add tool.h.base. Also updated .cvsignore.
Nicholas Nethercote [Thu, 2 Sep 2004 08:54:27 +0000 (08:54 +0000)] 
Arch-abstraction: Whoops, forgot to add tool.h.base.  Also updated .cvsignore.

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

21 years agoArch-abstraction: renamed "vg_skin.h" as "tool.h". Kept a residual vg_skin.h
Nicholas Nethercote [Thu, 2 Sep 2004 08:51:43 +0000 (08:51 +0000)] 
Arch-abstraction:  renamed "vg_skin.h" as "tool.h".  Kept a residual vg_skin.h
(which just #includes tool.h) for backward-compatibility.

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

21 years agoRemove unnecessary #include statement.
Nicholas Nethercote [Thu, 2 Sep 2004 08:18:07 +0000 (08:18 +0000)] 
Remove unnecessary #include statement.

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

21 years agoArch-abstraction: renamed "vg_include.h" as "core.h" (a few that I missed in
Nicholas Nethercote [Thu, 2 Sep 2004 08:10:13 +0000 (08:10 +0000)] 
Arch-abstraction:  renamed "vg_include.h" as "core.h" (a few that I missed in
my previous commit).

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

21 years agoFix some vg_include.h references.
Robert Walsh [Thu, 2 Sep 2004 00:31:02 +0000 (00:31 +0000)] 
Fix some vg_include.h references.

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

21 years agoArch-abstraction step: renamed "vg_include.h" as "core.h".
Nicholas Nethercote [Wed, 1 Sep 2004 23:58:16 +0000 (23:58 +0000)] 
Arch-abstraction step: renamed "vg_include.h" as "core.h".

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

21 years agoUpdate .cvsignore for recently added regression tests.
Nicholas Nethercote [Wed, 1 Sep 2004 23:34:37 +0000 (23:34 +0000)] 
Update .cvsignore for recently added regression tests.

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

21 years agoUse Makefile.am includes. This gets rid of 110 lines of repetitive Makefile.am
Nicholas Nethercote [Wed, 1 Sep 2004 23:20:49 +0000 (23:20 +0000)] 
Use Makefile.am includes.  This gets rid of 110 lines of repetitive Makefile.am
cruft, yay!

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

21 years ago'valgrind' (ie. stage1) does not need to be installed in $PREFIX/lib/valgrind/;
Nicholas Nethercote [Wed, 1 Sep 2004 11:33:35 +0000 (11:33 +0000)] 
'valgrind' (ie. stage1) does not need to be installed in $PREFIX/lib/valgrind/;
$PREFIX/bin/ is enough.

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

21 years agoMove the include of linux/fs.h before the include of sys/un.h as the
Tom Hughes [Wed, 1 Sep 2004 07:31:12 +0000 (07:31 +0000)] 
Move the include of linux/fs.h before the include of sys/un.h as the
latter includes string.h on some older systems which then causes
problems when linux/fs.h includes linux/string.h due to it turning
various string functions into pre-processor macros.

This was the problem behind bug #87820 which actually had nothing to
do with gcc 2.95 and everything to do with the glibc and kernel
headers that the system had installed.

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

21 years agoMake some of the parallel port ioctls conditional as older systems
Tom Hughes [Wed, 1 Sep 2004 07:29:08 +0000 (07:29 +0000)] 
Make some of the parallel port ioctls conditional as older systems
don't have them defined.

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

21 years agoDo a bit more x86 floating point. As a result, had to do 'bsf' and 'bsr'
Julian Seward [Tue, 31 Aug 2004 23:55:54 +0000 (23:55 +0000)] 
Do a bit more x86 floating point.  As a result, had to do 'bsf' and 'bsr'
which in turn meant two new IR primops, Iop_Clz32 and Iop_Ctz32, to count
leading and trailing zeroes on a 32-bit word.

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

21 years agoHEAD now reports 2.3.0.CVS.
Julian Seward [Tue, 31 Aug 2004 16:26:27 +0000 (16:26 +0000)] 
HEAD now reports 2.3.0.CVS.

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

21 years agoThis is a generated file and so shouldn't be tracked by svn.
Julian Seward [Tue, 31 Aug 2004 11:50:20 +0000 (11:50 +0000)] 
This is a generated file and so shouldn't be tracked by svn.

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

21 years agoFill in enough to get through a simple x86 FP processing program
Julian Seward [Tue, 31 Aug 2004 11:47:54 +0000 (11:47 +0000)] 
Fill in enough to get through a simple x86 FP processing program
without dying.  Doesn't produce the right answer (yet).

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

21 years ago--> 2.2.0
Julian Seward [Tue, 31 Aug 2004 00:15:19 +0000 (00:15 +0000)] 
--> 2.2.0

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

21 years agoversion -> 2.2.0
Julian Seward [Tue, 31 Aug 2004 00:15:02 +0000 (00:15 +0000)] 
version -> 2.2.0

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

21 years agoHopefully final changes for 2.2.0.
Julian Seward [Tue, 31 Aug 2004 00:14:02 +0000 (00:14 +0000)] 
Hopefully final changes for 2.2.0.

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

21 years agoAdd comments about limitations wrt self-modifying code.
Julian Seward [Tue, 31 Aug 2004 00:13:10 +0000 (00:13 +0000)] 
Add comments about limitations wrt self-modifying code.

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

21 years agoAdd vki_itimerspec definition for POSIX timer support.
Tom Hughes [Mon, 30 Aug 2004 20:31:35 +0000 (20:31 +0000)] 
Add vki_itimerspec definition for POSIX timer support.

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