mem: Teach SimpleMem to return a MemBackdoor when appropriate.
authorGabe Black <gabeblack@google.com>
Tue, 26 Mar 2019 01:08:27 +0000 (18:08 -0700)
committerGabe Black <gabeblack@google.com>
Sun, 14 Apr 2019 01:01:56 +0000 (01:01 +0000)
commitf9e833b1aba5642df9411fdc5e1ee11456cc6d61
tree6bc98d38ac5bc650804733965a139c3434225f6e
parent73e14fb3679e1063012b67a33c69473713a12304
mem: Teach SimpleMem to return a MemBackdoor when appropriate.

If the back door SimpleMem inherits from AbstractMem has a pointer and
is hence valid, SimpleMem will return that pointer when asked.

Change-Id: I734daba48e4ae5b4ad8ac9a108e7b12b5e82803f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17669
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/mem/simple_mem.cc
src/mem/simple_mem.hh