Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#5 closed defect (fixed)

simulation exception

Reported by: wagner@… Owned by: somebody
Priority: major Component: component1
Keywords: Cc:

Description

Bonjour,

J'utilise la nouvelle version de SocLib (21 juin 2007)qui resoud les problemes de nommage de fichiers sous Windows. Lors du test (make) sous ../platforms/timer_4mips la compilation se deroule bien. Par contre lors de la phase de simulation, un message "unknow exception occured" apparait. En traçant l'execution, le problème apparait dans la fonction getRoutingTable (vci_vgmn.cc) ===================================================================================== if ( done[addr] && adt[addr] != val )

{

std::cout << " getRoutingTable EXCEPTION" << std::endl;

throw soclib::exception::RunTimeError("Inconherent Mapping Table");

===================================================================================== avec val=3 addr=b0200000 done=1 adt=0, ce qui correspond au mapping du timer.

Sous un environnement darwin la simulation est OK

Merci de votre aide, Charles

Change History (2)

comment:1 Changed 17 years ago by Nicolas Pouillon

Est-ce que ca "marche" avec le patch suivant appliqué au top.cc ?

Index: top.cc
===================================================================
--- top.cc      (revision 18)
+++ top.cc      (working copy)
@@ -15,6 +15,8 @@
 
 #define SEGTYPEMASK 0x00300000
 
+soclib::common::IntTab IT8(8);
+
 int _main(int argc, char *argv[])
 {
        // Avoid repeating these everywhere
@@ -26,7 +28,7 @@
 
        // Mapping table
 
-       soclib::common::MappingTable maptab(32, IntTab(8), IntTab(8), 0x00300000);
+       soclib::common::MappingTable maptab(32, IT8, IT8, 0x00300000);
 
        maptab.add(Segment("reset", RESET_BASE, RESET_SIZE, IntTab(0), true));
        maptab.add(Segment("excep", EXCEP_BASE, EXCEP_SIZE, IntTab(0), true));

comment:2 Changed 17 years ago by Nicolas Pouillon

Resolution: fixed
Status: newclosed

Fixé dans [47]

Note: See TracTickets for help on using tickets.