diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-07-12 11:10:26 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-07-12 11:10:26 -0700 |
commit | d88671efdfd08f5fcb33b4c4099d79eb82978c62 (patch) | |
tree | 7b9d7acaf54b4f907def6ef5eb2f9bec42021652 /pk/handlers.c | |
parent | dadad2d984342643cad8b2d22b7549f986d3e05e (diff) | |
download | pk-d88671efdfd08f5fcb33b4c4099d79eb82978c62.zip pk-d88671efdfd08f5fcb33b4c4099d79eb82978c62.tar.gz pk-d88671efdfd08f5fcb33b4c4099d79eb82978c62.tar.bz2 |
Remove uarch counters
We'll re-add support for the generic performance counter facility once
it exists.
Diffstat (limited to 'pk/handlers.c')
-rw-r--r-- | pk/handlers.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/pk/handlers.c b/pk/handlers.c index 71466b8..1961852 100644 --- a/pk/handlers.c +++ b/pk/handlers.c @@ -14,13 +14,6 @@ static void handle_illegal_instruction(trapframe_t* tf) else kassert(len == 2); - // supply 0 for unimplemented uarch counters - if ((tf->insn & (MASK_CSRRS | 0xcc0U<<20)) == (MATCH_CSRRS | 0xcc0U<<20)) { - tf->gpr[(tf->insn >> 7) & 0x1f] = 0; - tf->epc += 4; - return; - } - dump_tf(tf); panic("An illegal instruction was executed!"); } |