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
dfa9594d
Commit
dfa9594d
authored
May 06, 2021
by
Hejing Li
Browse files
Merge branch 'master' of github.com:simbricks/simbricks
parents
8a50c9a1
c208339b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sims/nic/corundum_bm/corundum_bm.cc
sims/nic/corundum_bm/corundum_bm.cc
+5
-0
No files found.
sims/nic/corundum_bm/corundum_bm.cc
View file @
dfa9594d
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include <cassert>
#include <cassert>
// #define DEBUG 1
// #define DEBUG 1
// #define ARMED_MODE
static
nicbm
::
Runner
*
runner
;
static
nicbm
::
Runner
*
runner
;
...
@@ -170,7 +171,9 @@ void EventRing::dmaDone(DMAOp *op) {
...
@@ -170,7 +171,9 @@ void EventRing::dmaDone(DMAOp *op) {
void
EventRing
::
issueEvent
(
unsigned
type
,
unsigned
source
)
{
void
EventRing
::
issueEvent
(
unsigned
type
,
unsigned
source
)
{
assert
(
type
==
EVENT_TYPE_TX_CPL
||
type
==
EVENT_TYPE_RX_CPL
);
assert
(
type
==
EVENT_TYPE_TX_CPL
||
type
==
EVENT_TYPE_RX_CPL
);
#ifdef ARMED_MODE
if
(
this
->
armed
)
{
if
(
this
->
armed
)
{
#endif
if
(
full
())
{
if
(
full
())
{
fprintf
(
stderr
,
"Event ring is rull
\n
"
);
fprintf
(
stderr
,
"Event ring is rull
\n
"
);
return
;
return
;
...
@@ -195,7 +198,9 @@ void EventRing::issueEvent(unsigned type, unsigned source) {
...
@@ -195,7 +198,9 @@ void EventRing::issueEvent(unsigned type, unsigned source) {
runner
->
IssueDma
(
*
op
);
runner
->
IssueDma
(
*
op
);
this
->
_currHead
++
;
this
->
_currHead
++
;
this
->
armed
=
false
;
this
->
armed
=
false
;
#ifdef ARMED_MODE
}
}
#endif
}
}
CplRing
::
CplRing
(
EventRing
*
eventRing
)
:
eventRing
(
eventRing
)
{
CplRing
::
CplRing
(
EventRing
*
eventRing
)
:
eventRing
(
eventRing
)
{
...
...
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