mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 14:23:07 +00:00
Revert "UserspaceProgramCounter"
This reverts commit 05beaab661a8aaa2f84b6f121b5ac2f29f2ed836.
This commit is contained in:
parent
3b54ec3986
commit
c167da8cbe
@ -5,20 +5,17 @@ pub(crate) enum ContextMetadata {
|
||||
ParentContext = 0,
|
||||
/// The program counter to return to when we return to the parent context.
|
||||
ParentProgramCounter = 1,
|
||||
/// If we're in a system call, this holds the userspace program counter to return to.
|
||||
UserspaceProgramCounter = 2,
|
||||
CalldataSize = 3,
|
||||
ReturndataSize = 4,
|
||||
CalldataSize = 2,
|
||||
ReturndataSize = 3,
|
||||
}
|
||||
|
||||
impl ContextMetadata {
|
||||
pub(crate) const COUNT: usize = 5;
|
||||
pub(crate) const COUNT: usize = 4;
|
||||
|
||||
pub(crate) fn all() -> [Self; Self::COUNT] {
|
||||
[
|
||||
Self::ParentContext,
|
||||
Self::ParentProgramCounter,
|
||||
Self::UserspaceProgramCounter,
|
||||
Self::CalldataSize,
|
||||
Self::ReturndataSize,
|
||||
]
|
||||
@ -29,7 +26,6 @@ impl ContextMetadata {
|
||||
match self {
|
||||
ContextMetadata::ParentContext => "CTX_METADATA_PARENT_CONTEXT",
|
||||
ContextMetadata::ParentProgramCounter => "CTX_METADATA_PARENT_PC",
|
||||
ContextMetadata::UserspaceProgramCounter => "CTX_METADATA_USERSPACE_PC",
|
||||
ContextMetadata::CalldataSize => "CTX_METADATA_CALLDATA_SIZE",
|
||||
ContextMetadata::ReturndataSize => "CTX_METADATA_RETURNDATA_SIZE",
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user