From 71c6a68a2f363de3b50ec15151e5d78605666292 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Mon, 4 Jun 2018 17:50:46 +0100 Subject: dev-arm: Fix the address range for some I/O devices Previously, many devices were incorrecty configured to respond to an address range of size 0xfff. This changes fixes this and sets it to 0x1000. Change-Id: I4b027a27adf60ceae4859e287d7f34443b398752 Reviewed-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/11116 Reviewed-by: Jason Lowe-Power Maintainer: Andreas Sandberg --- src/dev/i2c/bus.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dev/i2c') diff --git a/src/dev/i2c/bus.cc b/src/dev/i2c/bus.cc index af5d6c825..bf8cb8701 100644 --- a/src/dev/i2c/bus.cc +++ b/src/dev/i2c/bus.cc @@ -53,7 +53,7 @@ using std::map; * http://infocenter.arm.com/help/topic/com.arm.doc.dui0440b/Bbajihec.html */ I2CBus::I2CBus(const I2CBusParams *p) - : BasicPioDevice(p, 0xfff), scl(1), sda(1), state(IDLE), currBit(7), + : BasicPioDevice(p, 0x1000), scl(1), sda(1), state(IDLE), currBit(7), i2cAddr(0x00), message(0x00) { vector devs = p->devices; -- cgit v1.2.3