On Mon, 22 Oct 2007 10:31:39 +0100, Ralf Baechle <ralf@xxxxxxxxxxxxxx> wrote: > > Use write_c0_compare(read_c0_count()) to clear interrupt. > > And use delta value based on its speed for faster probing. > > Hmm... This one makes c0_compare_int_usable() fails when I run a malta > kernel on last week's qemu. Well, with my qemu-system-mips (0.9.0 and cvs), c0_compare_int_usable() always return 0 with/without my patch. But if I made c0_compare_int_usable() always return 1, it works fine with c0 counter interrupt. Quite strange... --- Atsushi Nemoto