mirror of
https://github.com/ish-app/ish.git
synced 2026-02-01 14:32:26 +00:00
Fix tautological out of range compare
This commit is contained in:
parent
2a5cb4ced6
commit
6065203154
@ -178,7 +178,7 @@ void step_tracing(struct cpu_state *cpu, struct tlb *tlb, uc_engine *uc) {
|
||||
uc_interrupt = -1;
|
||||
dword_t eip = uc_getreg(uc, UC_X86_REG_EIP);
|
||||
// intercept cpuid and rdtsc
|
||||
char code[2];
|
||||
uint8_t code[2];
|
||||
uc_read(uc, eip, code, sizeof(code));
|
||||
if (code[0] == 0x0f && (code[1] == 0x31 || code[1] == 0xa2)) {
|
||||
if (code[1] == 0x31) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user