arch-arm: Adding isa templates for semihosting ops
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 15 Feb 2018 09:57:00 +0000 (09:57 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 20 Feb 2018 13:30:02 +0000 (13:30 +0000)
commita7083ece990adddfd3bec8b48c5db7dee1781d55
treeb969138bafaf25660481fb79328775f1f3641c63
parent657d4054ea36e6af8959f2fa7bcfd79b7c887cfd
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>
src/arch/arm/isa/templates/semihost.isa [new file with mode: 0644]
src/arch/arm/isa/templates/templates.isa