summaryrefslogtreecommitdiff
path: root/src/arch/arm/isa_device.cc
diff options
context:
space:
mode:
authorSean McGoogan <Sean.McGoogan@arm.com>2017-02-02 20:49:12 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-11-16 16:14:51 +0000
commit899ad72060a7a95d6c1d7090c40f23a04699b43c (patch)
treec3cb99b92985ac8493a6e7adb74875963de3f816 /src/arch/arm/isa_device.cc
parent8d59fe4bc363b4dc155957def6f2a17ffbb57ea4 (diff)
downloadgem5-899ad72060a7a95d6c1d7090c40f23a04699b43c.tar.xz
arch, arm: Print value being ignored on DummyISA write
When ignoring writes to the Dummy ISA device (DummyISADevice), additionally print the value being ignored in the diagnostic. Sometimes it is useful to know exactly what we are dropping ... Change-Id: I9a01623611f0da0aa12b065fbb2031aa27e2c036 Signed-off-by: Sean McGoogan <Sean.McGoogan@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/5731 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/arch/arm/isa_device.cc')
-rw-r--r--src/arch/arm/isa_device.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/arm/isa_device.cc b/src/arch/arm/isa_device.cc
index 0bb488dac..813d163e0 100644
--- a/src/arch/arm/isa_device.cc
+++ b/src/arch/arm/isa_device.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014 ARM Limited
+ * Copyright (c) 2014,2017 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -60,7 +60,9 @@ BaseISADevice::setISA(ISA *_isa)
void
DummyISADevice::setMiscReg(int misc_reg, MiscReg val)
{
- warn("Ignoring write to miscreg %s\n", miscRegName[misc_reg]);
+ warn("Ignoring write of 0x%lx to miscreg %s\n",
+ val,
+ miscRegName[misc_reg]);
}
MiscReg