Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
c976e940
Commit
c976e940
authored
May 17, 2024
by
Jakob Görgen
Committed by
Jakob Görgen
May 21, 2024
Browse files
lib/simbricks/nicbm/nicbm: no default logging + proper cli parsing
parent
22e1e637
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
lib/simbricks/nicbm/nicbm.cc
lib/simbricks/nicbm/nicbm.cc
+4
-5
No files found.
lib/simbricks/nicbm/nicbm.cc
View file @
c976e940
...
...
@@ -41,7 +41,7 @@ extern "C" {
#include <simbricks/base/proto.h>
}
#define DEBUG_NICBM 1
//
#define DEBUG_NICBM 1
#define STAT_NICBM 1
#define DMA_MAX_PENDING 64
...
...
@@ -215,9 +215,8 @@ void Runner::DmaDo(DMAOp &op) {
volatile
struct
SimbricksProtoPcieD2HRead
*
read
=
&
msg
->
read
;
if
(
maxlen
<
sizeof
(
struct
SimbricksProtoPcieH2DReadcomp
)
+
op
.
len_
)
{
sim_log
::
LogError
(
"issue_dma: write too big (%zu), can only fit up "
"to (%zu)
\n
"
,
op
.
len_
,
maxlen
-
sizeof
(
struct
SimbricksProtoPcieH2DReadcomp
));
"issue_dma: write too big (%zu), can only fit up to (%zu)
\n
"
,
op
.
len_
,
maxlen
-
sizeof
(
struct
SimbricksProtoPcieH2DReadcomp
));
abort
();
}
...
...
@@ -576,7 +575,7 @@ Runner::Runner(Device &dev) : main_time_(0), dev_(dev), events_(EventCmp()) {
}
int
Runner
::
ParseArgs
(
int
argc
,
char
*
argv
[])
{
if
(
argc
<
4
||
argc
>
1
0
)
{
if
(
argc
<
4
||
argc
>
1
1
)
{
sim_log
::
LogError
(
"Usage: corundum_bm PCI-SOCKET ETH-SOCKET "
"SHM [SYNC-MODE] [START-TICK] [SYNC-PERIOD] [PCI-LATENCY] "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment