From bbad15ae75da01150f3b1fed1a3837f5f5bedc89 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Tue, 23 Jun 2020 17:46:15 +0200 Subject: 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 --- prog/target.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'prog') 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 -- cgit mrf-deployment