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

Read opcodes from files #23

Merged
merged 1 commit into from
Feb 28, 2019
Merged

Read opcodes from files #23

merged 1 commit into from
Feb 28, 2019

Conversation

pavelkryukov
Copy link
Contributor

@pavelkryukov pavelkryukov commented Jan 26, 2019

Current generation flow assumes that opcodes are provided
in a cat ./opcodes | ./parse_opcodes -c manner. However,
Windows CMD has no cat command, and it uses `type' instead,
so implementation of cross-platform script is complicated.

In this patch, we allow parsing opcode files directly by Python,
if their names are provided as a command line arguments, not depending
on the host shell. If no arguments are passed, script behaves as usual,
reading opcodes from the stdin.

Current generation flow assumes that opcodes are provided
in a `cat ./opcodes | ./parse_opcodes -c' manner. However,
Windows CMD has no `cat' command, and it uses `type' instead,
so implementation of cross-platform script is complicated.

In this patch, we allow parsing opcode files directly by Python,
if their names are provided as a command line arguments, not depending
on the host shell. If no arguments are passed, script behaves as usual,
reading opcodes from the stdin.
@pavelkryukov
Copy link
Contributor Author

@palmer-dabbelt Could you please review this?

@palmer-dabbelt
Copy link
Member

I'm happy with the feature, but I'm going to punt to @aswaterman on the implementation as this is his repo :).

@aswaterman
Copy link
Member

Looks fine to me.

@aswaterman aswaterman merged commit 30717a8 into riscv:master Feb 28, 2019
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.

3 participants