CPU/CodeCache: Fetch second delay slot from first branch for double branches

This commit is contained in:
Connor McLaughlin
2020-11-18 20:34:25 +10:00
parent 3890a539ee
commit 042bdd9c0c
5 changed files with 81 additions and 3 deletions

View File

@ -52,6 +52,7 @@ struct CodeBlockInstruction
u32 pc;
bool is_branch_instruction : 1;
bool is_unconditional_branch_instruction : 1;
bool is_branch_delay_slot : 1;
bool is_load_instruction : 1;
bool is_store_instruction : 1;
@ -83,6 +84,7 @@ struct CodeBlock
#endif
bool contains_loadstore_instructions = false;
bool contains_double_branches = false;
bool invalidated = false;
const u32 GetPC() const { return key.GetPC(); }