From a7083ece990adddfd3bec8b48c5db7dee1781d55 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 15 Feb 2018 09:57:00 +0000 Subject: 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 Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/8370 Maintainer: Andreas Sandberg --- src/arch/arm/isa/templates/templates.isa | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/arch/arm/isa/templates/templates.isa') 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" -- cgit v1.2.3