tests/qtest: Add hexagon boot-serial-test
Add boot-serial-test support for Hexagon architecture using the virt machine. Reviewed-by: Fabiano Rosas <farosas@suse.de> Acked-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
Brian Cain committed
Jun 22, 2026 at 15:29 UTC
79aabe39d507525605a0c594a97a57c38b6f985b
2 files changed
+10
tests/qtest/boot-serial-test.c
+8
@@ -142,6 +142,13 @@ static const uint8_t kernel_stm32vldiscovery[] = {
142
0x04, 0x38, 0x01, 0x40 /* 0x40013804 = USART1 TXD */
143
};
144
145
+static const uint8_t bios_hexagon[] = {
146
+ 0x00, 0x40, 0x00, 0x01, /* immext(#0x10000000) */
147
+ 0x00, 0xc0, 0x00, 0x78, /* r0 = ##0x10000000 */
148
+ 0x54, 0xc0, 0x00, 0x3c, /* memb(r0+#0) = #0x54 Write 'T' */
149
+ 0xf8, 0xff, 0xff, 0x59 /* jump 0x0 ; Loop back to start */
150
+};
151
+
152
typedef struct testdef {
153
const char *arch; /* Target architecture */
154
const char *machine; /* Name of the machine */
@@ -194,6 +201,7 @@ static const testdef_t tests[] = {
201
{ "arm", "microbit", "", "T", sizeof(kernel_nrf51), kernel_nrf51 },
202
{ "arm", "stm32vldiscovery", "", "T",
203
sizeof(kernel_stm32vldiscovery), kernel_stm32vldiscovery },
204
+ { "hexagon", "virt", "", "TT", sizeof(bios_hexagon), NULL, bios_hexagon },
205
206
{ NULL }
207
};
tests/qtest/meson.build
+2
@@ -296,6 +296,8 @@ qtests_riscv64 = ['riscv-csr-test'] + \
296
['iommu-riscv-test'] : []) + \
297
(config_all_devices.has_key('CONFIG_K230') ? ['k230-wdt-test'] : [])
298
299
+qtests_hexagon = ['boot-serial-test']
300
+
301
qos_test_ss = ss.source_set()
302
qos_test_ss.add(
303
'ac97-test.c',