-
Notifications
You must be signed in to change notification settings - Fork 1
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 ecalli handling for other pvms #285
Conversation
✅ Deploy Preview for pvm-debugger ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
8614d41
to
130fe5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't test if it works, because ananas
and polkavm
are already updated to 0.5.4 (see #291)
but let's merge as-is and test later.
} | ||
|
||
storeFrom(address: MemoryIndex, bytes: Uint8Array) { | ||
this.pvm.setMemory(address, bytes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.pvm.setMemory(address, bytes); | |
// TODO [ToDr] Either change the API to require handling multi-page writes or change this code to split the write into multiple pages. | |
this.pvm.setMemory(address, bytes); |
payload: { hostCallIdentifier: worker.exitArg as HostCallIdentifiers }, | ||
}); | ||
if ( | ||
resp.payload.hostCallIdentifier === HostCallIdentifiers.WRITE && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These HostCallIndentifiers
should rather come from host calls impls (new Write().index
) to avoid duplicating this stuff in case it ever changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I'm seeing it's only exported as
import { write } from "@typeberry/jam-host-calls";
new write.Write().index
which is fine, but it requires account param. Maybe you could add index as a static property?
Co-authored-by: Tomek Drwięga <[email protected]>
Co-authored-by: Tomek Drwięga <[email protected]>
No description provided.