Hi Polina,
Thanks for the reply. Problem solved. The SIM_hap_register_callback is
obsolete and replaced by SIM_hap_add_callback in Simics 3.x .
Yan
On Mon, 2009-06-01 at 09:07 -0500, Polina Dudnik wrote:
> Yan,
>
> I just realized that we talked about this before. This error yet again
> occurs because you're using Simics 3.
>
> On Mon, Jun 1, 2009 at 9:06 AM, Polina Dudnik <pdudnik@xxxxxxxxx>
> wrote:
> What version of Simics are you using?
>
>
> On Sun, May 31, 2009 at 9:01 PM, Luo, Yan <Yan_Luo@xxxxxxx>
> wrote:
>
>
>
> Hi All,
>
> I encountered a "SIM_hap_register_callback' is not
> defined" error when using scripts generated by
> "gen-scripts". It happened in mfacet.py. The logs are
> below. It looks like missing simics library path.
> Please advise. Thanks! /Yan
>
>
> ### Executing "ruby0.load-caches
> "/home/yluo/gems//simics/checkpoints-u3/zeus//yes""
> Reading cache contents from
> '/home/yluo/gems//simics/checkpoints-u3/zeus//yes'...playbackTrace: 0 minutes
> done. (0 cache lines read)
> Clearing stats...Done.
> Initial memory usage: mem_res: 585.500000 mem_total:
> 891.824219 mem_ratio: 0.656520
> Running...
> Traceback (most recent call last):
> File "../../../gen-scripts/go.simics", line 3, in ?
> @mfacet.load_modules_and_run()
> File "../../../gen-scripts/mfacet.py", line 186, in
> load_modules_and_run
> setup_run_for_n_transactions(transactions,
> dump_interval)
> File "../../../gen-scripts/mfacet.py", line 328, in
> setup_run_for_n_transactions
> SIM_hap_register_callback("Core_Magic_Instruction",
> end_transaction_callback,
> "end_transaction_magic_call")
> NameError: global name 'SIM_hap_register_callback' is
> not defined
> Command aborted
> [../../../gen-scripts/go.simics:3] the command did not
> complete properly; interrupting script
>
>
> _______________________________________________
> 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.
>
|