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

feat(difftest): add output optional parameter for dramsim3 and database #599

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zephyrols
Copy link

Add parameter --dramsim3-outdir, --db-path

@@ -97,6 +97,7 @@ static inline void print_help(const char *file) {
#ifdef ENABLE_CHISEL_DB
printf(" --dump-db enable database dump\n");
printf(" --dump-select-db select database's table to dump\n");
printf(" --db-path the directory used to store the database\n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please separate this argument from this PR?

It is better to have separate PRs for dramsim3 and ChiselDB

@@ -145,6 +147,7 @@ inline EmuArgs parse_args(int argc, const char *argv[]) {
{ "sim-run-ahead", 0, NULL, 0 },
{ "dump-db", 0, NULL, 0 },
{ "dump-select-db", 1, NULL, 0 },
{ "db-path", 1, NULL, 0 },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this struct can differ from the --help strings, there's no need to add this argument here. You can simply append this argument at the end of the argument list. Then there won't be such large code changes.

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

Successfully merging this pull request may close these issues.

2 participants