Yes, you should put that method in an #ifdef SPARC.
Jayaram
Konstantinos Nikas wrote:
Thanks! These solved the problems. However, another one appeared
simics/interface.C: In function `exception_type_t
core_asi_callback(conf_object_t*, generic_transaction_t*)':
simics/interface.C:97: error: 'class SimicsDriver' has no member named
'asiCallback'
From what I found the asiCallback is defined in SimicsDriver.h only for
SPARC. So definition missing for x86. Or should I just put the static
exception_type_t core_asi_callback in interface.C between #ifdef SPARC
#endif ?
Kind regards,
Kostis
You can safely delete the line causing the first error.
Reg. the second error, the correct fix would be to put the
if conditional in an #ifdef SPARC and add an #else clause for
x86.
650d649
< int asi = mem_trans->address_space;
686a686
> #ifdef SPARC
691a692,694
> #else
> type = CacheRequestType_ATOMIC;
> #endif
Jayaram
Konstantinos Nikas wrote:
Thanks for the quick reply. It did work, so now it breaks at another
point :-)
simics/SimicsProcessor.C: In member function `CacheRequestType
SimicsProcessor::getRequestType(const memory_transaction_t*)':
simics/SimicsProcessor.C:650: error: 'const struct
x86_memory_transaction' has no member named 'address_space'
simics/SimicsProcessor.C:687: error: `SIMICS_is_ldda' was not declared
in this scope
I found that in simics/interface.h SIMICS_is_ldda is defined only for
SPARC. I removed the #ifdef SPARC and the second error dissapears. Not
sure if it is the right thing to do though.
I also can't find where the structure x86_memory_transaction is defined,
so I can't solve the first error.
Kind regards,
Kostis
There's some missing #ifdefs around the memory_transaction_t typedefs. The correct code should
look something like this in the .h files:
#ifdef SIMICS30
#ifdef SPARC
typedef v9_memory_transaction_t memory_transaction_t;
#else
typedef x86_memory_transaction_t memory_transaction_t;
#endif
#endif
Luke
On Thu, 14 Feb 2008, Konstantinos Nikas wrote:
Hi all,
I am trying to use Gems on an x86_64 linux machine. I have downloaded
the latest version of Gems from the website and tried to follow the wiki
documentation. I went through all the steps of "setup for Simics 3.0"
and I am stuck in the Quickstart section "compile Ruby". I am trying to
build the MOSI_SMP_bcast protocol and this is the error I am getting :
In file included from simics/SimicsHypervisor.h:71,
from system/Sequencer.C:81:
log_tm/TransactionSimicsProcessor.h:73: error: conflicting declaration
'typedef struct v9_memory_transaction_t memory_transaction_t'
simics/interface.h:80: error: 'memory_transaction_t' has a previous
declaration as `typedef struct x86_memory_transaction_t
memory_transaction_t'
log_tm/TransactionSimicsProcessor.h:73: error: declaration of `typedef
struct v9_memory_transaction_t memory_transaction_t'
simics/interface.h:80: error: conflicts with previous declaration
`typedef struct x86_memory_transaction_t memory_transaction_t'
log_tm/TransactionSimicsProcessor.h:73: error: declaration of `typedef
struct v9_memory_transaction_t memory_transaction_t'
simics/interface.h:80: error: conflicts with previous declaration
`typedef struct x86_memory_transaction_t memory_transaction_t'
log_tm/TransactionSimicsProcessor.h:73: error: declaration of `typedef
struct v9_memory_transaction_t memory_transaction_t'
simics/interface.h:80: error: conflicts with previous declaration
`typedef struct x86_memory_transaction_t memory_transaction_t'
make[1]: *** [amd64-linux/generated/MOSI_SMP_bcast/obj/Sequencer.o] Error 1
Any idea why this is happening? Why is it using the log_tm files? Is
this the default option? Is there any way to build a system without TM?
Kind regards,
Kostis
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
|