Re: [Gems-users] How to compile Ruby to work with x86 targets (specifically tango)


Date: Thu, 24 Feb 2011 12:48:37 -0600
From: Byn Choi <bynchoi1@xxxxxxxxxxxx>
Subject: Re: [Gems-users] How to compile Ruby to work with x86 targets (specifically tango)
There is a bug in ruby/module/ruby.c - the following line should be inside #ifdef SPARC.

SIM_hap_add_callback("Core_Magic_Instruction", (obj_hap_func_t) magic_instruction_callback, NULL);

magic_instruction_callback contains code specific to SPARC stuff and tries to access registers that only exist on that architecture - that's why you are seeing such errors when running ruby with x86 target.

Byn

On Jan 24, 2011, at 12:03 PM, Demian Rosas wrote:

Thanks for the quick reply Rakesh,

I commented the corresponding line and it compiled well. Thanks.

Now I have followed the Quick Start steps until the point of
initializing Ruby. Then when I start the simulation I got the error

"failed assertion 'mem_trans->s.may_stall' at fn MemoryTransactionResult
SimicsProcessor::makeRequest(memory_transaction_t*) in
simics/SimicsProcessor.C:326"

following this thread:

https://lists.cs.wisc.edu/archive/gems-users/2008-February/msg00041.shtml

I started the simulation without issuing "instruction-fetch-mode
instruction-fetch-trace". After that I get this error "Exception in hap
handler: Non-existent x86 Register".

I am using a checkpoint for a 1 core tango machine. Is it possible to
use tango with GEMS?, if so, is there some parameter to set in order to
indicate Ruby that it is a tango machine?

Is there any documentation to check for this kind of issues?

Thanks a lot in advance.

Cheers.

Rakesh Komuravelli wrote:
Hi,

Make sure that in $GEMS/common/Makefile.simics_version, you comment
the line for TARGET_MACHINE_TYPE.

Thanks,
Rakesh

On Mon, Jan 24, 2011 at 9:43 AM, Demian Rosas <rosasd@xxxxxxxxxxxx
<mailto:rosasd@xxxxxxxxxxxx>> wrote:

   Hi all,

I am a new user of GEMS, I want to use GEMS to simulate x86 multicore
   machines, my question is:

   I have compiled Ruby following the Quick Start section in the wiki
documentation, but if I am right, this compiles for SPARC by default.

   What do I have to do in order to specify Ruby to be compiled for
   working
   with x86 architectures?

   Thanks a lot in advance.

   Cheers.


   _______________________________________________
   Gems-users mailing list
   Gems-users@xxxxxxxxxxx <mailto: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.


[← Prev in Thread] Current Thread [Next in Thread→]