Date: | Mon, 15 May 2006 21:17:24 +0200 |
---|---|
From: | "Marco Tirado" <marco.tirado@xxxxxxxxx> |
Subject: | [Gems-users] Segmentation Fault |
Hello Dan:
Thank you for answering so quickly. We are not getting the segmentation error now, the problem was that we were loading the ruby module but we did not initialize it with instruction ruby0.init untill we went into a MAGIC_BREAKPOINT subroutine that we have impemented in our code. However we still have some problems trying to load ruby on a magic breakpoint subroutine. We are running SPLASH2 on a sarek SPARC target and we want to start ruby in a specific part of the workload code so we are using magic breakpoints. Our script is the following:
read-configuration /localdisk/cmp/chkpt/cold_watersp4p.chkpt instruction-fetch-mode instruction-fetch-traceistc-disable dstc-disable $control = 0
@def hap_callback(user_arg, cpu, arg): if simenv.control == 0: eval_cli_line("run-command-file startRuby.simics") else: eval_cli_line("run-command-file stopRuby.simics") simenv.control = simenv.control+1 @SIM_hap_add_callback("Core_Magic_Instruction", hap_callback, None) echo("Magic interruption handler conf sucess") c We added the MAGIC_BREAKPOINT instruction in the workload source right before the important part of the code starts, and we start ruby there, the script looks lile this:
load-module ruby
ruby0.setparam g_NUM_PROCESSORS 4 ruby0.setparam g_NUM_L2_BANKS 4 ruby0.setparam g_NUM_MEMORIES 4 ruby0.setparam g_PROCS_PER_CHIP 4 ruby0.setparam g_endpoint_bandwidth 1000
ruby0.setparam_str g_NETWORK_TOPOLOGY FILE_SPECIFIED ruby0.setparam_str g_CACHE_DESIGN NUCA_Mesh ruby0.setparam L1_CACHE_NUM_SETS_BITS 8 #ruby0.setparam DIR_CACHE_NUM_SETS_BITS 8
ruby0.setparam L2_CACHE_NUM_SETS_BITS 12 ruby0.setparam g_DATA_BLOCK_BYTES 32 ruby0.setparam g_MEMORY_SIZE_BYTES 4294967296
ruby0.init However we get an error message once we go into the MAGIC_BREAKPOINT subroutine since we need to stop simics in order to load ruby. The message is:
[start2.simics:37] c
[startRuby.simics:1] load-module ruby This command cannot be used when Simics is running. [startRuby.simics:1] the command did not complete properly; interrupting script We thought the magic breakpoint would stop simics, but it is not the case. Are we missing something? is there another way to do this? Thanks again. Best Regards
Enric and Marco On 5/15/06, Dan Gibson <degibson@xxxxxxxx> wrote:
Marco+Enric, |
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | Re: [Gems-users] problems building GEMS, Dan Gibson |
---|---|
Next by Date: | Re: [Gems-users] problems building GEMS, Daniel Nussbaum, arrvindh shriraman |
Previous by Thread: | Re: [Gems-users] Segmentation Fault, Dan Gibson |
Next by Thread: | Re: [Gems-users] Segmentation Fault, Dan Gibson |
Indexes: | [Date] [Thread] |