Re: [gem5-users] use_kvm.hh

2017-08-09 Thread Nidhi Kamath
Hello,

Yes. But it is not getting generated automatically during build and hence
the system.cc file throws an error saying it cannot find that file.

Can you tell me what exactly generates this file?

Regards
Nidhi

On Aug 9, 2017 5:14 PM, "Serhat Gesoglu" <serhat.geso...@manchester.ac.uk>
wrote:

> Hello,
> It is an automatically created file, after building a system you can find
> this file in gem5_dir/build/[arch]/config/
>
> Hope this helps.
>
> Serhat Gesoglu
> 
> From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Nidhi Kamath [
> nidhikamat...@gmail.com]
> Sent: 09 August 2017 15:30
> To: gem5 users mailing list
> Subject: [gem5-users] use_kvm.hh
>
> Hello,
>
> In the new gem5 git repository , the file system.cc in src/sim uses the
> file
> #include "config/use_kvm.hh".
>
> I cannot find this file in any location. What does this file and where can
> I find it?
>
> Regards
> Nidhi
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] use_kvm.hh

2017-08-14 Thread Nidhi Kamath
Thank You.

The issue got resolved.

"USE_KVM" was missing from export_vars in gem5_dir/src/SConscript. Adding
it there, helped the build complete successfully.

Regards
Nidhi

On Thu, Aug 10, 2017 at 4:01 PM, Serhat Gesoglu <
serhat.geso...@manchester.ac.uk> wrote:

> Hello,
> Not sure what could have caused the error. Which patches did you apply if
> I may ask?
>
> The file is supposed to be created by gem5_dir/SConstruct. You can see
> "USE_KVM" there and export_vars in gem5_dir/src/SConscript. It only
> contains one line which, for my case, "#define USE_KVM 0".
>
> https://gem5.googlesource.com/public/gem5/+/master/SConstruct#1295
> https://gem5.googlesource.com/public/gem5/+/master/src/SConscript#361
>
> Cheers
> Serhat Gesoglu
> ________
> From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Nidhi Kamath [
> nidhikamat...@gmail.com]
> Sent: 09 August 2017 21:33
> To: gem5 users mailing list
> Subject: Re: [gem5-users] use_kvm.hh
>
> Yes,
>
> I am using the latest version gem5 git repository.
>
> I installed it and successfully build it. After which I applied a patch on
> it which is when i am getting the issue.
>
> That is why I wanted to know how exactly is the file generated and from
> where.
>
> Can you explain more about the cleanup?
>
> Regards
> Nidhi
>
> On Aug 9, 2017 10:30 PM, "Serhat Gesoglu" <serhat.geso...@manchester.ac.uk
> <mailto:serhat.geso...@manchester.ac.uk>> wrote:
> Hello,
> The file should be created by scons. I just did a clean clone and build,
> and the aforementioned file was created without any problems. Are you using
> the latest version of gem5? Can you try rebuilding again?
>
> Cheers
> Serhat Gesoglu
> 
> From: gem5-users [gem5-users-boun...@gem5.org<mailto:gem5-users-bounces@
> gem5.org>] on behalf of Nidhi Kamath [nidhikamat...@gmail.com nidhikamat...@gmail.com>]
> Sent: 09 August 2017 18:55
> To: gem5 users mailing list
> Subject: Re: [gem5-users] use_kvm.hh
>
> Hello,
>
> Yes. But it is not getting generated automatically during build and hence
> the system.cc file throws an error saying it cannot find that file.
>
> Can you tell me what exactly generates this file?
>
> Regards
> Nidhi
>
> On Aug 9, 2017 5:14 PM, "Serhat Gesoglu" <serhat.geso...@manchester.ac.uk
> <mailto:serhat.geso...@manchester.ac.uk><mailto:serha
> t.geso...@manchester.ac.uk<mailto:serhat.geso...@manchester.ac.uk>>>
> wrote:
> Hello,
> It is an automatically created file, after building a system you can find
> this file in gem5_dir/build/[arch]/config/
>
> Hope this helps.
>
> Serhat Gesoglu
> 
> From: gem5-users [gem5-users-boun...@gem5.org<mailto:gem5-users-bounces@
> gem5.org><mailto:gem5-users-boun...@gem5.org<mailto:gem5-
> users-boun...@gem5.org>>] on behalf of Nidhi Kamath [
> nidhikamat...@gmail.com<mailto:nidhikamat...@gmail.com> nidhikamat...@gmail.com<mailto:nidhikamat...@gmail.com>>]
> Sent: 09 August 2017 15:30
> To: gem5 users mailing list
> Subject: [gem5-users] use_kvm.hh
>
> Hello,
>
> In the new gem5 git repository , the file system.cc in src/sim uses the
> file
> #include "config/use_kvm.hh".
>
> I cannot find this file in any location. What does this file and where can
> I find it?
>
> Regards
> Nidhi
> ___
> gem5-users mailing list
> gem5-users@gem5.org<mailto:gem5-users@gem5.org><mailto:gem5-users@gem5.org
> <mailto:gem5-users@gem5.org>>
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> ___
> gem5-users mailing list
> gem5-users@gem5.org<mailto:gem5-users@gem5.org>
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] use_kvm.hh

2017-08-09 Thread Nidhi Kamath
Yes,

I am using the latest version gem5 git repository.

I installed it and successfully build it. After which I applied a patch on
it which is when i am getting the issue.

That is why I wanted to know how exactly is the file generated and from
where.

Can you explain more about the cleanup?

Regards
Nidhi

On Aug 9, 2017 10:30 PM, "Serhat Gesoglu" <serhat.geso...@manchester.ac.uk>
wrote:

> Hello,
> The file should be created by scons. I just did a clean clone and build,
> and the aforementioned file was created without any problems. Are you using
> the latest version of gem5? Can you try rebuilding again?
>
> Cheers
> Serhat Gesoglu
> 
> From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Nidhi Kamath [
> nidhikamat...@gmail.com]
> Sent: 09 August 2017 18:55
> To: gem5 users mailing list
> Subject: Re: [gem5-users] use_kvm.hh
>
> Hello,
>
> Yes. But it is not getting generated automatically during build and hence
> the system.cc file throws an error saying it cannot find that file.
>
> Can you tell me what exactly generates this file?
>
> Regards
> Nidhi
>
> On Aug 9, 2017 5:14 PM, "Serhat Gesoglu" <serhat.geso...@manchester.ac.uk
> <mailto:serhat.geso...@manchester.ac.uk>> wrote:
> Hello,
> It is an automatically created file, after building a system you can find
> this file in gem5_dir/build/[arch]/config/
>
> Hope this helps.
>
> Serhat Gesoglu
> ________
> From: gem5-users [gem5-users-boun...@gem5.org<mailto:gem5-users-bounces@
> gem5.org>] on behalf of Nidhi Kamath [nidhikamat...@gmail.com nidhikamat...@gmail.com>]
> Sent: 09 August 2017 15:30
> To: gem5 users mailing list
> Subject: [gem5-users] use_kvm.hh
>
> Hello,
>
> In the new gem5 git repository , the file system.cc in src/sim uses the
> file
> #include "config/use_kvm.hh".
>
> I cannot find this file in any location. What does this file and where can
> I find it?
>
> Regards
> Nidhi
> ___
> gem5-users mailing list
> gem5-users@gem5.org<mailto:gem5-users@gem5.org>
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] use_kvm.hh

2017-08-09 Thread Nidhi Kamath
Hello,

In the new gem5 git repository , the file system.cc in src/sim uses the
file
#include "config/use_kvm.hh".

I cannot find this file in any location. What does this file and where can
I find it?

Regards
Nidhi
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Cannot compile the newest gem5 repository

2017-06-22 Thread Nidhi Kamath
Hello,

I was trying to set up my gem5 repository. I followed the below steps

Steps for getting a copy of the source code:

   - Install git. This is available in the git package on Ubuntu and Redhat
   and OS X macports or home-brew.


   - Clone the development repository git clone
   https://gem5.googlesource.com/public/gem5.


   - After you clone the repository you can update it by typing git pull.


But it fails everytime with the below error

scons build/X86/gem5.fast
Error Don't know what compiler options to use for your compiler.
   compiler: None
   version: COMMAND NOT FOUND!
   If you're trying to use a compiler other than GCC
   or clang, there appears to be something wrong with your
   environment.


I already have gcc4.8 and gcc 4.7 installed. I also have installed
g++4.8 and d g++4.8.

Has anyone faced this issue earlier. Please guide.


Regards

Nidhi
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Cannot compile the newest gem5 repository

2017-06-23 Thread Nidhi Kamath
Hello,

I think I have them installed. Well I will cross check again.

When I installed the repository, I had gcc and g++ both on 4.7. When I
tried to the repository, it asked me to use the compiler for 4.8. Hence I
installed 4.8 of gcc and g++, after which when i tried to compile the
repository, It throws this error.

I also had another repository of older version which was compiling
perfectly, but now even that repository throws the same error.

scons: Reading SConscript files ...
Error Don't know what compiler options to use for your compiler.
   compiler: None
   version: COMMAND NOT FOUND!
   If you're trying to use a compiler other than GCC
   or clang, there appears to be something wrong with your
   environment.

   If you are trying to use a compiler other than those listed
   above you will need to ease fix SConstruct and
   src/SConscript to support that compiler.


Regards
Nidhi

On Fri, Jun 23, 2017 at 10:37 AM, Francesco Mazzei <mazzeifr...@gmail.com>
wrote:

> Hello Nidhi,
>
> have you installed all the additional tools required to build gem5? Please
> refer to http://gem5.org/Dependencies
>
> Regards,
> Francesco
>
> On 22 June 2017 at 20:31, Nidhi Kamath <nidhikamat...@gmail.com> wrote:
>
>> Hello,
>>
>> I was trying to set up my gem5 repository. I followed the below steps
>>
>> Steps for getting a copy of the source code:
>>
>>- Install git. This is available in the git package on Ubuntu and
>>Redhat and OS X macports or home-brew.
>>
>>
>>- Clone the development repository git clone https://gem5.googlesourc
>>e.com/public/gem5.
>>
>>
>>- After you clone the repository you can update it by typing git pull.
>>
>>
>> But it fails everytime with the below error
>>
>> scons build/X86/gem5.fast
>> Error Don't know what compiler options to use for your compiler.
>>compiler: None
>>version: COMMAND NOT FOUND!
>>If you're trying to use a compiler other than GCC
>>or clang, there appears to be something wrong with your
>>environment.
>>
>>
>> I already have gcc4.8 and gcc 4.7 installed. I also have installed g++4.8 
>> and d g++4.8.
>>
>> Has anyone faced this issue earlier. Please guide.
>>
>>
>> Regards
>>
>> Nidhi
>>
>>
>>
>>
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Running a pthread on Gem5 SE x86

2017-12-14 Thread Nidhi Kamath
Hello,

I am trying to run a simple pthread program in gem5 SE x86 mode but it
errors out. the program is as below

#include 
#include 

int result;

void *sum(void *threadid) {
   int a=5;
   int b=5;
   result = a+b;
   printf("result from 1st thread is %d\n",result);
   pthread_exit(NULL);
}

void *diff(void *threadid) {
   int a=5;
   int b=5;
   result = a-b;
   printf("result from 2nd thread is %d\n",result);
   pthread_exit(NULL);
}


int main () {
   pthread_t thread1 , thread2;
   int rc;
   int i;

  rc = pthread_create(, NULL, sum, (void *)(i));
  rc = pthread_create(, NULL, diff, (void *)(i));

  pthread_join(thread1, NULL);
  pthread_join(thread2, NULL);


  if (rc) {
 printf("Error:unable to create thread");
  }

   pthread_exit(NULL);
   return 0;
}

And also when I run in SE mode I get the below output.

lap318@lap318-HP-Compaq-6730b-KE717AV ~/gem5 $ build/X86/gem5.opt
configs/example/se.py -n 4 -c thread
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Nov 28 2017 12:18:46
gem5 started Dec 14 2017 15:46:43
gem5 executing on lap318-HP-Compaq-6730b-KE717AV, pid 2871
command line: build/X86/gem5.opt configs/example/se.py -n 4 -c thread

Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range
assigned (512 Mbytes)
0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
0: system.remote_gdb.listener: listening for remote gdb #1 on port 7001
0: system.remote_gdb.listener: listening for remote gdb #2 on port 7002
0: system.remote_gdb.listener: listening for remote gdb #3 on port 7003
 REAL SIMULATION 
MODIFIED_GEM5 is disabled.
info: Entering event queue @ 0.  Starting simulation...
warn: ignoring syscall access(...)
warn: ignoring syscall access(...)
warn: ignoring syscall access(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall set_robust_list(...)
fatal: syscall futex (#240) unimplemented.
Memory Usage: 583416 KBytes


Could anybody please help me with this issue.

Regards
Nidhi
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Fault injection by changing the instructions.

2017-12-18 Thread Nidhi Kamath
Hello,

I am running a simple program on gem5 SE mode , The program is as below



*int a = 2;int b = 3;b = a+12;*

In b=a+12 , the value of a is *loaded*, summed with 12 and *stored* in b.

Instead of executing the load a, I want to change it to store a , Is there
a way I can do it in Gem5 , If yes, then what changes should I be making.

Help would be appreciated.

Regards
Nidhi
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] M5thread support on 32 bit system

2017-12-19 Thread Nidhi Kamath
Hello,

I do understand that for multithreading in gem5 SE x86, I need to use
m5threads. Correct me if I am wrong.

Are m5threads supported on a 32 bit system ?

I found an old mail archive which says that it does not support.

Regards
Nidhi
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Version of gem5

2017-12-17 Thread Nidhi Kamath
Hello,

How do I find the version of gem5 in my system ?

Regards
Nidhi


 Sent with Mailtrack

___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Error while compiling lipthread(m5 threads)

2017-12-17 Thread Nidhi Kamath
Hello,

When I try to compile libpthread I get the below error

lap318@lap318-HP-Compaq-6730b-KE717AV ~/gem5/m5threads $ make
gcc -O3 -static-c -o pthread.o pthread.c









*pthread.c:40:2: error: #error "spinlock routines not available for your
arch!\n" #error "spinlock routines not available for your arch!\n"  ^In
file included from pthread.c:43:0:tls_defs.h:220:4: error: #error "No TLS
defs for your architecture"   #error "No TLS defs for your architecture"
^pthread.c: In function ‘populate_thread_block_info’:pthread.c:58:37:
error: ‘tcbhead_t’ undeclared (first use in this function) #define
NPTL_TCBHEAD_T_SIZE (sizeof(tcbhead_t))*

Is there something I am missing ? May be some missing path variable or some
minor modification of the code somewhere. Because I have the files
spinlock_x86.h and tls_defs.h.

Regards
Nidhi

‌
 Sent with Mailtrack

___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Running pthreads on gem5

2017-12-12 Thread Nidhi Kamath
Hello,

I was trying to run a simple pthread program on x86 SE mode.

Are m5threads the only way to do this ?

When I try to compile libpthread I get the below error

lap318@lap318-HP-Compaq-6730b-KE717AV ~/gem5/m5threads $ make
gcc -O3 -static-c -o pthread.o pthread.c
pthread.c:40:2: error: #error "spinlock routines not available for your
arch!\n"
 #error "spinlock routines not available for your arch!\n"
  ^
In file included from pthread.c:43:0:
tls_defs.h:220:4: error: #error "No TLS defs for your architecture"
   #error "No TLS defs for your architecture"
^
pthread.c: In function ‘populate_thread_block_info’:
pthread.c:58:37: error: ‘tcbhead_t’ undeclared (first use in this function)
 #define NPTL_TCBHEAD_T_SIZE (sizeof(tcbhead_t))
 ^
pthread.c:115:67: note: in expansion of macro ‘NPTL_TCBHEAD_T_SIZE’
 size_t sz = sizeof(pthread_tcb_t) + thread_block_info.tls_memsz +
NPTL_TCBHEAD_T_SIZE + thread_block_info.stack_guard_size + CHILD_STACK_SIZE;
   ^
pthread.c:58:37: note: each undeclared identifier is reported only once for
each function it appears in
 #define NPTL_TCBHEAD_T_SIZE (sizeof(tcbhead_t))
 ^
pthread.c:115:67: note: in expansion of macro ‘NPTL_TCBHEAD_T_SIZE’
 size_t sz = sizeof(pthread_tcb_t) + thread_block_info.tls_memsz +
NPTL_TCBHEAD_T_SIZE + thread_block_info.stack_guard_size + CHILD_STACK_SIZE;
   ^
make: *** [pthread.o] Error 1
lap318@lap318-HP-Compaq-6730b-KE717AV ~/gem5/m5threads $


Is there something I am missing ? May be some missing path variable or some
minor modification of the code somewhere. Because I have the files
spinlock_x86.h and tls_defs.h.

Regards
Nidhi
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Query about microldstop.hh

2018-01-10 Thread Nidhi Kamath
Hello,


In microldstop.hh, the class LdStop is the base class for load and store
ops. But can somebody please explain me how can the load and store be
differentiated from this class and also how can I directly print the output
of this class from base.cc.

Regards
Nidhi


‌
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users