Dear all,

I tried to compile gem5 on a ARM arch machine. But I get the error below, 

build/ARM/arch/arm/kvm/gic.cc: In constructor 'KvmGic::KvmGic(const 
KvmGicParams*)':
build/ARM/arch/arm/kvm/gic.cc:51:28: error: 'KVM_DEV_TYPE_ARM_VGIC_V2' was not 
declared in this scope
       kdev(vm.createDevice(KVM_DEV_TYPE_ARM_VGIC_V2)),
                            ^
build/ARM/arch/arm/kvm/gic.cc:57:9: error: 'KVM_DEV_ARM_VGIC_GRP_ADDR' was not 
declared in this scope
         KVM_DEV_ARM_VGIC_GRP_ADDR, KVM_VGIC_V2_ADDR_TYPE_DIST,
         ^
scons: *** [build/ARM/arch/arm/kvm/gic.o] Error 1
scons: building terminated because of errors.

I google these two not declared macro, they are in linux-header 
arch/arm/include/uapi/asm/kvm.h
But the compiler use the one in /usr/include/linux/kvm.h, which is not the same 
file, and not include these two macro.
Does anyone know how to due with this issue? Please help, Thanks.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to