move function to get rdhwr cycle counter from sandbox.c into cheri.h to make it available for other uses.
fix syntax error introduced in previous commit to cheri_setreg
Merge pull request #3 from rmn30/master

Fix for commit 58afa741 and move function to header.