summaryrefslogtreecommitdiff
path: root/src/intersim2/routers/chaos_router.cpp
diff options
context:
space:
mode:
authorDongdong Li <[email protected]>2013-11-22 11:31:19 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:59 -0700
commit3f74773ce1ffe8ed5044a103d84459b56d4e9c20 (patch)
treef7265582ead4f320b890fa744ac6af093b9e27e0 /src/intersim2/routers/chaos_router.cpp
parent24f29469c042761d8b8d185c374493fbde79aca4 (diff)
Update with Booksim2.0 from Stanford
- Warning fixed - Unused file deleted - Add support for node map configuration. Code Review: Issue 93001 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17410]
Diffstat (limited to 'src/intersim2/routers/chaos_router.cpp')
-rw-r--r--src/intersim2/routers/chaos_router.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/intersim2/routers/chaos_router.cpp b/src/intersim2/routers/chaos_router.cpp
index 10c6277..b2bed93 100644
--- a/src/intersim2/routers/chaos_router.cpp
+++ b/src/intersim2/routers/chaos_router.cpp
@@ -1,4 +1,4 @@
-// $Id: chaos_router.cpp 5188 2012-08-30 00:31:31Z dub $
+// $Id: chaos_router.cpp 5516 2013-10-06 02:14:48Z dub $
/*
Copyright (c) 2007-2012, Trustees of The Leland Stanford Junior University
@@ -589,13 +589,13 @@ void ChaosRouter::_OutputAdvance( )
for ( int m = 0; m < _multi_queue_size; ++m ) {
if ( _multi_match[m] != -1 ) {
- if ( !_multi_queue[m].empty( ) ) {
- f = _multi_queue[m].front( );
- _multi_queue[m].pop( );
- } else {
+ if ( _multi_queue[m].empty( ) ) {
cout << "State = " << _multi_state[m] << endl;
Error( "Multi queue empty, but matched!" );
}
+ assert( !_multi_queue[m].empty( ) );
+ f = _multi_queue[m].front( );
+ _multi_queue[m].pop( );
_crossbar_pipe->Write( f, _multi_match[m] );