mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 13:53:54 -06:00

Now that the endianness of the petalogix-s3adsp1800 can be configured, we should test that the cross-endianness also works as expected, thus test the big endian variant on the little endian target and vice versa. (based on an original idea from Philippe Mathieu-Daudé) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20250515132019.569365-3-thuth@redhat.com>
26 lines
754 B
Python
Executable file
26 lines
754 B
Python
Executable file
#!/usr/bin/env python3
|
|
#
|
|
# Functional test that boots a microblaze Linux kernel and checks the console
|
|
#
|
|
# Copyright (c) 2018, 2021 Red Hat, Inc.
|
|
#
|
|
# This work is licensed under the terms of the GNU GPL, version 2 or
|
|
# later. See the COPYING file in the top-level directory.
|
|
|
|
from test_microblaze_s3adsp1800 import MicroblazeMachine
|
|
|
|
|
|
class MicroblazeLittleEndianMachine(MicroblazeMachine):
|
|
|
|
ASSET_IMAGE_LE = MicroblazeMachine.ASSET_IMAGE_LE
|
|
ASSET_IMAGE_BE = MicroblazeMachine.ASSET_IMAGE_BE
|
|
|
|
def test_microblaze_s3adsp1800_legacy_le(self):
|
|
self.do_xmaton_le_test()
|
|
|
|
def test_microblaze_s3adsp1800_legacy_be(self):
|
|
self.do_ballerina_be_test(force_endianness=True)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
MicroblazeMachine.main()
|