Attempt at a fix for crashes occuring when not using instruction/branch tracing.

This commit is contained in:
gibbed 2013-10-16 18:55:21 -07:00
parent da2f7f1ea5
commit 309d1621e5
1 changed files with 4 additions and 0 deletions

View File

@ -575,6 +575,10 @@ void X64Emitter::GenerateBasicBlock(FunctionBlock* block) {
// most constant values are set within their own blocks anyway.
clear_all_constant_gpr_values();
// TODO: this fixes crashes when not using instruction/branch tracing. Figure out why it's broken.
c.save(c.getGpArg(0));
c.save(c.getGpArg(1));
// This will create a label if it hasn't already been done.
std::map<uint32_t, Label>::iterator label_it =
bbs_.find(block->start_address);