HLS intersect: Remove mmio write and attach.
Attach is done in execute function during dnut_kernel_sync_execute_job().
@@ -209,19 +209,11 @@ static void dump_table(value_t* table, uint32_t num)
static int run_one_step(struct dnut_kernel *kernel, struct dnut_job *cjob, unsigned long timeout, int action_irq, uint64_t step)
{
-
int rc;
struct timeval etime, stime;
+
gettimeofday(&stime, NULL);
- if (action_irq) {
- dnut_kernel_mmio_write32(kernel, 0x8, 1);
- dnut_kernel_mmio_write32(kernel, 0x4, 1);
- }
rc = dnut_kernel_sync_execute_job(kernel, cjob, timeout, action_irq);
- if (action_irq) {
- dnut_kernel_mmio_write32(kernel, 0xc, 1);
- dnut_kernel_mmio_write32(kernel, 0x4, 0);
- }
if (rc != 0) {
fprintf(stderr, "err: job execution %d: %s!\n\n\n", rc,
strerror(errno));
@@ -447,27 +439,6 @@ int main(int argc, char *argv[])
goto out_error;
}
-#if 1 /* FIXME Circumvention should go away */
- pr_info("FIXME Wait a sec ...\n");
- sleep(1);
-#endif
- rc = dnut_attach_action((void*)kernel, HLS_INTERSECT_ID, attach_flags, timeout);
- if (rc != 0) {
- fprintf(stderr, "err: job Attach %d: %s!\n", rc,
- strerror(errno));
- goto out_error2;
- }
-
-#if 1 /* FIXME Circumvention should go away */
- pr_info("FIXME temporary setting to define memory base address\n");
- dnut_kernel_mmio_write32(kernel, 0x00030, 0);
- dnut_kernel_mmio_write32(kernel, 0x00034, 0);
- dnut_kernel_mmio_write32(kernel, 0x00040, 0);
- dnut_kernel_mmio_write32(kernel, 0x00044, 0);
- dnut_kernel_mmio_write32(kernel, 0x00050, 0);
- dnut_kernel_mmio_write32(kernel, 0x00054, 0);
-#endif
-
//------------------------------------
// Action begin (1)
printf("Start Step1 (Copy source data from Host to DDR) ..............\n");
