Skip to content
Snippets Groups Projects
Commit 2ad8c74d authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

adjusted cmp sanity checking for switches

Former-commit-id: 641a3c629f59485e1decbffd082a5bcef5e5b6e9
parent db763549
No related branches found
No related tags found
No related merge requests found
...@@ -1167,7 +1167,7 @@ I6 0xdd25 <+53>: movsxd rsi,DWORD PTR [rcx+rsi*4] ...@@ -1167,7 +1167,7 @@ I6 0xdd25 <+53>: movsxd rsi,DWORD PTR [rcx+rsi*4]
I7 0xdd29 <+57>: add rsi,rcx I7 0xdd29 <+57>: add rsi,rcx
I8 0xdd2c <+60>: jmp rsi I8 0xdd2c <+60>: jmp rsi
Note: Here the operands of the add are reversed, so lookup code was not finding I5 where it was expected. Note: Here the operands of the add are reversed, so lookup code was not finding I5 where it was expected.c
#endif #endif
...@@ -1376,7 +1376,7 @@ Note: Here the operands of the add are reversed, so lookup code was not finding ...@@ -1376,7 +1376,7 @@ Note: Here the operands of the add are reversed, so lookup code was not finding
//Disassemble(I1,d1); //Disassemble(I1,d1);
DecodedInstruction_t d1(I1); DecodedInstruction_t d1(I1);
table_size = d1.getImmediate()/*Instruction.Immediat*/; table_size = d1.getImmediate()/*Instruction.Immediat*/;
if (table_size <= 0) if (table_size <= 2)
{ {
// set table_size to be very large, so we can still do pinning appropriately // set table_size to be very large, so we can still do pinning appropriately
cout<<"pic64: found I1 ('"<<d1.getDisassembly()/*CompleteInstr*/<<"'), but could not find size of switch table"<<endl; cout<<"pic64: found I1 ('"<<d1.getDisassembly()/*CompleteInstr*/<<"'), but could not find size of switch table"<<endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment