From 79cd0c80a858448713aedd3d607dc363be891d8c Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 23 May 2020 21:02:32 -0700 Subject: fix important memory decode error in long mode add tests for modrm/sib decoding, xsave extensions --- test/protected_mode/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/protected_mode') diff --git a/test/protected_mode/mod.rs b/test/protected_mode/mod.rs index fc1db2d..3443565 100644 --- a/test/protected_mode/mod.rs +++ b/test/protected_mode/mod.rs @@ -509,6 +509,11 @@ fn test_0fae() { test_display(&[0x0f, 0xae, 0x14, 0x4f], "ldmxcsr [edi + ecx * 2]"); test_display(&[0x0f, 0xae, 0x1c, 0x4f], "stmxcsr [edi + ecx * 2]"); test_display(&[0x0f, 0xae, 0x24, 0x4f], "xsave [edi + ecx * 2]"); + test_display(&[0x0f, 0xc7, 0x5c, 0x24, 0x40], "xrstors [esp + 0x40]"); + test_display(&[0x0f, 0xc7, 0x64, 0x24, 0x40], "xsavec [esp + 0x40]"); + test_display(&[0x0f, 0xc7, 0x6c, 0x24, 0x40], "xsaves [esp + 0x40]"); + test_display(&[0x0f, 0xc7, 0x74, 0x24, 0x40], "vmptrld [esp + 0x40]"); + test_display(&[0x0f, 0xc7, 0x7c, 0x24, 0x40], "vmptrst [esp + 0x40]"); test_display(&[0x0f, 0xae, 0x2c, 0x4f], "xrstor [edi + ecx * 2]"); test_display(&[0x0f, 0xae, 0x34, 0x4f], "xsaveopt [edi + ecx * 2]"); test_display(&[0x0f, 0xae, 0x3c, 0x4f], "clflush [edi + ecx * 2]"); -- cgit v1.1