diff options
Diffstat (limited to 'src/bp_sim.cpp')
-rwxr-xr-x | src/bp_sim.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp index db273b18..62e8d822 100755 --- a/src/bp_sim.cpp +++ b/src/bp_sim.cpp @@ -177,8 +177,8 @@ physical_thread_id_t CPlatformSocketInfoNoConfig::thread_virt_to_phy(virtual_thr return (virt_id); } -bool CPlatformSocketInfoNoConfig::thread_phy_is_master(physical_thread_id_t phy_id){ - return (phy_id==0); +physical_thread_id_t CPlatformSocketInfoNoConfig::get_master_phy_id() { + return (0); } bool CPlatformSocketInfoNoConfig::thread_phy_is_rx(physical_thread_id_t phy_id){ @@ -402,8 +402,8 @@ physical_thread_id_t CPlatformSocketInfoConfig::thread_virt_to_phy(virtual_threa return ( m_thread_virt_to_phy[virt_id]); } -bool CPlatformSocketInfoConfig::thread_phy_is_master(physical_thread_id_t phy_id){ - return (m_platform->m_master_thread==phy_id?true:false); +physical_thread_id_t CPlatformSocketInfoConfig::get_master_phy_id() { + return m_platform->m_master_thread; } bool CPlatformSocketInfoConfig::thread_phy_is_rx(physical_thread_id_t phy_id){ @@ -481,6 +481,10 @@ bool CPlatformSocketInfo::thread_phy_is_master(physical_thread_id_t phy_id){ return ( m_obj->thread_phy_is_master(phy_id)); } +physical_thread_id_t CPlatformSocketInfo::get_master_phy_id() { + return ( m_obj->get_master_phy_id()); +} + bool CPlatformSocketInfo::thread_phy_is_rx(physical_thread_id_t phy_id) { return ( m_obj->thread_phy_is_rx(phy_id)); } @@ -4669,7 +4673,7 @@ void CFlowGenList::Dump(FILE *fd){ int i; for (i=0; i<(int)m_cap_gen.size(); i++) { CFlowGeneratorRec * lp=m_cap_gen[i]; - lp->Dump(stdout); + lp->Dump(fd); } } |