An attempt to make v86 ignore endbr32/endbr64 instructions (#344)

An attempt to make v86 ignore endbr32/endbr64 instructions
This commit is contained in:
Andrew Au 2020-05-29 13:20:22 -07:00 committed by GitHub
commit 20469fe4ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1930,7 +1930,12 @@ t[0x1A] = cpu => { cpu.unimplemented_sse(); };
t[0x1B] = cpu => { cpu.unimplemented_sse(); };
t[0x1C] = cpu => { cpu.unimplemented_sse(); };
t[0x1D] = cpu => { cpu.unimplemented_sse(); };
t[0x1E] = cpu => { cpu.unimplemented_sse(); };
// endbr32/endbr64
t[0x1E] = cpu => { cpu.read_modrm_byte()
// multi-byte nop
if(cpu.modrm_byte < 0xC0)
cpu.modrm_resolve(cpu.modrm_byte);
};
t[0x1F] = cpu => { cpu.read_modrm_byte()
// multi-byte nop
if(cpu.modrm_byte < 0xC0)