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

arm32 update to avoid SetInterrupt when it shouldn't be set

parent 23e786e6
No related branches found
No related tags found
No related merge requests found
...@@ -8952,6 +8952,9 @@ bool SMPInstr::FillCmd(void) { ...@@ -8952,6 +8952,9 @@ bool SMPInstr::FillCmd(void) {
   
// Analyze the instruction and its operands. // Analyze the instruction and its operands.
void SMPInstr::Analyze(void) { void SMPInstr::Analyze(void) {
const auto pt = global_STARS_program->GetProcessorType();
const auto is_x86 = pt==ptX86_64 || pt==ptX86_32;
bool DebugFlag = false; bool DebugFlag = false;
STARS_ea_t InstAddr = this->GetAddr(); STARS_ea_t InstAddr = this->GetAddr();
   
...@@ -8973,7 +8976,8 @@ void SMPInstr::Analyze(void) { ...@@ -8973,7 +8976,8 @@ void SMPInstr::Analyze(void) {
// Record optimization category. // Record optimization category.
// this->OptType = global_STARS_program->GetOptCategory(opcode); // this->OptType = global_STARS_program->GetOptCategory(opcode);
   
if ((STARS_NN_int == opcode) || (STARS_NN_into == opcode) || (STARS_NN_int3 == opcode)) { const auto is_x86_interrupt = (STARS_NN_int == opcode) || (STARS_NN_into == opcode) || (STARS_NN_int3 == opcode);
if (is_x86 && is_x86_interrupt) {
this->SetInterrupt(); this->SetInterrupt();
} }
else { else {
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