Commit 3b49783c authored by Jens Korinth's avatar Jens Korinth
Browse files

Update tapasco-benchmark to new APIs

parent 4350e4a6
......@@ -40,11 +40,11 @@ public:
if (tapasco.kernel_pe_count(COUNTER_ID) == 0)
throw "need at least one instance of 'Counter' (14) in bitstream";
platform_ctl_addr_t status;
platform_res_t r = platform_address_get_component_base(tapasco.platform(),
platform_res_t r = platform_address_get_component_base(tapasco.platform_device(),
PLATFORM_COMPONENT_STATUS,
&status);
if (r != PLATFORM_SUCCESS) throw Tapasco::platform_error(r);
platform_read_ctl(tapasco.platform(), status + 0x24, 4, &design_clk, PLATFORM_CTL_FLAGS_NONE);
platform_read_ctl(tapasco.platform_device(), status + 0x24, 4, &design_clk, PLATFORM_CTL_FLAGS_NONE);
}
virtual ~InterruptLatency() {}
......
......@@ -88,7 +88,7 @@ private:
void run2(volatile bool& stop, atomic<uint64_t>& count) {
tapasco_res_t res;
tapasco_dev_ctx_t *dev_ctx = tapasco.device();
tapasco_devctx_t *dev_ctx = tapasco.device();
unsigned long const d = 1U;
while (! stop) {
tapasco_job_id_t j_id;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment