Merge pull request #2 from rmn30/master

Fix memory clobber for cheri_setreg in cheric.h.
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