Md Majumder
Md Majumder

Reputation: 31

error in simulating sample.py on gem5: "AttributeError: Not allowed to set pio on 'SimObjectVector' "

I have been trying to simulate the 'simple.py' code on gem5 from the gem5 tutorial. Link of the tutorial is: http://pages.cs.wisc.edu/~david/courses/cs752/Spring2015/gem5-tutorial/part1/simple_config.html#simple-config-fig

I am getting an error saying that "AttributeError: Not allowed to set pio on 'SimObjectVector'".

Does anyone know how to resolve it?

Upvotes: 1

Views: 464

Answers (1)

Muhammad Awais
Muhammad Awais

Reputation: 341

for this you are getting the error due to the confusion in the ISA architecture and the binary architecture..

isa = str(m5.defines.buildEnv['KVM_ISA']).lower()
if isa == "x86" and  m5.defines.buildEnv['USE_ARM_ISA']==False:
    system.cpu.interrupts[0].pio = system.membus.mem_side_ports
    system.cpu.interrupts[0].int_requestor = system.membus.cpu_side_ports
    system.cpu.interrupts[0].int_responder = system.membus.mem_side_ports

 

if your ISA is not an x86 you cant use the pio interrupt #gem5

Upvotes: 0

Related Questions