[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 14/16] boot-order-test: Add tests for Sun4m
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PATCH v3 14/16] boot-order-test: Add tests for Sun4m |
Date: |
Fri, 14 Jun 2013 13:15:14 +0200 |
Cc: Blue Swirl <address@hidden>
Signed-off-by: Markus Armbruster <address@hidden>
---
tests/boot-order-test.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/tests/boot-order-test.c b/tests/boot-order-test.c
index 0060905..7b1edc1 100644
--- a/tests/boot-order-test.c
+++ b/tests/boot-order-test.c
@@ -178,6 +178,18 @@ static void test_pmac_newworld_boot_order(void)
test_boot_orders("mac99", read_boot_order_pmac, test_cases_fw_cfg);
}
+#define SUN4M_CFG_ADDR 0xd00000510ULL
+
+static uint64_t read_boot_order_sun4m(void)
+{
+ return read_fw_cfg_i16(SUN4M_CFG_ADDR, FW_CFG_BOOT_DEVICE);
+}
+
+static void test_sun4m_boot_order(void)
+{
+ test_boot_orders("SS-5", read_boot_order_sun4m, test_cases_fw_cfg);
+}
+
int main(int argc, char *argv[])
{
const char *arch = qtest_get_arch();
@@ -192,6 +204,8 @@ int main(int argc, char *argv[])
test_pmac_oldworld_boot_order);
qtest_add_func("boot-order/pmac_newworld",
test_pmac_newworld_boot_order);
+ } else if (strcmp(arch, "sparc") == 0) {
+ qtest_add_func("boot-order/sun4m", test_sun4m_boot_order);
}
return g_test_run();
--
1.7.11.7
- [Qemu-devel] [PATCH v3 08/16] boot-order-test: New; covering just PC for now, (continued)
- [Qemu-devel] [PATCH v3 03/16] vl: Fix -boot order and once regressions, and related bugs, Markus Armbruster, 2013/06/14
- [Qemu-devel] [PATCH v3 12/16] boot-order-test: Code motion for better readability, Markus Armbruster, 2013/06/14
- [Qemu-devel] [PATCH v3 06/16] doc: Drop ref to Bochs from -no-fd-bootchk documentation, Markus Armbruster, 2013/06/14
- [Qemu-devel] [PATCH v3 14/16] boot-order-test: Add tests for Sun4m,
Markus Armbruster <=
- [Qemu-devel] [PATCH v3 11/16] boot-order-test: Better separate target-specific and generic parts, Markus Armbruster, 2013/06/14
- [Qemu-devel] [PATCH v3 09/16] boot-order-test: Add tests for PowerMacs, Markus Armbruster, 2013/06/14
- [Qemu-devel] [PATCH v3 15/16] boot-order-test: Support fw_cfg in I/O space, Markus Armbruster, 2013/06/14
[Qemu-devel] [PATCH v3 16/16] boot-order-test: Add tests for Sun4u, Markus Armbruster, 2013/06/14