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

Add field to MMIOSpec for hardware guarantees #27

Merged
merged 1 commit into from
May 13, 2021

Conversation

jadephilipoom
Copy link
Contributor

As discussed in mit-plv/bedrock2#186

I've been able to build bedrock2 on top of this change with a couple of slight modifications (I'll push a draft PR to bedrock2 in a second so you can view those).

@jadephilipoom
Copy link
Contributor Author

Draft PR for bedrock2 changes: mit-plv/bedrock2#187

@jadephilipoom
Copy link
Contributor Author

CI is failing, but it looks like master has the same error?

@samuelgruetter
Copy link
Contributor

If this works, it's cool, but I'm not yet sure if it will, can we wait with merging until I understand?

@@ -22,13 +22,15 @@ Require Import riscv.Platform.Sane.
Local Open Scope Z_scope.
Local Open Scope bool_scope.


Class MMIOSpec{W: Words} := {
Class MMIOSpec{W: Words} {Mem : map.map word byte} := {
Copy link
Contributor

Choose a reason for hiding this comment

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

is Mem unused here?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess LogItem takes it as a parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess LogItem takes it as a parameter?

Yes, that's where it's used.

@@ -22,13 +22,15 @@ Require Import riscv.Platform.Sane.
Local Open Scope Z_scope.
Local Open Scope bool_scope.


Class MMIOSpec{W: Words} := {
Class MMIOSpec{W: Words} {Mem : map.map word byte} := {
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess LogItem takes it as a parameter?

@samuelgruetter samuelgruetter merged commit 772239a into mit-plv:master May 13, 2021
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