Hello,
I wrote a c++ file, and compile it by using riscv-g++ with -std=c++11
This program involves file stream.
While running by gem5, the process will pause.
I check insts with debug flags, finding that output paused at somewhere
like this below:

34489000: system.cpu T0 : @_read    : c_addi sp, sp, -16         : IntAlu
:  D=0x7ffffffffffffa30
34489500: system.cpu T0 : @_read+2    : c_sdsp ra, 8(sp)           :
MemWrite :  D=0x0000000000077726 A=0x7ffffffffffffa38
34490000: system.cpu T0 : @_read+4    : c_sdsp s0, 0(sp)           :
MemWrite :  D=0x00000000000b6000 A=0x7ffffffffffffa30
34490500: system.cpu T0 : @_read+6    : c_li a3, zero, 0           : IntAlu
:  D=0x0000000000000000
34491000: system.cpu T0 : @_read+8    : c_li a4, zero, 0           : IntAlu
:  D=0x0000000000000000
34491500: system.cpu T0 : @_read+10    : c_li a5, zero, 0           :
IntAlu :  D=0x0000000000000000
34492500: system.cpu T0 : @_read+12    : addi a7, zero, 63          :
IntAlu :  D=0x000000000000003f
34493500: system.cpu T0 : @_read+16    : ecall                      :
No_OpClass :


Type enter and it will run agian, but stop at the same instruction: ecall

Have anyone ever met this situation?  Could you tell me how to solve this
problem?

Thanks.
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to