Thanks, that was it! Solved now.

On Sat, Mar 31, 2018 at 7:01 AM, Ciro Santilli <[email protected]>
wrote:

> I would bet it is because glibc stuff that runs before main at _start, or
> maybe something to do with dynamic loader.
>
> Have you taken steps to prevent those glibc things from being added to the
> executable, e.g. test it out with a raw assembly Linux hello world program
> like https://github.com/cirosantilli/x86-assembly-cheat/blob/
> 7402ae11b78829c202b91d37b9f898411900b13b/linux/hello_world.asm or gcc
> options like -ffreestanding?
>
> If that is the source of the problem, you could add stuff like m5
> resetstats or m5 checkpoint magic instruction to the beginning of your
> main() or ROI to work around it.
>
> On Sat, Mar 31, 2018 at 6:50 AM, Barbora Murinová <
> [email protected]> wrote:
>
>> I have and it works, but for a three line program that just sets a value,
>> it claims to execute about 77 thousand instructions, which doesn't seem too
>> realistic. Do you know why is that happening?
>>
>> As for your problem, I have never encountered it, but it might be because
>> I'm running Ubuntu 16.04 at the moment and I haven't updated gem5 since
>> commit 9651c0278d93bf5c4620e198baac975f0c84e9a0.
>>
>> On Sat, Mar 31, 2018 at 6:43 AM, Ciro Santilli <[email protected]>
>> wrote:
>>
>>> Have you tried gem5.opt --debug-flags=Exec as explained at
>>> http://www.gem5.org/Trace_Based_Debugging ?
>>>
>>> I can't test it on SE because I can't get SE working at all:
>>> https://stackoverflow.com/questions/48959349/how-to-sol
>>> ve-fatal-kernel-too-old-when-running-gem5-in-syscall-emulation-se-m ,
>>> how did you do it? But it does work on fs.py.
>>>
>>>
>>> On Fri, Mar 30, 2018 at 11:08 PM, Barbora Murinová <
>>> [email protected]> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I would like to have each executed instruction of the file being
>>>> executed printed out. Something along the lines of:
>>>>
>>>>     leaq    -32(%rbp), %rcx
>>>>     movq    %rcx, %rax
>>>>
>>>> and so on. How can I do that?
>>>>
>>>> Thank you,
>>>> Barbora
>>>>
>>>> --
>>>> ----------------
>>>> Barbora Murinová
>>>> The University of Edinburgh
>>>> SK: +421905718390 <+421%20905%20718%20390>
>>>> UK: +447477833795 <+44%207477%20833795>
>>>>
>>>> _______________________________________________
>>>> gem5-users mailing list
>>>> [email protected]
>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>>
>>>
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>>
>> --
>> ----------------
>> Barbora Murinová
>> The University of Edinburgh
>> SK: +421905718390 <+421%20905%20718%20390>
>> UK: +447477833795 <+44%207477%20833795>
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>



-- 
----------------
Barbora Murinová
The University of Edinburgh
SK: +421905718390
UK: +447477833795
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to