Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleans up the JIT block viewer in the WX UI. #1348

Merged
merged 1 commit into from Oct 24, 2014

Conversation

Sonicadvance1
Copy link
Contributor

This code was an absolute mess. It had allocated an arbitrarily large string buffer to hold instructions that were disassembled.

Strip out all of the nasty raw C string manipulation and replaces it with ostringstream usage.
Fixes an issue where if you didn't have a JIT recompiler running then Dolphin would instantly crash if you tried comparing PPC to x86 code.
Changed the disassembly of the host side code from being inline to the function to instead being in a class, this will be required when I add support
for ARMv7 and AArch64 to this window.

std::string HostDisassemblerX86::DisassembleHostBlock(const u8* code_start, const u32 code_size, u32 *host_instructions_count)
{
u64 disasmPtr = (u64)code_start;
const u8 *end = code_start + code_size;

This comment was marked as off-topic.

This code was an absolute mess. It had allocated an arbitrarily large string buffer to hold instructions that were disassembled.

Strip out all of the nasty raw C string manipulation and replaces it with ostringstream usage.
Fixes an issue where if you didn't have a JIT recompiler running then Dolphin would instantly crash if you tried comparing PPC to x86 code.
Changed the disassembly of the host side code from being inline to the function to instead being in a class, this will be required when I add support
for ARMv7 and AArch64 to this window.
skidau added a commit that referenced this pull request Oct 24, 2014
Cleans up the JIT block viewer in the WX UI.
@skidau skidau merged commit ace57fb into dolphin-emu:master Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants