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>
This commit is contained in:
committed by
Giacomo Travaglini
parent
078bdc8661
commit
43e9d8745e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user