Skip to content

fix decodeInstruction#62

Open
zhiqiangxu wants to merge 1 commit intoChainSafe:devfrom
zhiqiangxu:fix_decodeInstruction
Open

fix decodeInstruction#62
zhiqiangxu wants to merge 1 commit intoChainSafe:devfrom
zhiqiangxu:fix_decodeInstruction

Conversation

@zhiqiangxu
Copy link

@zhiqiangxu zhiqiangxu commented May 12, 2025

According to the spec here, the full address is:

The full 32-bit destination address is formed by concatenating the highest 4 bits of the PC (the address of the instruction following the jump), the 26-bit pseudo-address, and 2 zero bits (since instructions are always aligned on a 32-bit word).

This PR adds back the top 4 bits of the PC.

@CLAassistant
Copy link

CLAassistant commented May 12, 2025

CLA assistant check
All committers have signed the CLA.

@zhiqiangxu zhiqiangxu force-pushed the fix_decodeInstruction branch from bd8b50a to eb60744 Compare May 12, 2025 07:22
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.

2 participants