gem5  v22.1.0.0
small_image_file.test.hh
Go to the documentation of this file.
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 namespace gem5
35 {
36 
40 const uint8_t image_file[] = {
41  0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
42  0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
43  0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
44  0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
45  0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
46  0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
47  0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
48  0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
49  0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
50  0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
51  0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
52  0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
53  0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
54  0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
55  0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
56  0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
57  0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
58  0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
59  0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
60  0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
61  0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
62  0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
63  0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
64  0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
65  0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
66  0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
67  0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
68  0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
69  0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
70  0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
71  0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
72  0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
73  0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
74  0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
75  0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
76  0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
77  0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
78  0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
79  0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
80  0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
81  0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
82  0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
83  0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
84  0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
85  0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
86  0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
87  0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
88  0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
89  0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
90  0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
91  0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
92  0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
93  0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
94  0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
95  0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
96  0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
97  0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
98  0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
99  0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
100  0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
101  0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
102  0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
103  0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
104  0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
105  0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
106  0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
107  0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
108  0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
109  0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
110  0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
111  0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
112  0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
113  0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
114  0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
115  0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73, 0x20, 0x69,
116  0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74,
117  0x20, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a,
118  0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20,
119  0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x69,
120  0x6d, 0x61, 0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68,
121  0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20,
122  0x74, 0x65, 0x73, 0x74, 0x20, 0x69, 0x6d, 0x61,
123  0x67, 0x65, 0x2e, 0x0a, 0x54, 0x68, 0x69, 0x73,
124  0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65,
125  0x73, 0x74, 0x20, 0x69, 0x6d, 0x61, 0x67, 0x65,
126  0x2e, 0x0a
127 };
128 
132 const uint8_t image_file_gzipped[] = {
133  0x1f, 0x8b, 0x08, 0x08, 0x48, 0x4b, 0xcb, 0x5d,
134  0x00, 0x03, 0x62, 0x6c, 0x61, 0x2e, 0x69, 0x6d,
135  0x67, 0x00, 0x0b, 0xc9, 0xc8, 0x2c, 0x56, 0x00,
136  0xa2, 0x44, 0x85, 0x92, 0xd4, 0xe2, 0x12, 0x85,
137  0xcc, 0xdc, 0xc4, 0xf4, 0x54, 0x3d, 0xae, 0x90,
138  0x51, 0xd1, 0x51, 0xd1, 0x41, 0x26, 0x0a, 0x00,
139  0xc9, 0x58, 0x6c, 0x4e, 0xaa, 0x02, 0x00, 0x00
140 };
141 
142 } // namespace gem5
143 
144 #endif // __SMALL_IMAGE_FILE_HH__
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
const uint8_t image_file[]
This image file contains the text "This is a test image.\n" 31 times.
const uint8_t image_file_gzipped[]
This is "image_file" compressed using GZip.

Generated on Wed Dec 21 2022 10:22:29 for gem5 by doxygen 1.9.1