1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

sclog: put x86-specific parts under ifdef.

This allows my side-channel test system to at least _compile_ on other
architectures without failing for the lack of OP_xxx enum constants,
although it now won't log all the things it needs to be a proper test.
This commit is contained in:
Simon Tatham 2020-11-26 17:52:11 +00:00
parent 1e0b966b73
commit f65153ab5b

View File

@ -400,6 +400,7 @@ static dr_emit_flags_t instrument_instr(
int opcode = instr_get_opcode(instr);
switch (opcode) {
#if defined(X86)
case OP_div:
case OP_idiv:
/*
@ -413,6 +414,8 @@ static dr_emit_flags_t instrument_instr(
3, instr_get_src(instr, 2), instr_get_src(instr, 0),
OPND_CREATE_INTPTR(loc));
break;
#endif
#if defined(X86)
case OP_shl:
case OP_shr:
case OP_sar:
@ -445,6 +448,7 @@ static dr_emit_flags_t instrument_instr(
}
break;
}
#endif
}
return DR_EMIT_DEFAULT;