As requested in
MDEV-27936, s390x for transactional memory of s390 was requested.
The first commit is probably a debian compiler downstream issue and will be omitted.
Marko Mäkelä, feedback on continuing aspects of this implementation requested please:
For the rest of the s390x changes, target version 10.9?
Problems is solves are:
- compatible with non-linux (BSDs)
- compatible with s390x
- The innodb implementation uses transactions without syscalls (please validate this closely that no syscall gets called from under transactional_shared_lock_guard), the feature detection of the suspend mode (not explicitly used, and please don't) and operation system call interface, is overly strict.
- the s390x tm begin implementation defaults to no floats. I assume because I haven't looked at the ISA, that this means that any use of floats under HTM won't get restored on tabort. Is there consequences here?
If all these are moderately on track, what version should the transactional_lock_enabled go into?