ipdbg-la: return correct samples limit

This commit is contained in:
Eva Kissling 2017-09-11 17:30:53 +02:00 committed by Uwe Hermann
parent 8f6b0eb12a
commit a54144c0bd
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ SR_PRIV void ipdbg_org_la_get_addrwidth_and_datawidth(struct ipdbg_org_la_tcp *t
devc->DATA_WIDTH_BYTES = (devc->DATA_WIDTH+HOST_WORD_SIZE -1)/HOST_WORD_SIZE;
devc->ADDR_WIDTH_BYTES = (devc->ADDR_WIDTH+HOST_WORD_SIZE -1)/HOST_WORD_SIZE;
devc->limit_samples_max = (0x01 << devc->ADDR_WIDTH);
devc->limit_samples = (0x01 << HOST_WORD_SIZE);
devc->limit_samples = devc->limit_samples_max;// (0x01 << HOST_WORD_SIZE);
//sr_err("DATA_WIDTH_BYTES: %d ADDR_WIDTH_BYTES : %d LIMIT_SAMPLES: %d", devc->DATA_WIDTH_BYTES, devc->ADDR_WIDTH_BYTES, devc->limit_samples );