forked from petrpavlu/valgrind-riscv64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.s390
47 lines (40 loc) · 1.98 KB
/
README.s390
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Requirements
------------
- You need GCC 3.4 or later to compile the s390 port.
- To run valgrind a z10 machine or any later model is recommended.
Older machine models down to and including z990 may work but have
not been tested extensively.
Limitations
-----------
- 31-bit client programs are not supported.
- Hexadecimal floating point is not supported.
- Transactional memory is not supported. The transactional-execution
facility is masked off from HWCAP.
- A full list of unimplemented instructions can be retrieved from
`docs/internals/s390-opcodes.csv', by grepping for "not implemented".
- FP signalling is not accurate. E.g., the "compare and signal"
instructions behave like their non-signalling counterparts.
- On machine models predating z10, cachegrind will assume a z10 cache
architecture. Otherwise, cachegrind will query the hosts cache system
and use those parameters.
- Some gcc versions use mvc to copy 4/8 byte values. This will affect
certain debug messages. For example, memcheck will complain about
4 one-byte reads/writes instead of just a single read/write.
Hardware facilities
-------------------
Valgrind does not require that the host machine has the same hardware
facilities as the machine for which the client program was compiled.
This is convenient. If possible, the JIT compiler will translate the
client instructions according to the facilities available on the host.
This means, though, that probing for hardware facilities by issuing
instructions from that facility and observing whether SIGILL is thrown
may not work. As a consequence, programs that attempt to do so may
behave differently. It is believed that this is a rare use case.
Reading Material
----------------
(1) ELF ABI s390x Supplement
https://github.com/IBM/s390x-abi/releases
(2) z/Architecture Principles of Operation
https://www.ibm.com/support/pages/zarchitecture-principles-operation
(3) z/Architecture Reference Summary
https://www.ibm.com/support/pages/zarchitecture-reference-summary