[gem5-dev] Re: Error in Building gem5

2020-09-13 Thread Gabe Black via gem5-dev
That looks like a problem we've had where gem5 half uses its own local
libelf, and half uses the system one. It's been fixed on the develop branch
and will be fixed in the next release which *should* happen in the next few
weeks. I think this change should fix it on the current master branch.

https://gem5-review.googlesource.com/c/public/gem5/+/33941

On Sun, Sep 13, 2020 at 7:24 AM Abhinav Sukumar Rao via gem5-dev <
gem5-dev@gem5.org> wrote:

> As suggested by Gabe, I managed to install gem5 using CLang. However, the
> hello world test program is segfaulting:
> https://pastebin.com/XiZ22QkV
> Is there an issue with the line that warns about the DRAM device capacity
> (I doubt that it is)
> Interestingly I managed to get hello32 running on SE Mode.
>
> *Regards*
>
> *Abhinav Sukumar Rao*
>
> *B.E. Computer Science*
> E-mail:-Personal  || University
> 
>
> *Birla Institute of Technology and Science Pilani, Hyderabad Campus*
>
> *Jawahar Nagar, Kapra Mandal, Medchal District,*
>
> *Telangana - 500078, India*
>
>
> On Sun, Sep 13, 2020 at 2:22 AM Abhinav Sukumar Rao <
> f20180...@hyderabad.bits-pilani.ac.in> wrote:
>
>> Platform: Arch linux
>> Python version: 3.8
>> gcc version: 10.2.0
>>
>> Upon running the build for gem5, I can't seem to get it to work. A
>> warning is being treated as an an error:
>> https://pastebin.com/0R0UK0aF
>>
>> Upon downloading python2 and using that:
>> https://pastebin.com/qHM1dpHY
>>
>> Creating a virtual environment and using python2.7 doesn't seem to work
>> either:
>> https://pastebin.com/CP3EJMsF
>>
>> Is there any workaround or a way to fix this?
>>
>> *Regards*
>>
>> *Abhinav Sukumar Rao*
>>
> ___
> gem5-dev mailing list -- gem5-dev@gem5.org
> To unsubscribe send an email to gem5-dev-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-dev] Re: Error in Building gem5

2020-09-13 Thread Abhinav Sukumar Rao via gem5-dev
As suggested by Gabe, I managed to install gem5 using CLang. However, the
hello world test program is segfaulting:
https://pastebin.com/XiZ22QkV
Is there an issue with the line that warns about the DRAM device capacity
(I doubt that it is)
Interestingly I managed to get hello32 running on SE Mode.

*Regards*

*Abhinav Sukumar Rao*

*B.E. Computer Science*
E-mail:-Personal  || University


*Birla Institute of Technology and Science Pilani, Hyderabad Campus*

*Jawahar Nagar, Kapra Mandal, Medchal District,*

*Telangana - 500078, India*


On Sun, Sep 13, 2020 at 2:22 AM Abhinav Sukumar Rao <
f20180...@hyderabad.bits-pilani.ac.in> wrote:

> Platform: Arch linux
> Python version: 3.8
> gcc version: 10.2.0
>
> Upon running the build for gem5, I can't seem to get it to work. A warning
> is being treated as an an error:
> https://pastebin.com/0R0UK0aF
>
> Upon downloading python2 and using that:
> https://pastebin.com/qHM1dpHY
>
> Creating a virtual environment and using python2.7 doesn't seem to work
> either:
> https://pastebin.com/CP3EJMsF
>
> Is there any workaround or a way to fix this?
>
> *Regards*
>
> *Abhinav Sukumar Rao*
>
___
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-dev] Change in gem5/gem5[release-staging-v20.1.0.0]: arch-arm: Fix ArmISA namespace requirement for Arm KVM

2020-09-13 Thread Giacomo Travaglini (Gerrit) via gem5-dev
Giacomo Travaglini has submitted this change. (  
https://gem5-review.googlesource.com/c/public/gem5/+/34418 )


Change subject: arch-arm: Fix ArmISA namespace requirement for Arm KVM
..

arch-arm: Fix ArmISA namespace requirement for Arm KVM

This is needed after:

https://gem5-review.googlesource.com/c/public/gem5/+/34155

Signed-off-by: Giacomo Travaglini 
Change-Id: I614b908a48145d8c2f5e8b8177448e3269f8dac9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34418
Reviewed-by: Gabe Black 
Tested-by: kokoro 
---
M src/arch/arm/kvm/arm_cpu.hh
M src/arch/arm/kvm/armv8_cpu.cc
M src/arch/arm/kvm/armv8_cpu.hh
M src/arch/arm/kvm/base_cpu.cc
4 files changed, 12 insertions(+), 8 deletions(-)

Approvals:
  Gabe Black: Looks good to me, approved
  Giacomo Travaglini: Looks good to me, approved
  kokoro: Regressions pass



diff --git a/src/arch/arm/kvm/arm_cpu.hh b/src/arch/arm/kvm/arm_cpu.hh
index 28453d7..cc3c935 100644
--- a/src/arch/arm/kvm/arm_cpu.hh
+++ b/src/arch/arm/kvm/arm_cpu.hh
@@ -71,7 +71,7 @@
 /** KVM ID */
 const uint64_t id;
 /** gem5 index */
-const IntRegIndex idx;
+const ArmISA::IntRegIndex idx;
 /** Name in debug output */
 const char *name;
 };
@@ -80,7 +80,7 @@
 /** KVM ID */
 const uint64_t id;
 /** gem5 index */
-const MiscRegIndex idx;
+const ArmISA::MiscRegIndex idx;
 /** Name in debug output */
 const char *name;
 };
diff --git a/src/arch/arm/kvm/armv8_cpu.cc b/src/arch/arm/kvm/armv8_cpu.cc
index b8ada8d..1001f81 100644
--- a/src/arch/arm/kvm/armv8_cpu.cc
+++ b/src/arch/arm/kvm/armv8_cpu.cc
@@ -42,6 +42,8 @@
 #include "debug/KvmContext.hh"
 #include "params/ArmV8KvmCPU.hh"

+using namespace ArmISA;
+
 // Unlike gem5, kvm doesn't count the SP as a normal integer register,
 // which means we only have 31 normal integer registers.
 constexpr static unsigned NUM_XREGS = NUM_ARCH_INTREGS - 1;
diff --git a/src/arch/arm/kvm/armv8_cpu.hh b/src/arch/arm/kvm/armv8_cpu.hh
index 9870510..dae9fe7 100644
--- a/src/arch/arm/kvm/armv8_cpu.hh
+++ b/src/arch/arm/kvm/armv8_cpu.hh
@@ -93,27 +93,27 @@
   protected:
 /** Mapping between integer registers in gem5 and KVM */
 struct IntRegInfo {
-IntRegInfo(uint64_t _kvm, IntRegIndex _idx, const char *_name)
+IntRegInfo(uint64_t _kvm, ArmISA::IntRegIndex _idx, const char  
*_name)

 : kvm(_kvm), idx(_idx), name(_name) {}

 /** Register index in KVM */
 uint64_t kvm;
 /** Register index in gem5 */
-IntRegIndex idx;
+ArmISA::IntRegIndex idx;
 /** Name to use in debug dumps */
 const char *name;
 };

 /** Mapping between misc registers in gem5 and registers in KVM */
 struct MiscRegInfo {
-MiscRegInfo(uint64_t _kvm, MiscRegIndex _idx, const char *_name,
-bool _is_device = false)
+MiscRegInfo(uint64_t _kvm, ArmISA::MiscRegIndex _idx,
+const char *_name, bool _is_device = false)
 : kvm(_kvm), idx(_idx), name(_name), is_device(_is_device) {}

 /** Register index in KVM */
 uint64_t kvm;
 /** Register index in gem5 */
-MiscRegIndex idx;
+ArmISA::MiscRegIndex idx;
 /** Name to use in debug dumps */
 const char *name;
 /** is device register? (needs 'effectful' state update) */
@@ -137,7 +137,7 @@
 /** Mapping between gem5 misc registers and registers in kvm */
 static const std::vector miscRegMap;
 /** Device registers (needing "effectful" MiscReg writes) */
-static const std::set deviceRegSet;
+static const std::set deviceRegSet;
 /** Mapping between gem5 ID misc registers and registers in kvm */
 static const std::vector miscRegIdMap;

diff --git a/src/arch/arm/kvm/base_cpu.cc b/src/arch/arm/kvm/base_cpu.cc
index 04c5d0f..6fd2651 100644
--- a/src/arch/arm/kvm/base_cpu.cc
+++ b/src/arch/arm/kvm/base_cpu.cc
@@ -45,6 +45,8 @@
 #include "params/BaseArmKvmCPU.hh"
 #include "params/GenericTimer.hh"

+using namespace ArmISA;
+
 #define INTERRUPT_ID(type, vcpu, irq) (\
 ((type) << KVM_ARM_IRQ_TYPE_SHIFT) |   \
 ((vcpu) << KVM_ARM_IRQ_VCPU_SHIFT) |   \

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/34418
To unsubscribe, or for help writing mail filters, visit  
https://gem5-review.googlesource.com/settings


Gerrit-Project: public/gem5
Gerrit-Branch: release-staging-v20.1.0.0
Gerrit-Change-Id: I614b908a48145d8c2f5e8b8177448e3269f8dac9
Gerrit-Change-Number: 34418
Gerrit-PatchSet: 2
Gerrit-Owner: Giacomo Travaglini 
Gerrit-Reviewer: Andreas Sandberg 
Gerrit-Reviewer: Bobby R. Bruce 
Gerrit-Reviewer: Gabe Black 
Gerrit-Reviewer: Giacomo Travaglini 
Gerrit-Reviewer: Jason Lowe-Power 
Gerrit-Reviewer: kokoro 
Gerrit-MessageType: merged

[gem5-dev] Build failed in Jenkins: Nightly #67

2020-09-13 Thread jenkins-no-reply--- via gem5-dev
See 

Changes:


--
[...truncated 61.64 KB...]
[ RUN  ] CyclesTest.PrefixIncrement
[   OK ] CyclesTest.PrefixIncrement (0 ms)
[ RUN  ] CyclesTest.PrefixDecrement
[   OK ] CyclesTest.PrefixDecrement (0 ms)
[ RUN  ] CyclesTest.InPlaceAddition
[   OK ] CyclesTest.InPlaceAddition (0 ms)
[ RUN  ] CyclesTest.GreaterThanLessThan
[   OK ] CyclesTest.GreaterThanLessThan (0 ms)
[ RUN  ] CyclesTest.AddCycles
[   OK ] CyclesTest.AddCycles (0 ms)
[ RUN  ] CyclesTest.SubtractCycles
[   OK ] CyclesTest.SubtractCycles (0 ms)
[ RUN  ] CyclesTest.ShiftRight
[   OK ] CyclesTest.ShiftRight (0 ms)
[ RUN  ] CyclesTest.ShiftLeft
[   OK ] CyclesTest.ShiftLeft (0 ms)
[ RUN  ] CyclesTest.OutStream
[   OK ] CyclesTest.OutStream (0 ms)
[--] 10 tests from CyclesTest (1 ms total)

[--] 5 tests from MicroPCTest
[ RUN  ] MicroPCTest.CheckMicroPCRomBit
[   OK ] MicroPCTest.CheckMicroPCRomBit (0 ms)
[ RUN  ] MicroPCTest.RomMicroPCTest
[   OK ] MicroPCTest.RomMicroPCTest (0 ms)
[ RUN  ] MicroPCTest.NormalMicroPCTest
[   OK ] MicroPCTest.NormalMicroPCTest (0 ms)
[ RUN  ] MicroPCTest.IsRomMicroPCTest
[   OK ] MicroPCTest.IsRomMicroPCTest (0 ms)
[ RUN  ] MicroPCTest.IsNotRomMicroPCTest
[   OK ] MicroPCTest.IsNotRomMicroPCTest (0 ms)
[--] 5 tests from MicroPCTest (0 ms total)

[--] 4 tests from TypesTest
[ RUN  ] TypesTest.FloatToBits32
[   OK ] TypesTest.FloatToBits32 (0 ms)
[ RUN  ] TypesTest.floatToBits64
[   OK ] TypesTest.floatToBits64 (0 ms)
[ RUN  ] TypesTest.floatsToBitsDoubleInput
[   OK ] TypesTest.floatsToBitsDoubleInput (0 ms)
[ RUN  ] TypesTest.floatsToBitsFloatInput
[   OK ] TypesTest.floatsToBitsFloatInput (0 ms)
[--] 4 tests from TypesTest (0 ms total)

[--] Global test environment tear-down
build/NULL/sim/byteswap.test.opt 
--gtest_output=xml:build/NULL/unittests.opt/sim/byteswap.test.xml
[==] 19 tests from 3 test cases ran. (1 ms total)
[  PASSED  ] 19 tests.
Running main() from gtest_main.cc
[==] Running 8 tests from 1 test case.
[--] Global test environment set-up.
[--] 8 tests from ByteswapTest
[ RUN  ] ByteswapTest.swap_byte64
[   OK ] ByteswapTest.swap_byte64 (0 ms)
[ RUN  ] ByteswapTest.swap_byte32
[   OK ] ByteswapTest.swap_byte32 (0 ms)
[ RUN  ] ByteswapTest.swap_byte16
[   OK ] ByteswapTest.swap_byte16 (0 ms)
[ RUN  ] ByteswapTest.swap_byte
[   OK ] ByteswapTest.swap_byte (0 ms)
[ RUN  ] ByteswapTest.htog
[   OK ] ByteswapTest.htog (0 ms)
[ RUN  ] ByteswapTest.gtoh
[   OK ] ByteswapTest.gtoh (0 ms)
[ RUN  ] ByteswapTest.betole
[   OK ] ByteswapTest.betole (0 ms)
[ RUN  ] ByteswapTest.letobe
[   OK ] ByteswapTest.letobe (0 ms)
[--] 8 tests from ByteswapTest (0 ms total)

[--] Global test environment tear-down
[==] 8 tests from 1 test case ran. (0 ms total)
[  PASSED  ] 8 tests.
build/NULL/sim/guest_abi.test.opt 
--gtest_output=xml:build/NULL/unittests.opt/sim/guest_abi.test.xml
[   OK ] IntmathDeathTest.floorLog2 (325 ms)
[--] 1 test from IntmathDeathTest (325 ms total)

[--] 7 tests from IntmathTest
[ RUN  ] IntmathTest.isPowerOf2
[   OK ] IntmathTest.isPowerOf2 (0 ms)
[ RUN  ] IntmathTest.power
[   OK ] IntmathTest.power (0 ms)
[ RUN  ] IntmathTest.floorLog2
[   OK ] IntmathTest.floorLog2 (0 ms)
[ RUN  ] IntmathTest.ceilLog2
[   OK ] IntmathTest.ceilLog2 (0 ms)
[ RUN  ] IntmathTest.divCeil
[   OK ] IntmathTest.divCeil (0 ms)
[ RUN  ] IntmathTest.roundUp
[   OK ] IntmathTest.roundUp (0 ms)
[ RUN  ] IntmathTest.roundDown
[   OK ] IntmathTest.roundDown (0 ms)
[--] 7 tests from IntmathTest (0 ms total)

[--] Global test environment tear-down
[==] 8 tests from 2 test cases ran. (325 ms total)
[  PASSED  ] 8 tests.
build/NULL/sim/proxy_ptr.test.opt 
--gtest_output=xml:build/NULL/unittests.opt/sim/proxy_ptr.test.xml
Running main() from gtest_main.cc
[==] Running 7 tests from 1 test case.
[--] Global test environment set-up.
[--] 7 tests from GuestABI
[ RUN  ] GuestABI.ABI_1D_args
[   OK ] GuestABI.ABI_1D_args (0 ms)
[ RUN  ] GuestABI.ABI_Prepare
[   OK ] GuestABI.ABI_Prepare (0 ms)
[ RUN  ] GuestABI.ABI_2D_args
[   OK ] GuestABI.ABI_2D_args (0 ms)
[ RUN  ] GuestABI.ABI_TC_init
[   OK ] GuestABI.ABI_TC_init (0 ms)
[ RUN  ] GuestABI.ABI_returns
[   OK ] GuestABI.ABI_returns (0 ms)
[ RUN  ] GuestABI.dumpSimcall
[   OK ] GuestABI.dumpSimcall (0 ms)
[ RUN  ] GuestABI.isVarArgs
[   OK ] GuestABI.isVarArgs (0 ms)
[--] 7 tests from GuestABI (0 ms total)

[--] Global test environment tear-down
[==] 7 tests from 1 test case ran.