def generate_registers_riscv_plic0_threshold(hart, addr):
    """Generate xml string for riscv_plic0 threshold register for hart"""
    return """\
                <register>
                  <name>threshold_""" + hart + """</name>
                  <description>PRIORITY THRESHOLD Register for hart """ + hart + """</description>
                  <addressOffset>""" + addr + """</addressOffset>
                </register>
"""