mem: Add invalid context id check on LLSC checks
authorTiago Muck <tiago.muck@arm.com>
Wed, 12 Dec 2018 21:52:41 +0000 (15:52 -0600)
committerTiago Mück <tiago.muck@arm.com>
Wed, 22 May 2019 19:43:36 +0000 (19:43 +0000)
commitb8a4c876905d605cf180e77f7d1bb08f2ed22940
treedd19be708a9e321230ab17b28bf27fcb20c66f49
parentc022369490ec94e332f6a09826ef3fc6ad063ca2
mem: Add invalid context id check on LLSC checks

If the request's address is in the LLSC list, its context Id was being
fetched unconditionally, which could cause the assert at
Request::contextId() to fail.

Change-Id: Iae9791f81c8fe9a7fcd842cd8ab7db18f34f2808
Signed-off-by: Tiago Muck <tiago.muck@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18792
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/abstract_mem.cc
src/mem/abstract_mem.hh