From d0e4cdc9c36466a3dbef8c9f9f509cce8f1a6c34 Mon Sep 17 00:00:00 2001 From: Giacomo Gabrielli Date: Tue, 23 Oct 2018 13:51:52 +0100 Subject: cpu: Add a memory access predicate This changeset introduces a new predicate to guard memory accesses. The most immediate use for this is to allow proper handling of predicated-false vector contiguous loads and predicated-false micro-ops of vector gather loads (added in separate changesets). Change-Id: Ice6894fe150faec2f2f7ab796a00c99ac843810a Signed-off-by: Giacomo Gabrielli Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17991 Tested-by: kokoro Reviewed-by: Bradley Wang Reviewed-by: Nikos Nikoleris Maintainer: Nikos Nikoleris --- src/cpu/simple/exec_context.hh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/cpu/simple') diff --git a/src/cpu/simple/exec_context.hh b/src/cpu/simple/exec_context.hh index fb4ced381..be7a863c5 100644 --- a/src/cpu/simple/exec_context.hh +++ b/src/cpu/simple/exec_context.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2017 ARM Limited + * Copyright (c) 2014-2018 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall @@ -518,6 +518,18 @@ class SimpleExecContext : public ExecContext { } } + bool + readMemAccPredicate() const override + { + return thread->readMemAccPredicate(); + } + + void + setMemAccPredicate(bool val) override + { + thread->setMemAccPredicate(val); + } + /** * Invalidate a page in the DTLB and ITLB. */ -- cgit v1.2.3