[gem5-users] gem5 killed when booting linux

2018-06-19 Thread web
Hi, All


I am trying to boot my ubuntu with gem5 under instruction of this page. 
http://www.lowepower.com/jason/setting-up-gem5-full-system.html
However, gem5 is killed with unknow reason and the log is below, anyone could 
help?


= gem5 log =
Starting program: /home/jmst/wrk/myGitHub/gem5-bench/gem5/build/X86/gem5.opt 
configs/run.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.


gem5 compiled May 17 2018 21:48:59
gem5 started Jun 19 2018 21:03:00
gem5 executing on x1c, pid 31549
command line: /home/jmst/wrk/myGitHub/gem5-bench/gem5/build/X86/gem5.opt 
configs/run.py


Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (2048 Mbytes)
info: kernel located at: linux/vmlinux
system.pc.com_1.device: Listening for connections on port 3456
  0: rtc: Real-time clock set to Sun Jan  1 00:00:00 2012
0: system.remote_gdb: listening for remote gdb on port 7000
warn: Reading current count from inactive timer.
Running the simulation
info: Entering event queue @ 0.  Starting simulation...
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: instruction 'fninit' unimplemented
warn: Don't know what interrupt to clear for console.
warn: instruction 'sgdt_Ms' unimplemented
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: Tried to clear PCI interrupt 14
warn: Write to unknown i8042 (keyboard controller) command port.
hack: Assuming logical destinations are 1 << id.
warn: instruction 'fwait' unimplemented
1836401387040: system.pc.com_1.device: attach terminal 0
warn: instruction 'prefetch_t1' unimplemented
warn: instruction 'prefetch_t2' unimplemented
warn: instruction 'prefetch_nta' unimplemented


Program terminated with signal SIGKILL, Killed.
The program no longer exists.



== term log ==
 Linux version 4.14.0 (jmst@x1c) (gcc version 5.4.0 20160609 (Ubuntu 
5.4.0-6ubuntu1~16.04.9)) #8 SMP Thu Jun 14 21:25:35 CST 2018
Command line: earlyprintk=ttyS0 console=ttyS0 lpj=723 root=/dev/hda1
CPU: vendor_id 'M5 Simulator' unknown, using generic init.
CPU: Your system may be unstable.
x86/fpu: x87 FPU will use FXSAVE
e820: BIOS-provided physical RAM map:
BIOS-e820: [mem 0x-0x0009fbff] usable
BIOS-e820: [mem 0x0009fc00-0x000f] reserved
BIOS-e820: [mem 0x0010-0x7fff] usable
BIOS-e820: [mem 0x8000-0xbfff] reserved
BIOS-e820: [mem 0x-0x] reserved
bootconsole [earlyser0] enabled
NX (Execute Disable) protection: active
SMBIOS 2.5 present.
DMI:  , BIOS  06/08/2008
random: fast init done
tsc: Fast TSC calibration using PIT
AGP: No AGP bridge found
e820: last_pfn = 0x8 max_arch_pfn = 0x4
MTRR: Disabled
x86/PAT: MTRRs disabled, skipping PAT initialization too.
CPU MTRRs all blank - virtualized system.
x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WB  WT  UC- UC  
found SMP MP-table at [mem 0x000f0050-0x000f005f] mapped at [ff200050]
ACPI: Early table checksum verification disabled
ACPI BIOS Error (bug): A valid RSDP was not found (20170728/tbxfroot-244)
Zone ranges:
  DMA  [mem 0x1000-0x00ff]
  DMA32[mem 0x0100-0x7fff]
  Normal   empty
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x1000-0x0009efff]
  node   0: [mem 0x0010-0x7fff]
Initmem setup node 0 [mem 0x1000-0x7fff]
Intel MultiProcessor Specification v1.4
MPTABLE: OEM ID: 
MPTABLE: Product ID: 
MPTABLE: APIC at: 0xFEE0
Processor #0 (Bootup-CPU)
IOAPIC[0]: apic_id 1, version 20, address 0xfec0, GSI 0-23
Processors: 1
smpboot: Allowing 1 CPUs, 0 hotplug CPUs
e820: [mem 0xc000-0xfffe] available for PCI devices
Booting paravirtualized kernel on bare hardware
clocksource: refined-jiffies: mask: 0x max_cycles: 0x, 
max_idle_ns: 1910969940391419 ns
setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:1 nr_node_ids:1
percpu: Embedded 34 pages/cpu @88007fc0 s100120 r8192 d30952 u2097152
Built 1 zonelists, mobility grouping on.  Total pages: 515977
Kernel command line: earlyprintk=ttyS0 console=ttyS0 lpj=723 root=/dev/hda1
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
AGP: Checking aperture...
AGP: No AGP bridge found
Memory: 

Re: [gem5-users] Error when building gem5

2018-06-19 Thread Jason Lowe-Power
HI Tariq,

You can fix it and submit a patch to gerrit :). Likely, you just need
#include  at the top of addr_range_map.hh.

See https://gem5.googlesource.com/public/gem5/+/master/CONTRIBUTING.md for
more details.

Cheers,
Jason

On Tue, Jun 19, 2018 at 10:44 AM Tariq Azmy  wrote:

> Hi,
>
> I got a fresh new gem5 from google repo (
> https://gem5.googlesource.com/public/gem5) and built the X86 with scons.
> But there's an error from xbar:
>
> In file included from build/X86/mem/xbar.hh:57:0,
>  from build/X86/mem/noncoherent_xbar.hh:54,
>  from build/X86/mem/noncoherent_xbar.cc:50:
> build/X86/base/addr_range_map.hh:221:35: error: 'std::function' has not
> been declared
>  find(const AddrRange , std::function cond)
> const
>^~~~
> build/X86/base/addr_range_map.hh:221:43: error: expected ',' or '...'
> before '<' token
>  find(const AddrRange , std::function cond)
> const
>^
> scons: *** [build/X86/mem/noncoherent_xbar.o] Error 1
> scons: building terminated because of errors.
>
> Hope it can get fixed.
>
> Thanks
> ___
> 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] Error when building gem5

2018-06-19 Thread Tariq Azmy
Hi,

I got a fresh new gem5 from google repo (
https://gem5.googlesource.com/public/gem5) and built the X86 with scons.
But there's an error from xbar:

In file included from build/X86/mem/xbar.hh:57:0,
 from build/X86/mem/noncoherent_xbar.hh:54,
 from build/X86/mem/noncoherent_xbar.cc:50:
build/X86/base/addr_range_map.hh:221:35: error: 'std::function' has not
been declared
 find(const AddrRange , std::function cond)
const
   ^~~~
build/X86/base/addr_range_map.hh:221:43: error: expected ',' or '...'
before '<' token
 find(const AddrRange , std::function cond)
const
   ^
scons: *** [build/X86/mem/noncoherent_xbar.o] Error 1
scons: building terminated because of errors.

Hope it can get fixed.

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

[gem5-users] Functional Models for ALU

2018-06-19 Thread Riddhi Thakker
Hi all,

I am looking for the functional units of the ALU for X86 system. I noticed
that there is a class IntAlu, IntMult, IntDiv, and so on (in file
src/cpu/o3/FuncUnitConfig.py). But I could not figure out where the add
instruction for ALU, and other sub, mul instructions are defined.

Can anyone please help me how should I proceed further.

Thanks in advance.

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