That’s exactly what you said. Another problem in system test, if I follow the gem5 system test, there are some failed case like this:
Logging call to command: ./build/ARM/gem5.opt -d /tmp/gem5outes8xx6ry -re /home/l00515693/KSim_LightESL/tests/gem5/cpu_tests/run.py --cpu=AtomicSimpleCPU ./tests/gem5/resources/cpu_tests/arm/Bubblesort Starting Test Suite: cpu_test_AtomicSimpleCPU_Bubblesort-ARM-aarch64-opt Starting Test Case: cpu_test_AtomicSimpleCPU_Bubblesort-ARM-aarch64-opt Redirecting stdout to /tmp/gem5outes8xx6ry/simout Redirecting stderr to /tmp/gem5outes8xx6ry/simerr Redirecting stdout to /tmp/gem5outes8xx6ry/simout Redirecting stderr to /tmp/gem5outes8xx6ry/simerr Test: cpu_test_AtomicSimpleCPU_Bubblesort-ARM-aarch64-opt Failed Starting Test Case: cpu_test_AtomicSimpleCPU_Bubblesort-ARM-aarch64-opt-MatchStdout Logging call to command: diff /tmp/gem5outes8xx6ry/simout /home/l00515693/KSim_LightESL/tests/gem5/cpu_tests/ref/Bubblesort 1a2 > -50000 The err output is: 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.slave is deprecated. `slave` is now called `cpu_side_ports` panic: panic condition fd < 0 occurred: Failed to open file . Memory Usage: 635344 KBytes Program aborted at tick 0 But when I use se.py to execute “./tests/gem5/resources/cpu_tests/arm/Bubblesort”, that’s fine: root@ubuntu-kunpeng920-4: ./build/ARM/gem5.opt ./configs/soc_base/se.py -n 1 --mem-size=32GB --cpu-type=AtomicSimpleCPU --cmd=./tests/gem5/resources/cpu_tests/arm/Bubblesort gem5 Simulator System. http://gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 version 21.0.1.0 gem5 compiled Oct 29 2021 10:58:09 gem5 started Oct 30 2021 14:40:26 gem5 executing on ubuntu-kunpeng920-4, pid 156173 command line: build/ARM/gem5.opt ./configs/soc_base/se.py -n 1 --mem-size=32GB --cpu-type=AtomicSimpleCPU --cmd=./tests/gem5/resources/cpu_tests/arm/Bubblesort 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` Global frequency set at 1000000000000 ticks per second warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (32768 Mbytes) 0: system.remote_gdb: listening for remote gdb on port 7032 **** REAL SIMULATION **** info: Entering event queue @ 0. Starting simulation... info: Increasing stack size by one page. -50000 发件人: Gabe Black [mailto:gabe.bl...@gmail.com] 发送时间: 2021年10月30日 14:06 收件人: Liyichao <liyic...@huawei.com> 抄送: gem5 users mailing list <gem5-users@gem5.org> 主题: Re: [gem5-users] Re: How to enable KVM unitest on ARM server I found it in the revision history. If you're building the "NULL" target, you should not set USE_KVM to true. If you do, then it will try to verify that the simulated architecture and the host architecture is the same, which is the only time KVM will work. This "Info" print out is just telling you that there's a mismatch between no ISA and the ARM ISA, and that KVM is not available. In general, unless it says "error", it's not an error and you don't need to be overly concerned about it. Gabe On Fri, Oct 29, 2021 at 9:35 PM Liyichao <liyic...@huawei.com<mailto:liyic...@huawei.com>> wrote: If I build gem5.opt of ARM on X86 server, the print “Info: KVM for null not supported on arm host.” will also be presented 发件人: Gabe Black via gem5-users [mailto:gem5-users@gem5.org<mailto:gem5-users@gem5.org>] 发送时间: 2021年10月29日 11:43 收件人: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> 抄送: Gabe Black <gabe.bl...@gmail.com<mailto:gabe.bl...@gmail.com>> 主题: [gem5-users] Re: How to enable KVM unitest on ARM server Hi, I just grepped through all of gem5's source, and, even ignoring capitalization, the string "KVM for" does not appear outside of a couple comments. I have no idea where that string is coming from, but it doesn't seem to be from gem5 itself. Gabe On Thu, Oct 28, 2021 at 8:04 PM Liyichao via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote: Hi All: My GEM5 V21.1.0.2 running on aarch64 server, but when I compile bitunion.test.opt, the compilation print will show “Info: KVM for null not supported on arm host.” scons build/NULL/base/bitunion.test.opt -j120 scons: Reading SConscript files ... Checking for linker -Wl,--as-needed support... (cached) yes Warning: While checking protoc version: [Errno 2] No such file or directory: 'protoc' Warning: Protocol buffer compiler (protoc) not found. Please install protobuf-compiler for tracing support. Checking for compiler -gz support... (cached) yes Checking for linker -gz support... (cached) yes Info: Using Python config: python3-config Checking for C header file Python.h... (cached) yes Checking for C library python3.8... (cached) yes Checking for C library crypt... (cached) yes Checking for C library pthread... (cached) yes Checking for C library dl... (cached) yes Checking for C library util... (cached) yes Checking for C library m... (cached) yes Checking Python version... (cached) 3.8.5 Checking for accept(0,0,0) in C++ library None... (cached) yes Checking for zlibVersion() in C++ library z... (cached) yes Checking for C header file valgrind/valgrind.h... (cached) no Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached) yes Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library None... (cached) no Checking for timer_create(CLOCK_MONOTONIC, NULL, NULL) in C library rt... (cached) yes Checking for C library tcmalloc... (cached) yes Checking for char temp; backtrace_symbols_fd((void *)&temp, 0, 0) in C library None... (cached) yes Checking for C header file fenv.h... (cached) yes Checking for C header file png.h... (cached) yes Checking for C header file linux/kvm.h... (cached) yes Checking for C header file linux/if_tun.h... (cached) yes Checking for member exclude_host in struct perf_event_attr...(cached) yes Checking for H5Fcreate("", 0, 0, 0) in C library hdf5... (cached) no Warning: Couldn't find any HDF5 C++ libraries. Disabling HDF5 support. Checking whether __i386__ is declared... (cached) no Checking whether __x86_64__ is declared... (cached) no Warning: Unrecognized architecture for systemc. Building in /home/l00515693/KSim_LightESL/build/NULL Variables file /home/l00515693/KSim_LightESL/build/variables/NULL not found, using defaults in /home/l00515693/KSim_LightESL/build_opts/NULL Info: KVM for null not supported on arm host. scons: done reading SConscript files. scons: Building targets ... _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org> To unsubscribe send an email to gem5-users-le...@gem5.org<mailto: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