target-xtensa: refactor CCOUNT/CCOMPARE

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>