From ea0f654923d13a2f81fe7c22eeca4c8cffae947a Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Mon, 12 Nov 2018 16:46:52 +0000 Subject: arch-arm: Print register name when warning on AT instructions With this patch we don't print anymore the enum value when warning on any AT instruction usage, but we print the sys reg name instead Change-Id: Ic6831b98ad6b0582be69883dc9519a9d3324da30 Signed-off-by: Giacomo Travaglini Reviewed-by: Anouk Van Laer Reviewed-on: https://gem5-review.googlesource.com/c/14316 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- src/arch/arm/isa.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/arch/arm/isa.cc b/src/arch/arm/isa.cc index 5c1139d8f..a4ebfc1db 100644 --- a/src/arch/arm/isa.cc +++ b/src/arch/arm/isa.cc @@ -1641,7 +1641,8 @@ ISA::setMiscReg(int misc_reg, const MiscReg &val, ThreadContext *tc) // done in the same mode the core is running in. NOTE: This // can't be an atomic translation because that causes problems // with unexpected atomic snoop requests. - warn("Translating via MISCREG(%d) in functional mode! Fix Me!\n", misc_reg); + warn("Translating via %s in functional mode! Fix Me!\n", + miscRegName[misc_reg]); auto req = std::make_shared( 0, val, 0, flags, Request::funcMasterId, @@ -1898,7 +1899,9 @@ ISA::setMiscReg(int misc_reg, const MiscReg &val, ThreadContext *tc) // done in the same mode the core is running in. NOTE: This // can't be an atomic translation because that causes problems // with unexpected atomic snoop requests. - warn("Translating via MISCREG(%d) in functional mode! Fix Me!\n", misc_reg); + warn("Translating via %s in functional mode! Fix Me!\n", + miscRegName[misc_reg]); + req->setVirt(0, val, 0, flags, Request::funcMasterId, tc->pcState().pc()); req->setContext(tc->contextId()); -- cgit v1.2.3