1624fb343SThomas Huth#!/usr/bin/env python3 2624fb343SThomas Huth# 3624fb343SThomas Huth# Functional test that boots a microblaze Linux kernel and checks the console 4624fb343SThomas Huth# 5624fb343SThomas Huth# Copyright (c) 2018, 2021 Red Hat, Inc. 6624fb343SThomas Huth# 7624fb343SThomas Huth# This work is licensed under the terms of the GNU GPL, version 2 or 8624fb343SThomas Huth# later. See the COPYING file in the top-level directory. 9624fb343SThomas Huth 104098c6b7SPhilippe Mathieu-Daudéfrom test_microblaze_s3adsp1800 import MicroblazeMachine 115831ed84SDaniel P. Berrangé 12624fb343SThomas Huth 134098c6b7SPhilippe Mathieu-Daudéclass MicroblazeLittleEndianMachine(MicroblazeMachine): 14624fb343SThomas Huth 154098c6b7SPhilippe Mathieu-Daudé ASSET_IMAGE_LE = MicroblazeMachine.ASSET_IMAGE_LE 16*6c547755SThomas Huth ASSET_IMAGE_BE = MicroblazeMachine.ASSET_IMAGE_BE 17624fb343SThomas Huth 18fe52b090SPhilippe Mathieu-Daudé def test_microblaze_s3adsp1800_legacy_le(self): 19*6c547755SThomas Huth self.do_xmaton_le_test() 20*6c547755SThomas Huth 21*6c547755SThomas Huth def test_microblaze_s3adsp1800_legacy_be(self): 22*6c547755SThomas Huth self.do_ballerina_be_test(force_endianness=True) 23fe52b090SPhilippe Mathieu-Daudé 244098c6b7SPhilippe Mathieu-Daudé 25624fb343SThomas Huthif __name__ == '__main__': 264098c6b7SPhilippe Mathieu-Daudé MicroblazeMachine.main() 27