summaryrefslogtreecommitdiff
path: root/src/dev/arm
diff options
context:
space:
mode:
authorAdrian Herrera <adrian.herrera@arm.com>2019-10-16 10:32:36 +0100
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-11-28 10:06:42 +0000
commit43e9d8745eea637fd3f1f4f42b170384689f9d1c (patch)
tree3b69dfe8dc6ada1eb3c07ade4594c9058e6f4fdf /src/dev/arm
parent078bdc86617e096d545b253f359ab27d5b3fdced (diff)
downloadgem5-43e9d8745eea637fd3f1f4f42b170384689f9d1c.tar.xz
dev-arm: device name in AmbaFake accesses
This patch prints the name of the AmbaFake device being accessed. This is useful for identifying the device triggering the warning. Change-Id: I69ca06d5d9bce73d918b8c8b46bb43e92597933b Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22847 Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/dev/arm')
-rw-r--r--src/dev/arm/amba_fake.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dev/arm/amba_fake.cc b/src/dev/arm/amba_fake.cc
index 9c14140fb..fb08c4fa9 100644
--- a/src/dev/arm/amba_fake.cc
+++ b/src/dev/arm/amba_fake.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010 ARM Limited
+ * Copyright (c) 2010, 2019 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -63,7 +63,8 @@ AmbaFake::read(PacketPtr pkt)
pkt->setLE<uint32_t>(0);
if (!readId(pkt, ambaId, pioAddr) && !params()->ignore_access)
- panic("Tried to read AmbaFake at offset %#x that doesn't exist\n", daddr);
+ panic("Tried to read AmbaFake %s at offset %#x that doesn't exist\n",
+ name(), daddr);
pkt->makeAtomicResponse();
return pioDelay;
@@ -76,7 +77,8 @@ AmbaFake::write(PacketPtr pkt)
Addr daddr = pkt->getAddr() - pioAddr;
if (!params()->ignore_access)
- panic("Tried to write AmbaFake at offset %#x that doesn't exist\n", daddr);
+ panic("Tried to write AmbaFake %s at offset %#x that doesn't exist\n",
+ name(), daddr);
pkt->makeAtomicResponse();
return pioDelay;