aboutsummaryrefslogtreecommitdiff
path: root/src/sw/hash_tester.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2014-11-13 10:25:45 -0500
committerPaul Selkirk <paul@psgd.org>2014-11-13 10:25:45 -0500
commit9a6299ea9c3bda1d908e5435d2ea332849b4a4f5 (patch)
treecf5ad1ed3eef242139120611de0a272235f2bd24 /src/sw/hash_tester.c
parentb2bba47aff69e773d1f82707e7be9596a74fe5e2 (diff)
fix status bits as values, not positions
Diffstat (limited to 'src/sw/hash_tester.c')
-rw-r--r--src/sw/hash_tester.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sw/hash_tester.c b/src/sw/hash_tester.c
index f202a03..04f6c6d 100644
--- a/src/sw/hash_tester.c
+++ b/src/sw/hash_tester.c
@@ -82,8 +82,8 @@
#define CTRL_INIT_CMD 1
#define CTRL_NEXT_CMD 2
#define ADDR_STATUS 0x09
-#define STATUS_READY_BIT 0
-#define STATUS_VALID_BIT 1
+#define STATUS_READY_BIT 1
+#define STATUS_VALID_BIT 2
/* addresses and codes for the specific hash cores */
#define SHA1_ADDR_PREFIX 0x10