target-mips: add PC, XNP reg numbers to RDHWR
authorYongbok Kim <yongbok.kim@imgtec.com>
Thu, 29 Oct 2015 15:18:39 +0000 (15:18 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Fri, 30 Oct 2015 14:35:52 +0000 (14:35 +0000)
commitb00c72180c36510bf9b124e190bd520e3b7e1358
treef5a64bd037c0b5577e406da3a7d17f1fc1f5080d
parentca2f6bbbce32b7e1ba4fdaf54165ab0dee47a3a5
target-mips: add PC, XNP reg numbers to RDHWR

Add Performance Counter (4) and XNP (5) register numbers to RDHWR.
Add check_hwrena() to simplify access control checkings.
Add RDHWR support to microMIPS R6.

Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
target-mips/cpu.h
target-mips/helper.h
target-mips/op_helper.c
target-mips/translate.c