Fix 32-bit build errors.

I only compiled the source. Didn't have the tooling installed to link.
Hopefully that's good enough.
Fixes #71.
This commit is contained in:
Tim Newsome
2017-07-03 12:17:07 -07:00
parent 4e2e730abe
commit 450307b66f
3 changed files with 10 additions and 7 deletions
+3 -1
View File
@@ -94,7 +94,9 @@ size_t riscv_batch_add_dmi_read(struct riscv_batch *batch, unsigned address)
riscv_batch_add_nop(batch);
batch->read_keys[batch->read_keys_used] = batch->used_scans - 1;
LOG_DEBUG("read key %ld for batch 0x%p is %ld (0x%p)", batch->read_keys_used, batch, batch->used_scans - 1, (uint64_t*)batch->data_in + (batch->used_scans + 1));
LOG_DEBUG("read key %u for batch 0x%p is %u (0x%p)",
(unsigned) batch->read_keys_used, batch, (unsigned) (batch->used_scans - 1),
(uint64_t*)batch->data_in + (batch->used_scans + 1));
return batch->read_keys_used++;
}