[gem5-users] Re: Porting a configuration file from gem5 v20 to gem5 v21

2021-10-06 Thread Ali Ghandour via gem5-users
Hi Jason,

I am not sure this is the same issue.
I compiled the hello.c example using the below make file and run it in se mode 
using my config file and still received the segmentation error:

CC=aarch64-linux-gnu-gcc
CFLAGS=-Wall -g3 -march=armv8-a -static -O0 # -I../

all: arm

arm:
$(CC) $(CFLAGS) -c hello.c  
-o hello.o
$(CC) $(CFLAGS) hello.o -o hello

Please advise.
Ali
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s


[gem5-users] Re: Wrong stats in gem5 v21.1

2021-10-06 Thread Bobby Bruce via gem5-users
I'm pretty sure the issues you are experiencing were fixed in the latest
hotfix release: v21.1.0.2. You can get this by pulling the latest version
from the gem5 repo's stable branch:
https://gem5.googlesource.com/public/gem5/

Kind regards,
Bobby
--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Sat, Sep 18, 2021 at 12:45 AM Vincent R. via gem5-users <
gem5-users@gem5.org> wrote:

> Hi Meng,
>
> probably no coincidence. I also observe this with all my statistic outputs
> since upgrading to 21.1, both in example and customized configurations.
> It seems that scalar statistics are not affected, but vector and histogram
> stats are.
>
> I noticed this a few days ago and saw your mail when myself trying to find
> people observing the same.
> So far, nothing I've tried fixed this issue.
>
> Best regards,
> Vincent
>
>
> Chen Meng via gem5-users:
>
> Is there anyone who also encountered this issue? Or it's just a
> coincidence?
>
> I have tested both copy without any modification to source code.
>
> If you have some hints or tips, please help me.
>
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
>
>
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Porting a configuration file from gem5 v20 to gem5 v21

2021-10-06 Thread Jason Lowe-Power via gem5-users
Hi Ali,

Is your guest code 32-bit Arm? If so, I think this could be the problem in
SE mode: https://gem5.atlassian.net/browse/GEM5-1074

Cheers,
Jason

On Tue, Oct 5, 2021 at 7:45 AM Ali Ghandour via gem5-users <
gem5-users@gem5.org> wrote:

> In FS mode, full errror stack below:
>
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "build/ARM/python/m5/main.py", line 455, in main
>   File "./RPIv4.py", line 535, in 
> main()
>   File "./RPIv4.py", line 512, in main
> root.system = systemCreate(args)
>   File "./RPIv4.py", line 297, in systemCreate
> system = RPISystemCreate(ArmSystem, args, mode)
>   File "./RPIv4.py", line 182, in RPISystemCreate
> return RPISystem(args, mode)
>   File "./RPIv4.py", line 127, in __init__
> self.configMem(args)
>   File "./RPIv4.py", line 158, in configMem
> self.cpu_cluster.connectDirect(self.membus)
>   File
> "/home/ali/Desktop/spirals/reproduce-spectre-gem5/gem5/./ARMv8A_Cortex_A72.py",
> line 325, in connectDirect
> cpu.dtb.walker.port = bus.slave
>   File "build/ARM/python/m5/SimObject.py", line 1416, in __getattr__
> AttributeError: object 'ARM_A72_TLB_L1D' has no attribute 'walker'
>   (C++ object is not yet constructed, so wrapped C++ methods are
> unavailable.)
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
>
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: How can I Run Full system on Ubuntu18.04 and X86?

2021-10-06 Thread Miguel Antonio Avargues Gutiérrez via gem5-users

Hello Jeongmin.

I recommend you use a pre-compiled Kernel and disk image from the gem5 
resources web page 
(https://www.gem5.org/documentation/general_docs/gem5_resources/), as 
they are kinda tested.


Hope it helps!

Un saludo,
Miguel Antonio Avargues Gutiérrez.

El 06/10/2021 a las 4:46, Jeongmin via gem5-users escribió:

Hi All,

I'm trying to use the Gem5 full system.
but It doesn't work.

These are my configurations
-kernel = vmlinux-4.19.83 (5.4.49 / 4.14.134)
-Ubuntu = ubuntu-18.04.6-live-server-amd64 (tried 16.04)
-gem5 = 21.1.0.2
-X86 architecture
-I will use an O3CPU and DRAMsim3.

I made an image by using qemu and I completed the booting system.
To make the image, I use this command "qemu-system -hda  
-cdrom  -m 8G -enable-kvm"

The image size for ubuntu18.04.6 is 8.6GB.

All files are in ~/gem5/fs

and I changed "M5_PATH" to "/home/user/gem5/fs" in Syspath.py line 34.

As far as I know, These are all configurations to use the gem5 full 
system.


So I ran gem5. but it does not work.

I attached all command and error messages below.

How can I run the gem5 full system?
Please let me know.
Thanks in advance.



**
-cmd = ./build/X86/gem5.opt configs/example/fs.py 
--kernel=/home/user/gem5/fs/vmlinux-4.19.83 
--disk-image=/home/user/gem5/fs/ubuntu.img
(--cpu-type=AtomicSimpleCPU --mem-type=DDR4_2400_8x8 --mem-size=1GB 
--num-cpu=1 --caches --root-device=/dev/hda)


**

warn: iobus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: bridge.master is deprecated. `master` is now called `mem_side_port`
warn: membus.master is deprecated. `master` is now called `mem_side_ports`
warn: bridge.slave is deprecated. `slave` is now called `cpu_side_port`
warn: iobus.master is deprecated. `master` is now called `mem_side_ports`
warn: apicbridge.slave is deprecated. `slave` is now called 
`cpu_side_port`

warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: apicbridge.master is deprecated. `master` is now called 
`mem_side_port`

warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: iobus.master is deprecated. `master` is now called `mem_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
warn: membus.master is deprecated. `master` is now called `mem_side_ports`
warn: membus.master is deprecated. `master` is now called `mem_side_ports`
warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports`
Global frequency set at 1 ticks per second
warn: system.workload.acpi_description_table_pointer.rsdt adopting 
orphan SimObject param 'entries'
warn: No dot file generated. Please install pydot to generate the dot 
file and pdf.
build/X86/mem/mem_interface.cc:793: warn: DRAM device capacity (16384 
Mbytes) does not match the address range assigned (1024 Mbytes)
build/X86/sim/kernel_workload.cc:46: info: kernel located at: 
/home/msm/gem5/fs/vmlinux-4.19.83
      0: system.pc.south_bridge.cmos.rtc: Real-time clock set to Sun 
Jan  1 00:00:00 2012

system.pc.com_1.device: Listening for connections on port 3456
0: system.remote_gdb: listening for remote gdb on port 7000
build/X86/dev/intel_8254_timer.cc:125: warn: Reading current count 
from inactive timer.

 REAL SIMULATION 
build/X86/sim/simulate.cc:107: info: Entering event queue @ 0.  
Starting simulation...
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6
build/X86/arch/x86/generated/exec-ns.cc.inc:27: warn: instruction 
'fninit' unimplemented
build/X86/dev/x86/pc.cc:117: warn: Don't know what interrupt to clear 
for console.

44655759500: system.pc.com_1.device: attach terminal 0
build/X86/arch/x86/generated/exec-ns.cc.inc:27: warn: instruction 
'sgdt_Ms' unimplemented
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x: 
unimplemented function 6

build/X86/arch/x86/cpuid.cc:185: warn: x86 cpuid: unknown family 0x4000
build/X86/dev/x86/pc.cc:130: warn: Tried to clear PCI interrupt 14
build/X86/dev/storage/ide_disk.cc:564: panic: Can't read from 
system.pc.south_bridge.ide.disks0. Only 4294967295 of 512 read. errno=21

Memory Usage: 1521004 KBytes
Program