Skip to content

Commit

Permalink
Remove dupe RM handler
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed May 26, 2020
1 parent 154b381 commit c62f977
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 39 deletions.
6 changes: 3 additions & 3 deletions src/csharp/Intel/Generator/Decoder/DecoderTable_Legacy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@ public static (string name, object?[] handlers)[] CreateHandlers(GenTypes genTyp
}),
("grp0F0D", new object[] { legacyEnum[nameof(OpCodeHandlerKind.RM)],
"reservedNop_0F0D",
new object[] { legacyEnum[nameof(OpCodeHandlerKind.RM)], "reservedNop_0F0D", new object[] { legacyEnum[nameof(OpCodeHandlerKind.Group)], "handlers_Grp_0F0D_mem" } }
new object[] { legacyEnum[nameof(OpCodeHandlerKind.Group)], "handlers_Grp_0F0D_mem" }
}),

("handlers_Grp_0F18_mem",
Expand All @@ -1890,7 +1890,7 @@ public static (string name, object?[] handlers)[] CreateHandlers(GenTypes genTyp
"reservedNop_0F18",
new object[] { legacyEnum[nameof(OpCodeHandlerKind.RM)],
"reservedNop_0F18",
new object[] { legacyEnum[nameof(OpCodeHandlerKind.RM)], "reservedNop_0F18", new object[] { legacyEnum[nameof(OpCodeHandlerKind.Group)], "handlers_Grp_0F18_mem" } }
new object[] { legacyEnum[nameof(OpCodeHandlerKind.Group)], "handlers_Grp_0F18_mem" }
}
}),

Expand All @@ -1914,7 +1914,7 @@ public static (string name, object?[] handlers)[] CreateHandlers(GenTypes genTyp
"reservedNop_0F1C",
new object[] { legacyEnum[nameof(OpCodeHandlerKind.RM)],
"reservedNop_0F1C",
new object[] { legacyEnum[nameof(OpCodeHandlerKind.RM)], "reservedNop_0F1C", new object[] { legacyEnum[nameof(OpCodeHandlerKind.Group)], "handlers_Grp_0F1C_mem" } }
new object[] { legacyEnum[nameof(OpCodeHandlerKind.Group)], "handlers_Grp_0F1C_mem" }
}
}),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2563,12 +2563,9 @@ static byte[] GetSerializedTables() =>
0x09,// RM
0x07,// HandlerReference
0x31,// 0x31 = reservedNop_0F0D
0x09,// RM
0x07,// HandlerReference
0x31,// 0x31 = reservedNop_0F0D
0x0E,// Group
0x08,// ArrayReference
0x3A,// 0x3A = handlers_Grp_0F0D_mem
0x0E,// Group
0x08,// ArrayReference
0x3A,// 0x3A = handlers_Grp_0F0D_mem

// handlers_Grp_0F18_mem
0x01,// ArrayReference
Expand Down Expand Up @@ -2603,12 +2600,9 @@ static byte[] GetSerializedTables() =>
0x09,// RM
0x07,// HandlerReference
0x32,// 0x32 = reservedNop_0F18
0x09,// RM
0x07,// HandlerReference
0x32,// 0x32 = reservedNop_0F18
0x0E,// Group
0x08,// ArrayReference
0x3C,// 0x3C = handlers_Grp_0F18_mem
0x0E,// Group
0x08,// ArrayReference
0x3C,// 0x3C = handlers_Grp_0F18_mem

// handlers_Grp_0F1C_mem
0x01,// ArrayReference
Expand All @@ -2635,12 +2629,9 @@ static byte[] GetSerializedTables() =>
0x09,// RM
0x07,// HandlerReference
0x36,// 0x36 = reservedNop_0F1C
0x09,// RM
0x07,// HandlerReference
0x36,// 0x36 = reservedNop_0F1C
0x0E,// Group
0x08,// ArrayReference
0x3E,// 0x3E = handlers_Grp_0F1C_mem
0x0E,// Group
0x08,// ArrayReference
0x3E,// 0x3E = handlers_Grp_0F1C_mem

// handlers_Grp_0F1E_reg_lo
0x01,// ArrayReference
Expand Down
27 changes: 9 additions & 18 deletions src/rust/iced-x86/src/decoder/table_de/data_legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2554,12 +2554,9 @@ pub(super) static TBL_DATA: &[u8] = &[
0x09,// RM
0x07,// HandlerReference
0x31,// 0x31 = reservedNop_0F0D
0x09,// RM
0x07,// HandlerReference
0x31,// 0x31 = reservedNop_0F0D
0x0E,// Group
0x08,// ArrayReference
0x3A,// 0x3A = handlers_Grp_0F0D_mem
0x0E,// Group
0x08,// ArrayReference
0x3A,// 0x3A = handlers_Grp_0F0D_mem

// handlers_Grp_0F18_mem
0x01,// ArrayReference
Expand Down Expand Up @@ -2594,12 +2591,9 @@ pub(super) static TBL_DATA: &[u8] = &[
0x09,// RM
0x07,// HandlerReference
0x32,// 0x32 = reservedNop_0F18
0x09,// RM
0x07,// HandlerReference
0x32,// 0x32 = reservedNop_0F18
0x0E,// Group
0x08,// ArrayReference
0x3C,// 0x3C = handlers_Grp_0F18_mem
0x0E,// Group
0x08,// ArrayReference
0x3C,// 0x3C = handlers_Grp_0F18_mem

// handlers_Grp_0F1C_mem
0x01,// ArrayReference
Expand All @@ -2626,12 +2620,9 @@ pub(super) static TBL_DATA: &[u8] = &[
0x09,// RM
0x07,// HandlerReference
0x36,// 0x36 = reservedNop_0F1C
0x09,// RM
0x07,// HandlerReference
0x36,// 0x36 = reservedNop_0F1C
0x0E,// Group
0x08,// ArrayReference
0x3E,// 0x3E = handlers_Grp_0F1C_mem
0x0E,// Group
0x08,// ArrayReference
0x3E,// 0x3E = handlers_Grp_0F1C_mem

// handlers_Grp_0F1E_reg_lo
0x01,// ArrayReference
Expand Down

0 comments on commit c62f977

Please sign in to comment.