From fadda2dbe5ad2ee25ba792b0782ee56b1ea2936c Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 13 Jan 2020 17:15:22 -0800 Subject: [PATCH] fastmodel: Set itstate when building a PCState from IRIS. These bits are probably never going to be non-zero since we'd have to take a checkpoint part way through an if/then construct in thumb, but they're easy to extract and we might as well store them properly. Change-Id: Ifc5c34063dd23f72cc106c0d77d90c5e6ee871be Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24328 Reviewed-by: Chun-Chen TK Hsu Maintainer: Gabe Black Tested-by: kokoro --- src/arch/arm/fastmodel/iris/thread_context.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/arm/fastmodel/iris/thread_context.cc b/src/arch/arm/fastmodel/iris/thread_context.cc index 261491d45..3f7102f90 100644 --- a/src/arch/arm/fastmodel/iris/thread_context.cc +++ b/src/arch/arm/fastmodel/iris/thread_context.cc @@ -443,6 +443,8 @@ ThreadContext::pcState() const pc.aarch64(!cpsr.width); pc.nextAArch64(!cpsr.width); pc.illegalExec(false); + pc.itstate(itState(cpsr)); + pc.nextItstate(0); iris::ResourceReadResult result; call().resource_read(_instId, result, pcRscId); -- 2.30.2