summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.h
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-11-29 09:20:00 -0800
committerTor Aamodt <[email protected]>2010-11-29 09:20:00 -0800
commit5a52fa70980d905f1117250d0508c529293c9049 (patch)
tree8fb0ec11465ef4779ec8a1fb63bcdba551794cf0 /src/abstract_hardware_model.h
parent1effdbcc0f33f2b73288802d18d3f842978d7004 (diff)
integrate mask changes
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8170]
Diffstat (limited to 'src/abstract_hardware_model.h')
-rw-r--r--src/abstract_hardware_model.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h
index 21f9689..3b197ab 100644
--- a/src/abstract_hardware_model.h
+++ b/src/abstract_hardware_model.h
@@ -618,12 +618,9 @@ public:
{
m_empty=true;
}
- void issue( unsigned mask, unsigned warp_id, unsigned long long cycle )
+ void issue( const active_mask_t &mask, unsigned warp_id, unsigned long long cycle )
{
- for (int i=(int)m_config->warp_size-1; i>=0; i--) {
- if( mask & (1<<i) )
- m_warp_active_mask.set(i);
- }
+ m_warp_active_mask=mask;
m_uid = ++sm_next_uid;
m_warp_id = warp_id;
issue_cycle = cycle;