File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,6 @@ void FpgaXdma::stop_thansmit_thread() {
138
138
139
139
void FpgaXdma::read_xdma_thread (int channel) {
140
140
FpgaPackgeHead *packge = (FpgaPackgeHead *)malloc (sizeof (FpgaPackgeHead));
141
- // TODO: The first packet may be repeated twice, and if it is, drop the first packet
142
- size_t size = read (xdma_c2h_fd[channel], packge->diff_packge , DMA_DIFF_PACKGE_LEN);
143
141
while (running) {
144
142
memset (packge, 0 , sizeof (FpgaPackgeHead));
145
143
size_t size = read (xdma_c2h_fd[channel], packge->diff_packge , DMA_DIFF_PACKGE_LEN);
@@ -148,13 +146,13 @@ void FpgaXdma::read_xdma_thread(int channel) {
148
146
printf (" It should not be the case that no available block can be found\n " );
149
147
assert (0 );
150
148
}
151
- #endif // USE_THREAD_MEMPOOL
152
-
149
+ #else
153
150
#ifdef CONFIG_DIFFTEST_BATCH
154
151
v_difftest_Batch (packge->diff_packge );
155
152
#elif defined(CONFIG_DIFFTEST_SQUASH)
156
153
// TODO: need automatically generates squash data parsing implementations
157
- #endif
154
+ #endif // CONFIG_DIFFTEST_BATCH
155
+ #endif // USE_THREAD_MEMPOOL
158
156
}
159
157
free (packge);
160
158
}
You can’t perform that action at this time.
0 commit comments