summaryrefslogtreecommitdiff
path: root/src/dev/arm/rv_ctrl.cc
diff options
context:
space:
mode:
authorChander Sudanthi <chander.sudanthi@arm.com>2011-05-13 17:27:00 -0500
committerChander Sudanthi <chander.sudanthi@arm.com>2011-05-13 17:27:00 -0500
commit5299c75e62832aab2e200b22c73865ed9c51b335 (patch)
treed439efab806ba35c1bc8cfee0b0a01656a5d513a /src/dev/arm/rv_ctrl.cc
parentb79650ceaaabb87f9bfe145663e2bfa3281ed7df (diff)
downloadgem5-5299c75e62832aab2e200b22c73865ed9c51b335.tar.xz
ARM: Better RealView/Versatile EB platform support.
Add registers and components to better support the VersatileEB board. Made the MIDR and SYS_ID register parameters to ArmSystem and RealviewCtrl respectively.
Diffstat (limited to 'src/dev/arm/rv_ctrl.cc')
-rw-r--r--src/dev/arm/rv_ctrl.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/dev/arm/rv_ctrl.cc b/src/dev/arm/rv_ctrl.cc
index e24fea737..9c546036a 100644
--- a/src/dev/arm/rv_ctrl.cc
+++ b/src/dev/arm/rv_ctrl.cc
@@ -97,8 +97,12 @@ RealViewCtrl::read(PacketPtr pkt)
case Flags:
pkt->set<uint32_t>(flags);
break;
+ case IdReg:
+ pkt->set<uint32_t>(params()->idreg);
+ break;
default:
- panic("Tried to read RealView I/O at offset %#x that doesn't exist\n", daddr);
+ warn("Tried to read RealView I/O at offset %#x that doesn't exist\n",
+ daddr);
break;
}
pkt->makeAtomicResponse();
@@ -128,7 +132,8 @@ RealViewCtrl::write(PacketPtr pkt)
flags = pkt->get<uint32_t>();
break;
default:
- panic("Tried to write RVIO at offset %#x that doesn't exist\n", daddr);
+ warn("Tried to write RVIO at offset %#x that doesn't exist\n",
+ daddr);
break;
}
pkt->makeAtomicResponse();