Fixed a bug on the athlon.
Fixed a bug on the athlon.

My assert statement was only comparing the lower 2 bits on the register
selector field. However, on the Athlon (and on the PIV) we've got more
than 2 counters! We can't hardcode 0x3, but rather we use
1<< number_counters -1 instead.

Phil

pyrovski/papi,arm-hpc/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi