Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpcodeDispatcher: Add DeriveOp helper
The "create op with wrong opcode, then change the opcode" pattern is REALLY dangerous. This does not address that. But when we start doing NZCV trickery, it will get /more/ dangerous, and so it's time to add a helper and make the convenient thing the safe(r) thing. This helper correctly saves NZCV /before/ the instruction like the real builders would. It also provides a spot for future safety asserts if someone is motivated. Signed-off-by: Alyssa Rosenzweig <[email protected]>
- Loading branch information