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

multi-core simulation has a problem in handling writebacks for cache filtered mode #119

Open
FanosLab opened this issue Jan 16, 2024 · 0 comments

Comments

@FanosLab
Copy link

By defining the Write handling parameters in the
Trace::get_filtered_request
as static:
static bool has_write = false;
static long write_addr;
static int line_num = 0;

only one copy exists across all instances and hence the write requests are leaked/intermingled among cores.

To fix this problem, I replaced these three parameters by maps as follows:

static std::map<Trace*,bool> has_write;
static std::map<Trace*,long> write_addr;
static std::map<Trace*,int> line_num;

Thanks,
Mohamed

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

No branches or pull requests

1 participant