From d8b0705cb39c07675cbe2cc2c20a1ec1b3343532 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 3 Dec 2008 15:36:49 +0000 Subject: [PATCH] mspsim should warn at bad memory access (not activated yet) --- .../cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java index 9f7708cc8..04d413d47 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: MspMote.java,v 1.15 2008/10/28 17:02:13 fros4943 Exp $ + * $Id: MspMote.java,v 1.16 2008/12/03 15:36:49 fros4943 Exp $ */ package se.sics.cooja.mspmote; @@ -237,7 +237,8 @@ public abstract class MspMote implements Mote { myELFModule = node.loadFirmware(fileELF.getPath(), memory); } - /* TODO Need new memory type including size and type as well */ + /* Throw exceptions at bad memory access */ + /*myCpu.setThrowIfWarning(true);*/ /* Create mote address memory */ MapTable map = myELFModule.getMap();