diff options
| author | Alexander Egorenkov <Alexander.Egorenkov@ibm.com> | 2020-06-23 17:46:15 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-06-23 21:24:30 +0200 |
| commit | bbad15ae75da01150f3b1fed1a3837f5f5bedc89 (patch) | |
| tree | fac55cc631521270f128cbf8292b9d55330fbc9e /prog/target.go | |
| parent | 6930bbef3b671ae21f74007f9e59efb9b236b93f (diff) | |
target: support of big-endian architectures
* Introduce the new target flag 'LittleEndian' which specifies
of which endianness the target is.
* Introduce the new requires flag 'littleendian' for tests to
selectively enable/disable tests on either little-endian architectures
or big-endian ones.
* Disable KD unit test on s390x architecture because the test
works only on little-endian architecture.
Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
Diffstat (limited to 'prog/target.go')
| -rw-r--r-- | prog/target.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/prog/target.go b/prog/target.go index e2d4f245c..3dbad8a67 100644 --- a/prog/target.go +++ b/prog/target.go @@ -13,13 +13,14 @@ import ( // Target describes target OS/arch pair. type Target struct { - OS string - Arch string - Revision string // unique hash representing revision of the descriptions - PtrSize uint64 - PageSize uint64 - NumPages uint64 - DataOffset uint64 + OS string + Arch string + Revision string // unique hash representing revision of the descriptions + PtrSize uint64 + PageSize uint64 + NumPages uint64 + DataOffset uint64 + LittleEndian bool Syscalls []*Syscall Resources []*ResourceDesc |
