summaryrefslogtreecommitdiff
path: root/src/arch/arm/isa/templates/templates.isa
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2018-02-15 09:57:00 +0000
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2018-02-20 13:30:02 +0000
commita7083ece990adddfd3bec8b48c5db7dee1781d55 (patch)
treeb969138bafaf25660481fb79328775f1f3641c63 /src/arch/arm/isa/templates/templates.isa
parent657d4054ea36e6af8959f2fa7bcfd79b7c887cfd (diff)
downloadgem5-a7083ece990adddfd3bec8b48c5db7dee1781d55.tar.xz
arch-arm: Adding isa templates for semihosting ops
A new class of Semihosting constructor templates has been added. Their main purpose is to check if the Exception Generation Instructions (HLT, SVC) are actually a semihosting command. If that is the case, the IsMemBarrier flag is raised, so that in the O3 model we perform a coherent memory access during the semihosting operation. Change-Id: Ib87fdeb70ee7a930659563230a80cce0e1372c32 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/8370 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/arch/arm/isa/templates/templates.isa')
-rw-r--r--src/arch/arm/isa/templates/templates.isa5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/arm/isa/templates/templates.isa b/src/arch/arm/isa/templates/templates.isa
index 2263cdff4..6d525738d 100644
--- a/src/arch/arm/isa/templates/templates.isa
+++ b/src/arch/arm/isa/templates/templates.isa
@@ -1,6 +1,6 @@
// -*- mode:c++ -*-
-// Copyright (c) 2010-2011 ARM Limited
+// Copyright (c) 2010-2011,2018 ARM Limited
// All rights reserved
//
// The license below extends only to copyright in the software and shall
@@ -40,6 +40,9 @@
//Basic instruction templates
##include "basic.isa"
+//Semihosting instruction templates
+##include "semihost.isa"
+
//Templates for AArch64 bit data instructions.
##include "data64.isa"