Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The power instruction decoding tables are declared as std::map.
Currently, we use the [] operator to access entries in the table. While the tables are mostly read-only, when we encounter instructions that are not in the table. The [] operator may create new entries and cause crashes. Therefore, change all accesses from [] operation to use find() method.
- Loading branch information
Showing
2 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters