diff options
author | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2018-11-12 16:46:52 +0000 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2018-11-14 14:22:19 +0000 |
commit | ea0f654923d13a2f81fe7c22eeca4c8cffae947a (patch) | |
tree | 5c6b35b4cf31449bf4ebecae1c765390a3e3a5b5 /src/arch/arm | |
parent | 8590243fef2e4ccaefde3af767496dec44c6eb33 (diff) | |
download | gem5-ea0f654923d13a2f81fe7c22eeca4c8cffae947a.tar.xz |
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 <giacomo.travaglini@arm.com>
Reviewed-by: Anouk Van Laer <anouk.vanlaer@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/14316
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/arch/arm')
-rw-r--r-- | src/arch/arm/isa.cc | 7 |
1 files 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<Request>( 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()); |