def get_itim(tree, hart):
    """Get the ITIM associated with the hart"""
    itim_ref = hart.get_field("sifive,itim")
    if itim_ref:
        itim = tree.get_by_reference(itim_ref)
        return itim
    return None