From 705e513e20b42a577534588534359aac6f1291e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Mon, 25 May 2015 13:50:46 +0200 Subject: Debugged the new testrunner on the Novena. Now all test cases works as expected. --- sw/modexp_tester.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sw/modexp_tester.c b/sw/modexp_tester.c index 023bc67..26249d1 100644 --- a/sw/modexp_tester.c +++ b/sw/modexp_tester.c @@ -301,10 +301,11 @@ uint8_t testrunner(uint32_t exp_len, uint32_t *exponent, correct = 1; + tc_w32(MODEXP_RESULT_PTR_RST, 0x00000000); for (i = 0 ; i < mod_len ; i++) { result = tc_r32(MODEXP_RESULT_DATA); if (result != expected[i]) { - printf("TC1: Error. Expected 0x00000009, got 0x%08x\n", result); + printf("TC1: Error. Expected 0x%08x, got 0x%08x\n", expected[i], result); correct = 0; } } -- cgit v1.2.3