ethereum-optimism / specs

OP Stack Specifications
https://specs.optimism.io
Creative Commons Zero v1.0 Universal
102 stars 91 forks source link

MTCannon: Tweak spec #425

Closed mbaxter closed 1 month ago

mbaxter commented 1 month ago

Description

This issue tracks some small changes to MTCannon that require spec updates.

Inphi commented 1 month ago

@mbaxter This overlaps with https://github.com/ethereum-optimism/optimism/issues/12253. Should we merge both issues?

mbaxter commented 1 month ago

I was thinking we could tweak the current spec to use some architecture-specific constants so that it would be mostly generic across 32- and 64-bit. But I still think we probably want an isolated PR that swaps the non-generic parts like syscall numbers to the 64-bit version. So, I tend to think we should keep them separate.

I can go ahead and wrap up these changes and close out this ticket so we can move on to the 64-bit-specific updates.

Inphi commented 1 month ago

The MT-Cannon spec is detached from singlethreaded Cannon. Since MT-Cannon is also going to be 64-bits with no support for 32-bit MT-Cannon, I think it'll be better to have the MT-Cannon spec specific to MIPS64.

mbaxter commented 1 month ago

Right - I just meant that it would be cleaner to do the conversion from 32 -> 64 in 1 isolated PR. Making the spec more generic first just makes the conversion PR smaller. But its not really a big deal either way.

Inphi commented 1 month ago

Gotcha. That's OK. That would be easier to review.