aboutsummaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/modexp_tester.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}