def generate_registers_riscv_clint0_mtime(addr):
    """Generate xml string for riscv_clint0 mtime register"""
    return """\
                <register>
                  <name>mtime</name>
                  <description>MTIME Register</description>
                  <addressOffset>""" + addr + """</addressOffset>
                  <size>64</size>
                </register>
"""