diff options
author | Andrew Waterman <waterman@eecs.berkeley.edu> | 2014-03-18 14:39:07 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@eecs.berkeley.edu> | 2014-03-18 14:39:07 -0700 |
commit | 89daf14d5b338c2d603a76477dfdbe8211b5aac0 (patch) | |
tree | 00928395e21efe00ffeab748c40b3cb77f3e4f4c /inst.chisel | |
parent | 94c98fd09835dd4e2f0c37cfc7034d7ee74599c8 (diff) |
Add rdcycleh etc. for RV32
Diffstat (limited to 'inst.chisel')
-rw-r--r-- | inst.chisel | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/inst.chisel b/inst.chisel index efb1ba7..455ca08 100644 --- a/inst.chisel +++ b/inst.chisel @@ -255,6 +255,10 @@ object CSRs { val uarch13 = 0xccd val uarch14 = 0xcce val uarch15 = 0xccf + val counth = 0x586 + val cycleh = 0xc80 + val timeh = 0xc81 + val instreth = 0xc82 val all = { val res = collection.mutable.ArrayBuffer[Int]() res += fflags @@ -301,4 +305,12 @@ object CSRs { res += uarch15 res.toArray } + val all32 = { + val res = collection.mutable.ArrayBuffer(all:_*) + res += counth + res += cycleh + res += timeh + res += instreth + res.toArray + } } |