gem5-users@gem5.org

The gem5 Users mailing list

View all threads

gem5 won't exit when running 'riscv-tests' in bare metal mode

KE
Kioulos Evangelos
Mon, May 8, 2023 5:22 PM

Hey everyone,

I'm running tests from the 'riscv-tests' suite in gem5 bare metal mode. The tests won't stop running and gem5 never exits.
I've tried using m5_exit, but it doesn't seem to work. To fix the issue, I used a max instruction limit.

Is there a better way to do this? Are m5ops supported in bare metal mode?

Thank you in advance for your help!
Evangelos

Hey everyone, I'm running tests from the 'riscv-tests' suite in gem5 bare metal mode. The tests won't stop running and gem5 never exits. I've tried using m5_exit, but it doesn't seem to work. To fix the issue, I used a max instruction limit. Is there a better way to do this? Are m5ops supported in bare metal mode? Thank you in advance for your help! Evangelos
AA
Ayaz Akram
Mon, May 8, 2023 5:35 PM

Hi Evangelos,

The problem with these tests (in gem5) is discussed here (
https://gem5.atlassian.net/browse/GEM5-938) in detail. Since they get stuck
in a loop after executing some instructions (and I think this happens when
the useful part of the benchmark is done), probably using max insts is a
reasonable solution, but you will have to figure out the (max) number of
insts. for each test separately.

-Ayaz

On Mon, May 8, 2023 at 10:26 AM Kioulos Evangelos via gem5-users <
gem5-users@gem5.org> wrote:

Hey everyone,

I'm running tests from the 'riscv-tests' suite in gem5 bare metal mode.
The tests won't stop running and gem5 never exits.
I've tried using m5_exit, but it doesn't seem to work. To fix the issue, I
used a max instruction limit.

Is there a better way to do this? Are m5ops supported in bare metal mode?

Thank you in advance for your help!
Evangelos


gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org

Hi Evangelos, The problem with these tests (in gem5) is discussed here ( https://gem5.atlassian.net/browse/GEM5-938) in detail. Since they get stuck in a loop after executing some instructions (and I think this happens when the useful part of the benchmark is done), probably using max insts is a reasonable solution, but you will have to figure out the (max) number of insts. for each test separately. -Ayaz On Mon, May 8, 2023 at 10:26 AM Kioulos Evangelos via gem5-users < gem5-users@gem5.org> wrote: > Hey everyone, > > I'm running tests from the 'riscv-tests' suite in gem5 bare metal mode. > The tests won't stop running and gem5 never exits. > I've tried using m5_exit, but it doesn't seem to work. To fix the issue, I > used a max instruction limit. > > Is there a better way to do this? Are m5ops supported in bare metal mode? > > Thank you in advance for your help! > Evangelos > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org >
KE
Kioulos Evangelos
Mon, May 8, 2023 6:03 PM

Hi Ayaz,

Thank you for your response!

I'm using debug flag Exec and a trace file to find the max insts of each test. The issue is that I have to run a large number of tests and each test has a different max insts count.
So, I was wandering if there's a way to automate the process.

Thank you for your help!
Evangelos


Από: Ayaz Akram yazakram@ucdavis.edu
Στάλθηκε: Δευτέρα, 8 Μαΐου 2023 8:35 μμ
Προς: The gem5 Users mailing list gem5-users@gem5.org
Κοιν.: Kioulos Evangelos ekioulos@tuc.gr
Θέμα: Re: [gem5-users] gem5 won't exit when running 'riscv-tests' in bare metal mode

Hi Evangelos,

The problem with these tests (in gem5) is discussed here (https://gem5.atlassian.net/browse/GEM5-938) in detail. Since they get stuck in a loop after executing some instructions (and I think this happens when the useful part of the benchmark is done), probably using max insts is a reasonable solution, but you will have to figure out the (max) number of insts. for each test separately.

-Ayaz

On Mon, May 8, 2023 at 10:26 AM Kioulos Evangelos via gem5-users <gem5-users@gem5.orgmailto:gem5-users@gem5.org> wrote:
Hey everyone,

I'm running tests from the 'riscv-tests' suite in gem5 bare metal mode. The tests won't stop running and gem5 never exits.
I've tried using m5_exit, but it doesn't seem to work. To fix the issue, I used a max instruction limit.

Is there a better way to do this? Are m5ops supported in bare metal mode?

Thank you in advance for your help!
Evangelos


gem5-users mailing list -- gem5-users@gem5.orgmailto:gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.orgmailto:gem5-users-leave@gem5.org

Hi Ayaz, Thank you for your response! I'm using debug flag Exec and a trace file to find the max insts of each test. The issue is that I have to run a large number of tests and each test has a different max insts count. So, I was wandering if there's a way to automate the process. Thank you for your help! Evangelos ________________________________ Από: Ayaz Akram <yazakram@ucdavis.edu> Στάλθηκε: Δευτέρα, 8 Μαΐου 2023 8:35 μμ Προς: The gem5 Users mailing list <gem5-users@gem5.org> Κοιν.: Kioulos Evangelos <ekioulos@tuc.gr> Θέμα: Re: [gem5-users] gem5 won't exit when running 'riscv-tests' in bare metal mode Hi Evangelos, The problem with these tests (in gem5) is discussed here (https://gem5.atlassian.net/browse/GEM5-938) in detail. Since they get stuck in a loop after executing some instructions (and I think this happens when the useful part of the benchmark is done), probably using max insts is a reasonable solution, but you will have to figure out the (max) number of insts. for each test separately. -Ayaz On Mon, May 8, 2023 at 10:26 AM Kioulos Evangelos via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote: Hey everyone, I'm running tests from the 'riscv-tests' suite in gem5 bare metal mode. The tests won't stop running and gem5 never exits. I've tried using m5_exit, but it doesn't seem to work. To fix the issue, I used a max instruction limit. Is there a better way to do this? Are m5ops supported in bare metal mode? Thank you in advance for your help! Evangelos _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org> To unsubscribe send an email to gem5-users-leave@gem5.org<mailto:gem5-users-leave@gem5.org>