cpu: Add hash functionality for RegId class
authorBradley Wang <radwang@ucdavis.edu>
Fri, 20 Jul 2018 01:28:49 +0000 (18:28 -0700)
committerBradley Wang <radwang@ucdavis.edu>
Fri, 10 Aug 2018 23:41:23 +0000 (23:41 +0000)
commit1bab261961536d81ca325762385ead702b2318ff
tree5f9dbf0bc77f4b1b1e1976b42f91e6316daf288c
parentcd913125d11b01a584ad08b32d988b786c42fe39
cpu: Add hash functionality for RegId class

Having a hash function defined within the header will allow all
classes using RegId to use the class as a Key in a STL
unordered_map.

Change-Id: I32fd302a087c74e844dcbfce93fef9d0ed98d6bf
Signed-off-by: Bradley Wang <radwang@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/11870
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/cpu/reg_class.hh