mem-ruby: Allow MachineID to be unordered key
authorMatthew Poremba <matthew.poremba@amd.com>
Tue, 28 Apr 2020 23:12:23 +0000 (16:12 -0700)
committerMatthew Poremba <matthew.poremba@amd.com>
Mon, 8 Jun 2020 16:39:21 +0000 (16:39 +0000)
commitbbb6a3fe8d787d4426060dfa29560ed8edf13a81
tree7ea0f2e6bf2de96abe454be5961bc43987d558d6
parent7ce081d583969bda0690e59ae50ca2d93bb56280
mem-ruby: Allow MachineID to be unordered key

Define an std::hash function so that MachineID may be used as a key
type for unordered STL containers.

Change-Id: Ibc3bc78149c69683207d8967542fa6e8d545f75c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29652
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/ruby/common/MachineID.hh