xref: /qemu/tests/functional/test_microblazeel_s3adsp1800.py (revision 9761ad5f65d23f080b5a3479e52196fbce2e1506)
1#!/usr/bin/env python3
2#
3# Functional test that boots a microblaze Linux kernel and checks the console
4#
5# Copyright (c) 2018, 2021 Red Hat, Inc.
6#
7# This work is licensed under the terms of the GNU GPL, version 2 or
8# later. See the COPYING file in the top-level directory.
9
10from test_microblaze_s3adsp1800 import MicroblazeMachine
11
12
13class MicroblazeLittleEndianMachine(MicroblazeMachine):
14
15    ASSET_IMAGE_LE = MicroblazeMachine.ASSET_IMAGE_LE
16    ASSET_IMAGE_BE = MicroblazeMachine.ASSET_IMAGE_BE
17
18    def test_microblaze_s3adsp1800_legacy_le(self):
19        self.do_xmaton_le_test()
20
21    def test_microblaze_s3adsp1800_legacy_be(self):
22        self.do_ballerina_be_test(force_endianness=True)
23
24
25if __name__ == '__main__':
26    MicroblazeMachine.main()
27