Commit Graph

2322 Commits

Author SHA1 Message Date
Julian Seward
2af2c78613 Basics for 128-bit SIMD code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3189
2004-12-10 14:58:26 +00:00
Julian Seward
96c2c41a93 Fix enough stuff so that x86 MMX tests work.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3188
2004-12-10 13:35:22 +00:00
Julian Seward
ba3c8e024c Fix enough stuff so that x86 floating point tests work properly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3187
2004-12-10 13:17:55 +00:00
Julian Seward
4a148c84cf Cosmetic-only change (mess with indentation)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3186
2004-12-10 12:01:14 +00:00
Julian Seward
87f86e25b5 For now, disable test of: pmaddwd psadbw pslldq psrldq. The x86 front
end doesn't yet handle them (nothing critically difficult), and they
are unlikely to turn up in compiler-generated code.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3185
2004-12-10 02:10:15 +00:00
Julian Seward
49b17b8fa4 Fix segfaults caused by the impedance matches in sys_sigprocmask.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3184
2004-12-06 16:18:58 +00:00
Julian Seward
dfd443a0c4 Ensure VEX control parameters are sane.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3183
2004-12-06 14:24:52 +00:00
Julian Seward
2d5d04c3d1 Ensure host CPU is in the state that VEX-generated code expects prior
to running any such code.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3182
2004-12-06 14:23:28 +00:00
Julian Seward
225ce01fdd Updated expected output
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3181
2004-12-06 00:47:37 +00:00
Julian Seward
13127c3479 Use different register numbers in different register banks, so as to
expose bugs resulting from confusion of which register fields are
which during insn decode.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3180
2004-12-06 00:37:59 +00:00
Julian Seward
4c5b50284b Set host FPU mode to the default mode expected by VEX generated code.
ToDo: set SSE control word correctly too, and also D flag.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3179
2004-12-04 01:45:56 +00:00
Nicholas Nethercote
ce2585d447 Changed message at the top of files, and the startup message, and the
string in valgrind.pc.in, so that they describe Valgrind as a "dynamic
binary instrumentation framework", and don't mention platforms at all.  

I had to tweak the regtest filters a bit for this.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3178
2004-12-01 14:14:42 +00:00
Nicholas Nethercote
1058f672a3 Added a short document explaining the directory structure and how to
find things in header files.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3177
2004-12-01 11:54:07 +00:00
Nicholas Nethercote
d406dc046a Added a short doc listing places that I know or suspect are not 64-bit
clean.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3176
2004-12-01 11:11:56 +00:00
Nicholas Nethercote
a470b77afd Comment change only.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3175
2004-12-01 00:38:16 +00:00
Nicholas Nethercote
b0d10bc3b4 64-bit cleanness: don't assume 32 bits in MAC_Chunk.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3174
2004-12-01 00:19:38 +00:00
Nicholas Nethercote
71525a2d57 Updated docs with all the changes that I'm aware of that happened since
Donna converted them to XML.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3173
2004-12-01 00:02:36 +00:00
Nicholas Nethercote
cc7e5987be Un-hardwired x86 as the insn set to be translated. Also moved around
some constants.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3172
2004-11-30 23:39:13 +00:00
Nicholas Nethercote
b4421b93e7 Implemented the dispatch loop for AMD64. Works at least enough to do
through once, failing to find the translation, and falling back to the
scheduler.

Did a couple of minor associated cleanups too.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3171
2004-11-30 23:32:01 +00:00
Nicholas Nethercote
f14fd8b2a1 Added a short document about how to port to a new arch or OS.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3170
2004-11-30 19:27:02 +00:00
Julian Seward
0b85c33cda New debugging flag --trace-notbelow=<number>, to stop --trace-codegen=
spewing out tons of unwanted stuff before some desired point.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3169
2004-11-30 18:55:21 +00:00
Nicholas Nethercote
b1b5c00b01 Streamlined and consistified alignment checking.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3168
2004-11-30 18:08:05 +00:00
Nicholas Nethercote
c4b75e59c9 Move VG_(have_ssestate) out of core and into coregrind/x86/.
Also fixed up out-of-date comments for run_innerloop.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3167
2004-11-30 17:27:21 +00:00
Nicholas Nethercote
287eca27b9 More AMD64 start-up hurdles:
- Fix bogus assertion in vg_transtab.c
- Do null implementation of --pointercheck

We now reach the dispatch loop!



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3166
2004-11-30 16:50:48 +00:00
Nicholas Nethercote
ad1bf0073e Clear a few more AMD64 start-up hurdles:
- implemented VG_(clone)()
- implemented PLATFORM_DO_MMAP()
- implemented VG_(init_thread1state)()  [will need to be updated as the
  Vex AMD64 guest state is updated]
- implemented OYNK, because it's useful

Also a couple of general cleaning up things.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3165
2004-11-30 16:04:58 +00:00
Nicholas Nethercote
61c97ea72d Clear next AMD64 startup hurdle. Required copying the x86 LDT code.
Not sure if it's the right thing to do long-term, but good enough for
now.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3164
2004-11-30 15:10:02 +00:00
Nicholas Nethercote
8f2c187803 Whoops, must edit tool.h.base, not tool.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3163
2004-11-30 14:41:13 +00:00
Nicholas Nethercote
d3a7dba217 Another todo item.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3162
2004-11-30 14:10:13 +00:00
Nicholas Nethercote
ed7ce225ed Another todo item.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3161
2004-11-30 14:09:22 +00:00
Nicholas Nethercote
4370a34af5 Updated todo list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3160
2004-11-30 14:08:24 +00:00
Nicholas Nethercote
f6ce991fe4 Fix PS/PDF generation somewhat; the Makefile syntax errors are now
fixed, although latex now runs out of memory when doing it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3159
2004-11-30 14:05:38 +00:00
Nicholas Nethercote
782dd25de9 64-bit cleanness: fix nasty bug... in the memory allocators, redzones
were being kept as UInts.  They were sometimes negated and then used as
indices to arrays, and on 64-bit platforms they get converted
incorrectly (using zero-extension instead of sign extension, I think)
before the indexing happens, giving a totally bogus index.

The fix was to convert all these types to SizeT.  It would be nice to be
able to avoid this automatically somehow in the future.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3158
2004-11-30 13:26:29 +00:00
Nicholas Nethercote
4ba7d82ac6 Formatting change only.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3157
2004-11-30 13:20:44 +00:00
Nicholas Nethercote
244787cc7f Get AMD64 slightly further before dying:
- implemented VG_(do_syscall)()
- fixed a problem in ume.c with mapping when loading, which was causing
  stage2's memory to be trashed
- fixed stage2.lds substitution so stage2 goes in the right address



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3156
2004-11-30 11:40:24 +00:00
Julian Seward
5f69115af9 Comment-only change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3155
2004-11-30 11:18:57 +00:00
Nicholas Nethercote
86e69e77cd Minor docs building fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3154
2004-11-30 11:10:01 +00:00
Nicholas Nethercote
7a75a9f583 Overhauled the docs. Removed all the HTML files, put in XML files as
converted by Donna.  Hooked it into the build system so they are only
built when specifically asked for, and when doing "make dist".

They're not perfect;  in particular, there are the following problems:
- The plain-text FAQ should be built from FAQ.xml, but this is not
  currently done.  (The text FAQ has been left in for now.)

- The PS/PDF building doesn't work -- it fails with an incomprehensible
  error message which I haven't yet deciphered.

Nonetheless, I'm putting it in so others can see it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3153
2004-11-30 10:43:45 +00:00
Julian Seward
e62fd9ba79 Handle emulation-warnings emitted by Vex-generated code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3152
2004-11-29 19:47:54 +00:00
Julian Seward
62024ae795 Fix comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3151
2004-11-29 19:46:47 +00:00
Julian Seward
80377f3867 Remove Marie-Celeste declarations.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3150
2004-11-29 19:46:28 +00:00
Nicholas Nethercote
decc1ddb43 Implemented jmp_with_stack for AMD64. Cleaned up the
comments/formatting of jmp_with_stack for ARM and x86, too.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3149
2004-11-29 17:59:00 +00:00
Nicholas Nethercote
d20b2e7b5a Remove some ancient comments.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3148
2004-11-29 17:36:48 +00:00
Nicholas Nethercote
f4671df654 64-bit cleanness: make VG_(do_syscall)() return a Word, not an Int.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3147
2004-11-29 17:33:31 +00:00
Nicholas Nethercote
d0d191cc16 comment only
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3146
2004-11-29 17:29:46 +00:00
Nicholas Nethercote
1b64ae853c Added the skeleton of the AMD64 syscall table, all commented out, but
ready to go.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3145
2004-11-29 17:28:41 +00:00
Nicholas Nethercote
f8910f2b3f Avoid compile warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3144
2004-11-29 16:57:02 +00:00
Nicholas Nethercote
61fcb2828d Gave VG_(do_syscall)() a more specific prototype:
Int VG_(do_syscall) ( UInt, UWord, UWord, UWord, UWord, UWord, UWord );

to replace the previous:
  
  Int VG_(do_syscall) ( UInt, ... )

Reason being that sometimes you could get incorrect args passed, when
passing 32-bit ints on 64-bit platforms.  I also added macros
VG_(do_syscall[123456]) to make life easier, and converted all the
relevant calls.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3143
2004-11-29 16:49:18 +00:00
Nicholas Nethercote
6afeca28a1 Fix reg test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3142
2004-11-29 16:08:22 +00:00
Nicholas Nethercote
121ce56af3 very minor tweaks
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3141
2004-11-29 16:05:54 +00:00
Nicholas Nethercote
8a1cef27ad Minor 64-bit cleanups, mostly comments.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3140
2004-11-29 15:45:31 +00:00