From 4c73f03139e166a2d7b877877ed071659ffc81e0 Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Fri, 8 Mar 2013 17:28:16 +0100 Subject: [PATCH] Minor optimization: removed obsolete warnings since IOSegment will ensure that write is only called with correct addresses --- se/sics/mspsim/core/IOPort.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/se/sics/mspsim/core/IOPort.java b/se/sics/mspsim/core/IOPort.java index cf7c23c..be490c3 100644 --- a/se/sics/mspsim/core/IOPort.java +++ b/se/sics/mspsim/core/IOPort.java @@ -347,9 +347,6 @@ public class IOPort extends IOUnit { public void write(int address, int data, boolean word, long cycles) { int iAddress = address - offset; - if (iAddress < 0 || iAddress >= portMap.length) { - throw new EmulationException("Writing to illegal IO port address at " + getID() + ": $" + Utils.hex(address, 4)); - } PortReg fun = portMap[iAddress]; if (DEBUG) { log("Writing to " + getID() + fun +