arch-power: Add multi-mode support
[gem5.git] / src / base / loader / small_image_file.test.hh
1 /*
2 * Copyright (c) 2019 The Regents of the University of California
3 * All rights reserved
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 #ifndef __SMALL_IMAGE_FILE_HH__
30 #define __SMALL_IMAGE_FILE_HH__
31
32 #include <cstdint>
33
34 /**
35 * This image file contains the text "This is a test image.\n" 31 times.
36 */
37 const uint8_t image_file[] = {
38 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
39 0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
40 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
41 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
42 0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
43 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
44 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
45 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
46 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
47 0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
48 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
49 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
50 0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
51 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
52 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
53 0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
54 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
55 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
56 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
57 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
58 0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
59 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
60 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
61 0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
62 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
63 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
64 0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
65 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
66 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
67 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
68 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
69 0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
70 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
71 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
72 0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
73 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
74 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
75 0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
76 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
77 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
78 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
79 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
80 0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
81 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
82 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
83 0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
84 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
85 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
86 0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
87 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
88 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
89 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
90 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
91 0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
92 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
93 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
94 0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
95 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
96 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
97 0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
98 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
99 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
100 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
101 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
102 0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
103 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
104 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
105 0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
106 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
107 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
108 0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
109 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
110 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
111 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
112 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
113 0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
114 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
115 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
116 0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
117 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
118 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
119 0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
120 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
121 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
122 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
123 0x2e, 0x0a
124 };
125
126 /**
127 * This is "image_file" compressed using GZip.
128 */
129 const uint8_t image_file_gzipped[] = {
130 0x1f, 0x8b, 0x08, 0x08, 0x48, 0x4b, 0xcb, 0x5d,
131 0x00, 0x03, 0x62, 0x6c, 0x61, 0x2e, 0x69, 0x6d,
132 0x67, 0x00, 0x0b, 0xc9, 0xc8, 0x2c, 0x56, 0x00,
133 0xa2, 0x44, 0x85, 0x92, 0xd4, 0xe2, 0x12, 0x85,
134 0xcc, 0xdc, 0xc4, 0xf4, 0x54, 0x3d, 0xae, 0x90,
135 0x51, 0xd1, 0x51, 0xd1, 0x41, 0x26, 0x0a, 0x00,
136 0xc9, 0x58, 0x6c, 0x4e, 0xaa, 0x02, 0x00, 0x00
137 };
138
139 #endif // __SMALL_IMAGE_FILE_HH__