Changeset 973 for branches


Ignore:
Timestamp:
Apr 15, 2015, 4:02:06 PM (10 years ago)
Author:
cfuguet
Message:

improve debug messages

  • replace the BDEV_DEBUG define by the SOCLIB_MODULE_DEBUG define to allow the use of -b on the soclib-cc command.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/vci_xicu/caba/source/src/vci_xicu.cpp

    r881 r973  
    449449
    450450#if SOCLIB_MODULE_DEBUG
    451 if ( b ) std::cout << "p_irq[" << i << "] = " << b << std::endl;
     451if ( b && !p_irq[i].read())
     452{
     453    std::cout << "[" << name() << "] set p_irq[" << i << "] / "
     454              << std::hex
     455              << " msk_pti[" << i << "] = " << r_msk_pti[i] << " / "
     456              << " pti_pending = " << r_pti_pending << " / "
     457              << " msk_wti[" << i << "] = " << r_msk_wti[i] << " / "
     458              << " wti_pending = " << r_wti_pending << " / "
     459              << " msk_hwi[" << i << "] = " << r_msk_hwi[i] << " / "
     460              << " hwi_pending = " << r_hwi_pending
     461              << std::dec << std::endl;
     462}
     463if ( !b && p_irq[i].read())
     464{
     465    std::cout << "[" << name() << "] unset p_irq[" << i << "]" << std::endl;
     466}
    452467#endif
    453468        p_irq[i] = b;
Note: See TracChangeset for help on using the changeset viewer.