Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Segmentation fault when using param enable_pref_large_core. #51

Open
pulkit15158 opened this issue Dec 22, 2020 · 5 comments
Open
Assignees
Labels

Comments

@pulkit15158
Copy link

Hello,
I am getting Segmentation fault when using Hardware Stride prefetcher. I am uusing param_x86 file along with enable_pref_large_core 1.

@hyesoon
Copy link
Member

hyesoon commented Dec 23, 2020

oh we haven't tested hardware stride prefetcher for a long time. Can you share your params.in file and the testing trace file name?

@pulkit15158
Copy link
Author

Hi,

I am using the following the params.in and trace file.

params.in.txt

Actually I am not able to attach trace file because of the size limit. Can you please test the prefetcher utility on any trace file and attached params.in

I am getting segmentation fault.

@pulkit15158
Copy link
Author

Hello, I tried multiple other things but still the same issue

@jiashenC
Copy link
Member

jiashenC commented Jan 13, 2021

Hardware prefetcher gets seg fault because it accesses memory module before it is initialized. So the hardware prefetcher gets an nullptr.

It faults here.

m_shift_bit = LOG2_DCACHE_LINE_SIZE;

Core is initialized before memory, but hardware prefetcher access memory first.

init_cores(m_num_sim_cores);

We will introduce a fix for this.

@jiashenC jiashenC added the bug label Jan 13, 2021
@pulkit15158
Copy link
Author

Hi, So if I set my m_shift_bit = 6(log 2 of Dcache line size) in the code, it will solve the problem correct ?

Thanks for the update 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants