[gem5-users] Re: About simulating simple C program in gem5 FS mode

2024-02-03 Thread sun2k23 via gem5-users
Then you can use SE mode to run every standalone executables without OS in FS mode. S2K23 At 2024-02-02 15:21:03, "elio.vinciguerra--- via gem5-users" wrote: Is it possible to simulate with only the C program, without linux underneath? I recently saw that you should use the bare-metal

[gem5-users] Re: About simulating simple C program in gem5 FS mode

2024-02-01 Thread sun2k23 via gem5-users
Hi, Generally, firstly you need to boot the linux on RISCV model successfully. And then you need to develop your own c application program and compile it with cross-compiler statically, then you copy the test executable to the mounted disk(The riscv OS disk, let's assume you put it on

[gem5-users] Re: Question about running RISC-V program on Gem5

2024-02-01 Thread sun2k23 via gem5-users
Hi, I think you can try to use starttimeofday() function both in SE and FS mode. Inside SE mode, it will trigger syscall/ecall. Demo code like below for your reference: S2K23 At 2024-02-02 05:51:46, "zahra butool via gem5-users" wrote: Hi everyone, I want to run a program

[gem5-users] Re: Spec2017 GCC benchmark crashes in SE mode

2024-01-16 Thread sun2k23 via gem5-users
his part of the Gem5 codebase. Also, just to be clear, what do you mean by 'when the image download is done'? Thanks. Sent from Proton Mail mobile Original Message On 15 Jan 2024, 01:18, sun2k23 via gem5-users wrote: Hi, I have ever met several similar issues but i'm not

[gem5-users] Re: Spec2017 GCC benchmark crashes in SE mode

2024-01-15 Thread sun2k23 via gem5-users
could I do with this information? I'm not familiar with this part of the Gem5 codebase. Also, just to be clear, what do you mean by 'when the image download is done'? Thanks. Sent from Proton Mail mobile Original Message On 15 Jan 2024, 01:18, sun2k23 via gem5-users wrote: Hi, I

[gem5-users] Re: Spec2017 GCC benchmark crashes in SE mode

2024-01-14 Thread sun2k23 via gem5-users
Hi, I have ever met several similar issues but i'm not running Spec2017. I think that's because you use this address 0x66195c before allocating page firstly. You can enable the debug-flag of MMU to check whether the page related to this address is allocated when the image download is